> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get group photos

> Get group photos. Only public groups are supported. If no data is returned, please check whether the group is private. Use the cursor parameter to retrieve the next page of data. 

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">4 credits</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</p>
  </div>

  <div className="mt-4">
    <button
      type="button"
      className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50"
      onClick={() => navigator.clipboard.writeText(`I need to call the following KeyAPI endpoint. Please generate a complete and directly runnable Python example based on the API information provided below.

## API Information

Endpoint: GET https://api.keyapi.ai/v1/facebook/group_photos
Summary: Get group photos

Required Headers:
- Authorization: Bearer <YOUR_API_KEY>

Parameters:
- group_id (Required): No description. Example: 1571965316444595
- cursor (Optional): No description.

## Code Requirements

- Use the Python \`requests\` library
- Provide a complete and directly runnable example
- Handle HTTP request errors, timeouts, and non-2xx responses
- Handle JSON parsing errors
- Prefer the Example values provided in the API information for sample parameters
- Keep the code simple and avoid unnecessary abstractions or complexity`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml /en/facebook.openapi.json get /v1/facebook/group_photos
openapi: 3.0.1
info:
  title: Facebook API English documentation
  description: >-
    The english reference documentation of the Facebook API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production-KeyAPI
security:
  - JWT Bearer: []
tags:
  - name: Pages
  - name: Prefiles
  - name: Groups
  - name: Posts and comments
  - name: Evebts
  - name: Ads Library
  - name: Search
  - name: Marketplace
  - name: Games
paths:
  /v1/facebook/group_photos:
    get:
      tags:
        - Groups
      summary: Get group photos
      description: >-
        Get group photos. Only public groups are supported. If no data is
        returned, please check whether the group is private. Use the cursor
        parameter to retrieve the next page of data. 
      parameters:
        - name: group_id
          in: query
          description: ''
          required: true
          example: '1571965316444595'
          schema:
            type: string
            example: '1571965316444595'
        - name: cursor
          in: query
          description: ''
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  photos:
                    - id: '10242665998096209'
                      accessibility_caption: May be an image of one or more people and beard
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.99422-6/795438889_2529656947516271_8480074046350101441_n.png?stp=dst-jpg_tt6&cstp=mx1024x1536&ctp=s851x315&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=0s9DmfgrNioQ7kNvwE-KQaz&_nc_oc=AdoFSGaBCScP0N_waTWrdwD2u-fdMlpVQT7EqjiXLBCvljDtQPxFFQoFJSAc-EqpfmM&_nc_zt=14&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQIv6DC84NzINt_LRlUIo4RdbQXUyb1IEgk8dcgQWYaq9Q&oe=6AB827FF
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '1535906781'
                    - id: '1077852231293969'
                      accessibility_caption: >-
                        May be an image of text that says "OOO 0 2 2 6 PRESENTED
                        BY: ා්ටසද VIP Rock'n The Mesa $25 SAME DAY PURCHASES
                        ONLY SEPT. 26TH 21+ ONLY VAGOLD MESA PRODUCED BY: TWSIT
                        conDintr: W VIP SANNTRI.AM Toll Brothers VANGUARD H0+2-0
                        INSIDE 6：30-8PM THERE WILL BE LIVE MUSIC, FOOD, AND
                        DRINK! MusicOnTheMesa.org MusicOn 142 S RAVEN MINE DR,
                        COLORADO SPRINGS, co 80905 VIP"
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.30808-6/818384592_1077851231294069_3751162348213114098_n.jpg?stp=dst-jpg_tt6&cstp=mx1638x2048&ctp=s261x260&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=32RAQtQgG4wQ7kNvwHEu7ND&_nc_oc=AdrlJDkzesLB0hvFpEtZUuVbkcnqCj5a3MOoQ6Xp7kwqlml7w8I5MUv9Mt7aXAOQExU&_nc_zt=23&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQKFpQdpWUsi4npj2x2OuXWTeCcPlkvttB20-XrmwQCFzA&oe=6AB8233B
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '100072076061463'
                    - id: '1077838397962019'
                      accessibility_caption: >-
                        May be an image of text that says "SPanl SPaalyDecet
                        ЮOИИMOHOЛKTAABCATOBTaA OF STEELY DAN& GRATEFUL DEAD ഉമതല
                        ASONICFUSION ASONIC FUSION Rock'n The Mesa 2OOO 0 2 2 6
                        PRESENTED BY: MESA PRODUCED BY: coniDange W
                        MusicOnTheMesa.org 12-8PM FREE AND OPEN to THE PUBLIC!
                        26 SEPT 142 S Raven Mine Dr, Colorado Springs, co 80905
                        Toll Brothers VIP BY INVITE ONLY VANGUARD 十〇とそいる DOORS
                        OPEN AT 12, MUSIC STARTS AT 1PM WRISTBAND REQUIRED
                        STEELY DEAD LIVE AT 5-6:30PM"
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.30808-6/818384580_1077837457962113_5715685728455965632_n.jpg?stp=dst-jpg_tt6&cstp=mx1638x2048&ctp=s261x260&_nc_cat=105&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=pdlLFiqxFioQ7kNvwGj6d52&_nc_oc=AdpyYN1cZ1P-xmz_CU90KQk_dB8PrPuxO9PWOraHRL187oBPkJrOb72SHfbfNmqHGO8&_nc_zt=23&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQKbIBLJOqnNxt8-CZRB3YNh0LevH3THyt2IpW9Yt5avTA&oe=6AB8134D
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '100072076061463'
                    - id: '1718399386960308'
                      accessibility_caption: >-
                        May be an image of American football and text that says
                        "PURPLE PURPLETOAD EVENTS H++++ TOAD Sun- Football (open
                        @10:30) Mon- Football @6:15 & Poker @6:30 Tue Music
                        Video Bingo @7 Wed Trivia @7 Thu. Falcon Connects @4 &
                        Football @6:15 Fri- Red Rocks Rebellion @6 Sat- Poker
                        @12 & Karaoke @9"
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.99422-6/795253823_3568703029970227_7694262090999797198_n.png?stp=dst-jpg_tt6&cstp=mx641x641&ctp=p75x225&_nc_cat=104&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=VUihPrW2Do8Q7kNvwHKqUiE&_nc_oc=AdpbgZCFEGJXFIsvWuz6F4qQVXLb06SWBJHinORT8GmntckrwNsBzl8dKIcQwaqOIoc&_nc_zt=14&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQLt803M7MHZgnLtaMgtCbRj4VPSjz4iH7zZfrMcayqwmw&oe=6AB83A83
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '100063707883635'
                    - id: '1529363295877048'
                      accessibility_caption: No photo description available.
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.30808-6/816395804_1529360685877309_187123558936789332_n.jpg?stp=dst-jpegr_tt6&cstp=mx1536x2048&ctp=s280x280&_nc_cat=101&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=B8JQc-Z9YbwQ7kNvwE9Cm2R&_nc_oc=Adq_jziVr7Z8b91l-R3df25Bbe4GQJ7Cmd3pipjR8mO1L9CbGRkezC_8dMRMBOXZMmg&_nc_zt=23&se=-1&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQJOLva7EphC6PaIpaVcJEmt7mTw381rhi0Sum58Wn62aA&oe=6AB831D7
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '100064101750730'
                    - id: '1662232245912800'
                      accessibility_caption: >-
                        May be an image of ‎text that says "‎EST.2017 EST. 2017
                        Black Forest BREWING BREWINGCO co. EAST 5 YEAR
                        ANNIVERSARY Party OCTOBE 17TH 2026 MUSIC BY TRON the
                        band TRON BAND STARTS AT 5:30 RIVERROAD WES احي PIZZARTE
                        WOODFIRED PIZZAS La Gran Tenochtitlan MEXICAN
                        MEXICANFOOD FOOD Pizzarte TradizionaleNaliana Orad
                        Oradizionale Maliano La Gran Tenochtitlan MEXICANFOOD
                        MEXICAN FOOD COME CELEBRATE WITH US Falcon Style!‎"‎
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.99422-6/816520894_1447203963969870_4765150980879352988_n.png?stp=dst-jpg_tt6&cstp=mx1024x1536&ctp=s851x315&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=k1EpTJuC1bIQ7kNvwHpos0s&_nc_oc=Adop-hL_CTtmNIN0YhDjc7wQFhRGHjR-J2xMkzgfjZlXK75IJ1DJDmV7UBVWmf4lEGU&_nc_zt=14&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQIsVszvA780Khy7X3ZQnhp_KlBL5UQvmrcuLw8ixc8iGw&oe=6AB827FA
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: '100063781220699'
                    - id: '122381506880010134'
                      accessibility_caption: >-
                        May be an image of text that says "ALCHEMY
                        ALCHEMYPRESENTS: PRESENTS: 20109 party on the patio
                        MUSIC BY: SATURDAY SEPT 19 GO-GO GO DANCERS GUEST DRAG &
                        BURLESQUE ENTERTAINERS CLARK END FULL MENU OF DELICIOUS
                        FOOD ALCHEMY 2625 COLORADO AVE PATIO BAR OPEN PARTY $3
                        SHOT SPECIALS OLD COLORADO CITY AlchEM A1c M"
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.30808-6/818203709_122381506292010134_709341381612265078_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1080&ctp=p75x225&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=QcnNcfzVeoYQ7kNvwHa8CWC&_nc_oc=AdqDuDSZmbfl7nfaWDkLRFCgY1rXywoepH_a2yO2IYhFceqgSSPIGl4yud9fhC8S9PA&_nc_zt=23&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQL7OnkmC0-MgDz2uDt-ctlnGUep0gRTi7xYV3dbESrPKw&oe=6AB80826
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: >-
                          pfbid0MnD8rXjub7z8zcAk8QQaFUt3FQiEFTX9XUhLKqSzvqio695zmQySu5QTmuTmBWbYl
                    - id: '10163944368714902'
                      accessibility_caption: >-
                        May be an image of text that says "GOLDENFLAME GOLDEN
                        FLAME HOT WINGS CELEBRATING 11 YEARS! SEPTEMBER 26 $
                        WINGS ALL DAY WHEN YOU ORDER 10 OR MORE WINGS
                        WING-EATING WING-E CONTEST 3 PM GOLDEN GOLDENFLAME FLAME
                        HOTWINGS HOT GET YOUR PICTURE ON THE WALL OF FAME!
                        원르드엔(그어품터 PRIZES GIVEN! 5865 5865STETSONHILLS STETSON
                        HILLS BLVD."
                      image:
                        uri: >-
                          https://scontent.fgbb1-1.fna.fbcdn.net/v/t39.30808-6/818392554_10163944368719902_6515596876601013559_n.jpg?stp=dst-jpg_tt6&cstp=mx1003x1568&ctp=s235x350&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=aa7b47&_nc_ohc=0aYOPZjOV4YQ7kNvwFSiu8t&_nc_oc=AdpcgLOPNDVaBDQr0fJYdVvjFyucK5cldKYx-Y-VDRLJe5yuet0JTfK99QnyFlg5mQU&_nc_zt=23&_nc_ht=scontent.fgbb1-1.fna&_nc_gid=X5yZa-2oyZWgpgOYQGndag&_nc_ss=7d289&oh=00_AQJdeMfHWcSK6-bkQ1gZA1rv2pYKn5e402eYnR2D0M43UQ&oe=6AB82B52
                      immersive_photo_encodings: []
                      owner_id:
                        __typename: User
                        id: >-
                          pfbid02paVDTgEEi8axoyGVUPVDsCU3DZam4ZZ6SZ6hBfyrbJXeHPEJcQNJ9jjFKPsYBbEbl
                  cursor: >-
                    AQHTi8VH8gtfX9exC7y8jTAjIt2XGnIeld-xkZ7iLtfRzkHQzrT-5ndH4IUMtIhuX6emKjR2CldyZUJMtKsEP6rNow
                requestId: 14da6ec2-176f-4097-86da-15736b224ced
          headers: {}
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      deprecated: false
      security:
        - JWT Bearer: []
components:
  responses:
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            example:
              code: 400
              data: null
              message: 'Missing required parameter: handle'
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            example:
              code: 401
              data: null
              message: apiKey is null
    '402':
      description: Payment Required
      content:
        application/json:
          schema:
            type: object
            example:
              code: 402
              data: null
              message: apiKey quota is not enough
    '429':
      description: Too Many Requests
      content:
        application/json:
          schema:
            type: object
            example:
              code: 429
              data: null
              message: qps limit exceeded
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            example:
              code: 500
              data: null
              message: Internal server error
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````