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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# List Facebook profile photos

> Lists photos from a Facebook profile or Page. Required input: `url`. Results are paged: while `data.page.hasMore` is true, send `data.page.nextCursor` as `cursor` to get the next page.

> **请求示例待验证。** 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode: quote`）查看预估费用。

## 请求规范

* **方法与路径:** GET /apis/v1/facebook/profiles/photos
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/facebook/profiles/photos`
* **cursor:** query; 可选
* **hostMedia:** query; 可选
* **url:** query; 必填

[完整 OpenAPI 定义](https://aisa.one/docs/openapi-public/zh/facebook.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "facebook.profiles.photos",
  "method": "GET",
  "path": "/apis/v1/facebook/profiles/photos",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "description": "Opaque pagination cursor from a previous response.",
        "maxLength": 16384,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "hostMedia",
      "required": false,
      "schema": {
        "description": "When enabled, include downloadable media links when available. Media availability can affect the quoted maximum price.",
        "type": "boolean"
      }
    },
    {
      "in": "query",
      "name": "url",
      "required": true,
      "schema": {
        "description": "Public Facebook profile or page URL whose photos should be listed.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 已观察到的响应结构

以下结构来自探针或抽样请求的成功结果，只反映已观察到的部分：字段和类型可能变化，不保证每次都有。已有正式响应定义优先；这里不发布真实响应值。

* **HTTP 状态 / 最近观察日期:** 200 / 2026-11-14

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "properties": {
        "lookupStatus": {
          "type": "string"
        },
        "page": {
          "additionalProperties": true,
          "properties": {
            "hasMore": {
              "type": "boolean"
            },
            "nextCursor": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "photos": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "accessibilityCaption": {
                "type": "string"
              },
              "dimensions": {
                "additionalProperties": true,
                "properties": {
                  "height": {
                    "type": "integer"
                  },
                  "width": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "id": {
                "type": "string"
              },
              "imageUrl": {
                "type": "string"
              },
              "photoId": {
                "type": "string"
              },
              "thumbnailUrl": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "meta": {
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.686 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。

## 翻页

* 把 `aisa_pagination.next_cursor` 作为 `cursor`（查询参数）传入即可获取下一页；`aisa_pagination.has_more` 为 false 时停止。
* 响应头 `X-AISA-Has-More` 与 `X-AISA-Next-Cursor` 返回相同的值。

## 响应时间

* 通常 10 秒内返回。


## OpenAPI

````yaml openapi-public/zh/facebook.json GET /apis/v1/facebook/profiles/photos
openapi: 3.1.0
info:
  description: ''
  title: Facebook公开数据
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    facebook:
      description: ''
      title: Facebook公开数据
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 23c4518fe0e0b2521c80af5979c6da9baa3750647312250fa85879a638b281e5
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/facebook/ad-library/ads
    - /apis/v1/facebook/ad-library/ads/search
    - /apis/v1/facebook/ad-library/companies/ads
    - /apis/v1/facebook/ad-library/companies/search
    - /apis/v1/facebook/events
    - /apis/v1/facebook/events/details
    - /apis/v1/facebook/events/search
    - /apis/v1/facebook/get-comment-replies
    - /apis/v1/facebook/get-post-comments
    - /apis/v1/facebook/get-post-comments-v1
    - /apis/v1/facebook/get-profile-id
    - /apis/v1/facebook/get-profile-posts
    - /apis/v1/facebook/get-profile-posts-v1
    - /apis/v1/facebook/groups
    - /apis/v1/facebook/groups/posts
    - /apis/v1/facebook/marketplace/items
    - /apis/v1/facebook/marketplace/locations/search
    - /apis/v1/facebook/marketplace/search
    - /apis/v1/facebook/posts
    - /apis/v1/facebook/posts/comments
    - /apis/v1/facebook/posts/comments/replies
    - /apis/v1/facebook/posts/transcript
    - /apis/v1/facebook/profiles
    - /apis/v1/facebook/profiles/events
    - /apis/v1/facebook/profiles/photos
    - /apis/v1/facebook/profiles/posts
    - /apis/v1/facebook/profiles/reels
    - /apis/v1/facebook/search-post
    - /apis/v1/facebook/search-post-v1
  x-aisa-document:
    composer_version: '31'
    facts_hash: 23c4518fe0e0b2521c80af5979c6da9baa3750647312250fa85879a638b281e5
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    public_projection:
      version: '4'
      source_document_hash: sha256:adf4d33a1b2fa6ef0487005567fb2933bd5878d87599dca5ff15f1d6ef4261ce
    document_hash: sha256:cb834c22c823b5806007ca04dff3d916d2c68d1e4f6fa85362c241bdb784b855
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: facebook
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/facebook/profiles/photos:
    get:
      tags:
        - Facebook
      summary: List Facebook profile photos
      description: >-
        Lists photos from a Facebook profile or Page. Required input: `url`.
        Results are paged: while `data.page.hasMore` is true, send
        `data.page.nextCursor` as `cursor` to get the next page.


        > **请求示例待验证。**
        此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode:
        quote`）查看预估费用。
      operationId: facebook.profiles.photos
      parameters:
        - in: query
          name: cursor
          required: false
          schema:
            description: Opaque pagination cursor from a previous response.
            maxLength: 16384
            minLength: 1
            type: string
        - in: query
          name: hostMedia
          required: false
          schema:
            description: >-
              When enabled, include downloadable media links when available.
              Media availability can affect the quoted maximum price.
            type: boolean
        - in: query
          name: url
          required: true
          schema:
            description: Public Facebook profile or page URL whose photos should be listed.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                found:
                  value:
                    data:
                      lookupStatus: found
                      page:
                        hasMore: true
                        nextCursor: >-
                          eyJjIjoiQVFIU1E3VGc0bjZfS2h0a1hYZi1aSWQ0YU5XOUdiZjFrNy1ObU80UmxRMm5CRDZGVnJ2SHZoeEQxVVhvdFlDRWJBV2RJNGRBeG5CcGtVdFlXTFNWRmdEcGtRIiwibiI6IllYQndYMk52Ykd4bFkzUnBiMjQ2Y0daaWFXUXdOVXRuWTNob2RXdFVRWHBXVEdOalZYWTNVa051Y1VOTlVGRktOMmRHVXpkeVZ6RlV…
                      photos:
                        - accessibilityCaption: May be an image of baby and smiling
                          dimensions:
                            height: 2144
                            width: 1608
                          id: >-
                            YXBwX2l0ZW06MTAwMDAxMDIyNDg2ODIzOjIzMDUyNzI3MzI6NTo6MjcwMjExODc1MTQxNjUyOTk=
                          imageUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/683651127_18593920150007483_2994407465256079927_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=127cfc&_nc_ohc=XL39rEmPYAoQ7kNvwFuWBUD&_nc_oc=AdrEnfZPkf6zDrx7qWv8WCSvllv47ovYDzX0W0Fj8dXbR9auixBj3BxjsX-…
                          photoId: '27021187514165299'
                          thumbnailUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/683651127_18593920150007483_2994407465256079927_n.jpg?stp=c0.177.1608.1608a_dst-jpg_s206x206_tt6&_nc_cat=100&ccb=1-7&_nc_sid=714c7a&_nc_ohc=XL39rEmPYAoQ7kNvwFuWBUD&_nc_oc=AdrEnfZPkf6zDrx7…
                          url: >-
                            https://www.facebook.com/photo.php?fbid=27021187514165299&set=pb.100001022486823.-2207520000&type=3
                        - accessibilityCaption: May be an image of baby, smiling and bedroom
                          dimensions:
                            height: 1920
                            width: 1440
                          id: >-
                            YXBwX2l0ZW06MTAwMDAxMDIyNDg2ODIzOjIzMDUyNzI3MzI6NTo6MjY4NTQ5NTI4ODQxMjIwOTc=
                          imageUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/669974469_18590336158007483_8993244519859741198_n.jpg?stp=dst-jpegr_tt6&_nc_cat=103&ccb=1-7&_nc_sid=127cfc&_nc_ohc=KOQlfFPj2FUQ7kNvwHWZTAk&_nc_oc=AdoU2ha9x2opn8AWuavxeO3AvOgNfRfKx9Ke8BwVo…
                          photoId: '26854952884122097'
                          thumbnailUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/669974469_18590336158007483_8993244519859741198_n.jpg?stp=c0.158.1440.1440a_dst-jpegr_s206x206_tt6&_nc_cat=103&ccb=1-7&_nc_sid=714c7a&_nc_ohc=KOQlfFPj2FUQ7kNvwHWZTAk&_nc_oc=AdoU2ha9x2opn8…
                          url: >-
                            https://www.facebook.com/photo.php?fbid=26854952884122097&set=pb.100001022486823.-2207520000&type=3
                        - accessibilityCaption: May be an image of baby
                          dimensions:
                            height: 1920
                            width: 1440
                          id: >-
                            YXBwX2l0ZW06MTAwMDAxMDIyNDg2ODIzOjIzMDUyNzI3MzI6NTo6MjY4NTQ5NTI4ODA3ODg3NjQ=
                          imageUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/670392720_18590336167007483_1605318333331208924_n.jpg?stp=dst-jpegr_tt6&_nc_cat=107&ccb=1-7&_nc_sid=127cfc&_nc_ohc=4Kf_IXTEuawQ7kNvwEPCQHj&_nc_oc=AdqCZkzddSDR5GfX07VRDaDG7o6RBM6gXGioOQQHf…
                          photoId: '26854952880788764'
                          thumbnailUrl: >-
                            https://scontent-phl2-1.xx.fbcdn.net/v/t51.82787-15/670392720_18590336167007483_1605318333331208924_n.jpg?stp=c0.158.1440.1440a_dst-jpegr_s206x206_tt6&_nc_cat=107&ccb=1-7&_nc_sid=714c7a&_nc_ohc=4Kf_IXTEuawQ7kNvwEPCQHj&_nc_oc=AdqCZkzddSDR5G…
                          url: >-
                            https://www.facebook.com/photo.php?fbid=26854952880788764&set=pb.100001022486823.-2207520000&type=3
                    meta:
                      creditsCharged: 1
                      requestId: req_9d880cf0-0be8-43de-bc1c-4f0aa8c28580
                      version: v1
                last_page:
                  value:
                    data:
                      lookupStatus: found
                      page:
                        hasMore: false
                        nextCursor: null
                      photos: []
                    meta:
                      creditsCharged: 1
                      requestId: req_01example_last_page
                      version: v1
                not_found:
                  value:
                    data:
                      lookupStatus: not_found
                      page:
                        hasMore: false
                        nextCursor: null
                      photos: []
                    meta:
                      creditsCharged: 1
                      requestId: req_01example_not_found
                      version: v1
              schema:
                description: Standard success response envelope.
                properties:
                  aisa_pagination:
                    additionalProperties: false
                    description: >-
                      AIsa pagination. Pass next_cursor as cursor to fetch the
                      next page; has_more is false on the last page.
                    properties:
                      has_more:
                        type: boolean
                      next_cursor:
                        type:
                          - string
                          - 'null'
                      next_param:
                        const: cursor
                        type: string
                    required:
                      - has_more
                      - next_cursor
                      - next_param
                    type: object
                  data:
                    description: Endpoint-specific response payload.
                    properties:
                      lookupStatus:
                        description: >-
                          Whether the requested profile or page resolved for
                          this request.
                        enum:
                          - found
                          - restricted
                          - not_found
                        type: string
                      page:
                        description: Pagination information for the current response.
                        properties:
                          hasMore:
                            description: Whether another page of photos can be requested.
                            type: boolean
                          nextCursor:
                            description: >-
                              Cursor to pass as `cursor` in the next request
                              when `hasMore` is true; otherwise null.
                            type:
                              - string
                              - 'null'
                        required:
                          - nextCursor
                          - hasMore
                        type: object
                      photos:
                        description: >-
                          Photos returned for the requested profile or page.
                          This array may be empty on the last page.
                        items:
                          description: A single Facebook photo on a profile photos page.
                          properties:
                            accessibilityCaption:
                              description: >-
                                Accessibility or alt-style caption text when
                                Facebook provides one.
                              type:
                                - string
                                - 'null'
                            dimensions:
                              description: Image dimensions when available.
                              properties:
                                height:
                                  description: Image height in pixels when available.
                                  minimum: 0
                                  type: integer
                                width:
                                  description: Image width in pixels when available.
                                  minimum: 0
                                  type: integer
                              required:
                                - width
                                - height
                              type:
                                - object
                                - 'null'
                            hostedMedia:
                              description: >-
                                Present only when `hostMedia=true`. Hosted
                                copies and/or per-asset failures for this photo.
                              items:
                                description: >-
                                  AIsa-hosted original media asset or per-asset
                                  failure.
                                properties:
                                  bytes:
                                    description: >-
                                      Stored size in bytes when status is
                                      stored.
                                    minimum: 0
                                    type: integer
                                  entityId:
                                    description: >-
                                      Opaque parent entity id for this asset
                                      (post, reel, photo, or video id).
                                    minLength: 1
                                    type: string
                                  errorCode:
                                    description: Typed failure code when status is failed.
                                    minLength: 1
                                    type: string
                                  errorMessage:
                                    description: >-
                                      Short customer-safe failure message when
                                      status is failed.
                                    minLength: 1
                                    type: string
                                  expiresAt:
                                    description: >-
                                      ISO-8601 timestamp when the returned URL
                                      stops working. Same as `retainedUntil`,
                                      because the link stays valid until the
                                      file is deleted.
                                    format: date-time
                                    type: string
                                  height:
                                    description: Pixel height when known.
                                    exclusiveMinimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  mime:
                                    description: >-
                                      MIME type of the stored bytes when status
                                      is stored.
                                    minLength: 1
                                    type: string
                                  originalUrl:
                                    description: >-
                                      Original CDN URL that was requested for
                                      hosting. Still transient; prefer `url`
                                      when status is stored.
                                    format: uri
                                    type: string
                                  postId:
                                    description: >-
                                      Legacy Instagram media id alias for
                                      `entityId`. Prefer `entityId`.
                                    minLength: 1
                                    type: string
                                  retainedUntil:
                                    description: >-
                                      ISO-8601 timestamp when the stored object
                                      is deleted from AIsa hosted-media storage
                                      (90-day tier).
                                    format: date-time
                                    type: string
                                  role:
                                    description: >-
                                      Which source field this asset was derived
                                      from.
                                    enum:
                                      - display
                                      - thumbnail
                                      - video
                                    type: string
                                  status:
                                    description: >-
                                      Whether AIsa stored a durable copy of this
                                      asset.
                                    enum:
                                      - stored
                                      - failed
                                    type: string
                                  type:
                                    description: Normalized media kind.
                                    enum:
                                      - image
                                      - video
                                    type: string
                                  url:
                                    description: >-
                                      Public HTTPS URL of the stored file on the
                                      media CDN when status is stored. The link
                                      stays valid until the file is deleted at
                                      `retainedUntil`; save the file if you need
                                      it longer.
                                    format: uri
                                    type: string
                                  width:
                                    description: Pixel width when known.
                                    exclusiveMinimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                required:
                                  - status
                                  - type
                                type: object
                              type: array
                            id:
                              description: Stable photo item identifier from Facebook.
                              minLength: 1
                              type: string
                            imageUrl:
                              description: >-
                                Source-platform CDN URL for the primary image
                                when available. It can expire or be rejected
                                outside the original retrieval context; it is
                                not an AIsa-hosted asset. Null when no
                                syntactically usable URL is available. For
                                durable hosted copies on this list route, pass
                                `hostMedia=true`.
                              type:
                                - string
                                - 'null'
                            photoId:
                              description: Facebook photo id when available.
                              minLength: 1
                              type: string
                            thumbnailUrl:
                              description: >-
                                Source-platform CDN URL for the thumbnail when
                                available. It can expire or be rejected outside
                                the original retrieval context; it is not an
                                AIsa-hosted asset. Null when no syntactically
                                usable URL is available. For durable hosted
                                copies on this list route, pass
                                `hostMedia=true`.
                              type:
                                - string
                                - 'null'
                            url:
                              description: Public Facebook URL for this photo.
                              minLength: 1
                              type: string
                          required:
                            - id
                            - photoId
                            - url
                            - accessibilityCaption
                            - imageUrl
                            - thumbnailUrl
                            - dimensions
                          type: object
                        type: array
                    required:
                      - lookupStatus
                      - photos
                      - page
                    type: object
                  meta:
                    description: Metadata describing the request and billing outcome.
                    properties:
                      creditsCharged:
                        description: Credits charged for this request.
                        minimum: 0
                        type: integer
                      requestId:
                        description: Unique request identifier for tracing this API call.
                        minLength: 1
                        type: string
                      version:
                        description: Public API version that served the response.
                        enum:
                          - v1
                        type: string
                    required:
                      - requestId
                      - creditsCharged
                      - version
                    type: object
                required:
                  - data
                  - meta
                type: object
          description: Facebook photos for the requested profile or page.
          headers:
            X-AISA-Has-More:
              description: Mirrors aisa_pagination.has_more.
              schema:
                enum:
                  - 'true'
                  - 'false'
                type: string
            X-AISA-Next-Cursor:
              description: Mirrors aisa_pagination.next_cursor; absent on the last page.
              schema:
                type: string
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.