> ## 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

# Get Facebook Ad Library ad

> Returns a single Facebook Ad Library ad. Provide `adId` or `url`.

> **Request example pending verification.** The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (`X-AISA-Cost-Mode: quote`) before running it.

## Request contract

* **Method and path:** GET /apis/v1/facebook/ad-library/ads
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/facebook/ad-library/ads`
* **adId:** query; optional
* **includeTranscript:** query; optional
* **trim:** query; optional
* **url:** query; optional

[Complete OpenAPI definition](https://aisa.one/docs/openapi-public/facebook.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "facebook.ad-library.ads",
  "method": "GET",
  "path": "/apis/v1/facebook/ad-library/ads",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "adId",
      "required": false,
      "schema": {
        "description": "Facebook Ad Library archive id for the ad.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "includeTranscript",
      "required": false,
      "schema": {
        "description": "When true, includes a plain-text transcript when available for the ad video.",
        "type": "boolean"
      }
    },
    {
      "in": "query",
      "name": "trim",
      "required": false,
      "schema": {
        "description": "When true, requests a smaller payload before normalization.",
        "type": "boolean"
      }
    },
    {
      "in": "query",
      "name": "url",
      "required": false,
      "schema": {
        "description": "Public Facebook Ad Library URL for the ad.",
        "maxLength": 4096,
        "minLength": 1,
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Observed response structure

The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.

* **HTTP status / last observed:** 200 / 2026-11-26

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "type": "object"
    },
    "meta": {
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.042 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

## Response time

* Typically returns within 10 seconds.


## OpenAPI

````yaml openapi-public/facebook.json GET /apis/v1/facebook/ad-library/ads
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:9117dbffa58b526630641f3d7f4c6e2f2908b4413094de045099890bf5f28a34
  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/ad-library/ads:
    get:
      tags:
        - Facebook
      summary: Get Facebook Ad Library ad
      description: >-
        Returns a single Facebook Ad Library ad. Provide `adId` or `url`.


        > **Request example pending verification.** The request example for this
        endpoint has not yet been verified in production. Static examples
        describe the request format; replace sample values with your own. Check
        the estimated price with a free quote request (`X-AISA-Cost-Mode:
        quote`) before running it.
      operationId: facebook.ad-library.ads
      parameters:
        - in: query
          name: adId
          required: false
          schema:
            description: Facebook Ad Library archive id for the ad.
            maxLength: 4096
            minLength: 1
            type: string
        - in: query
          name: includeTranscript
          required: false
          schema:
            description: >-
              When true, includes a plain-text transcript when available for the
              ad video.
            type: boolean
        - in: query
          name: trim
          required: false
          schema:
            description: When true, requests a smaller payload before normalization.
            type: boolean
        - in: query
          name: url
          required: false
          schema:
            description: Public Facebook Ad Library URL for the ad.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                found:
                  value:
                    data:
                      ad:
                        adId: null
                        brandedContent:
                          pageId: '170229159669841'
                          pageName: Zomato
                          pageUrl: https://www.facebook.com/zomato/
                        campaign:
                          collationCount: null
                          collationId: null
                        categories:
                          - UNKNOWN
                        countries: []
                        creative:
                          bodyText: >-
                            Some days the hustle barely leaves room for lunch.
                            That’s when I refuel with @zomato 


                            The grind shouldn’t stop just because you’re hungry.
                            🍽️✨


                            #zomato #ad
                          callToAction: Install now
                          callToActionType: INSTALL_MOBILE_APP
                          caption: play.google.com
                          cards: []
                          displayFormat: video
                          images: []
                          linkDescription: null
                          linkUrl: >-
                            http://play.google.com/store/apps/details?id=com.application.zomato
                          title: null
                          videos:
                            - hdUrl: >-
                                https://video-bos5-1.xx.fbcdn.net/o1/v/t2/f2/m367/AQPOJ0rdHWbvKnGrmnLH4fXgNtAuaCO02CwFRR3lv4pOj_c8UKe-igTIQWUlizoiVh1QywSV30K0yS4qraL5SC2qeVBpicu27jnQl-xHFQ.mp4?_nc_cat=106&_nc_sid=8bf8fe&_nc_ht=video-bos5-1.xx.fbcdn.net&_nc_ohc=HoErQUm6xO8Q7kNvwGCB6Ll&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuNzIwLnByb2dyZXNzaXZlX2gyNjQtYmFzaWMtZ2VuMl83MjBwIiwieHB2X2Fzc2V0X2lkIjoxNzk2NTI0MTQ5MzAxMzMyNiwiYXNzZXRfYWdlX2RheXMiOjc4LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MjUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=QNUmkXHO6pdr5iCn_xiF3w&_nc_ss=7e289&_nc_zt=28&oh=00_Af6Bt5qmoYbhCLmECLOdehrLw6zhAV_2XiGnZHDw63qMeQ&oe=6A136D58
                              previewImageUrl: >-
                                https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/649376900_978249861203086_2417192780715376312_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=HRJFID7echsQ7kNvwFg44gg&_nc_oc=AdqPXkDOWlmsTotpUK6JbhrbvaLuAgVKZrLEJhKXfGX5IXfwvQX7vTd8YBA8N5x_4A0&_nc_zt=14&_nc_ht=scontent-bos5-1.xx&_nc_gid=QNUmkXHO6pdr5iCn_xiF3w&_nc_ss=7e289&oh=00_Af6Q-75n7Vj7ldBhf3l9sCfDHE1qNNs_t9Kb7E4mTZUBUA&oe=6A136CCB
                              sdUrl: >-
                                https://video-bos5-1.xx.fbcdn.net/o1/v/t2/f2/m367/AQMVefbS2ttuIJC8Oa_BBsrjByLjf_emvT42zj7ZsbGnex9__UCOHkNDPHN6DGoqrYmCKom3UjBWTiFT1Oaviq0Cf9Ev2aMCv_mG_ifgHw.mp4?_nc_cat=102&_nc_sid=8bf8fe&_nc_ht=video-bos5-1.xx.fbcdn.net&_nc_ohc=PIInzVOSQ8wQ7kNvwGfyhdp&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuMzYwLnByb2dyZXNzaXZlX2gyNjQtYmFzaWMtZ2VuMl8zNjBwIiwieHB2X2Fzc2V0X2lkIjoxNzk2NTI0MTQ5MzAxMzMyNiwiYXNzZXRfYWdlX2RheXMiOjc4LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MjUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=QNUmkXHO6pdr5iCn_xiF3w&_nc_ss=7e289&_nc_zt=28&oh=00_Af6qJZzlBXiILYAikEfajoM7nd6qWLWwbIyXhcppCP03TA&oe=6A136CE4
                        endedAt: '2026-05-19T07:00:00.000Z'
                        euTransparency: null
                        id: '902134546059754'
                        impressions:
                          index: -1
                          text: null
                        isActive: true
                        page:
                          categories:
                            - Profile
                          id: '170229159669841'
                          isDeleted: false
                          likeCount: 0
                          name: Zomato
                          profilePictureUrl: >-
                            https://scontent-bos5-1.cdninstagram.com/v/t51.82787-19/657785441_17969434809013326_9108915003959285985_n.jpg?stp=dst-jpg_s206x206_tt6&_nc_cat=1&ccb=7-5&_nc_sid=525117&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy42OTguQzMifQ%3D%3D&_nc_ohc=T-S3Zr46rmsQ7kNvwHfzZP8&_nc_oc=AdpOZ7tvtiEqmMadIZhRnDjUZDFTIJakC6HowQb7lsbVnq8bJI93SzJg7Yd-yleze14&_nc_zt=24&_nc_ht=scontent-bos5-1.cdninstagram.com&_nc_gid=QNUmkXHO6pdr5iCn_xiF3w&_nc_ss=7e289&oh=00_Af73xXQgM6A98t088fi7MRUOmqCTLPwMFZMEbNmDoI12sw&oe=6A135F97
                          url: https://www.instagram.com/_u/hey.sanober
                        publisherPlatforms:
                          - facebook
                          - instagram
                        spend: null
                        startedAt: '2026-03-11T07:00:00.000Z'
                        url: >-
                          https://www.facebook.com/ads/library?id=902134546059754
                      lookupStatus: found
                      transcript: null
                    meta:
                      creditsCharged: 1
                      requestId: req_01example
                      version: v1
                not_found:
                  value:
                    data:
                      ad: null
                      lookupStatus: not_found
                      transcript: null
                    meta:
                      creditsCharged: 1
                      requestId: req_01example
                      version: v1
                withTranscript:
                  value:
                    data:
                      ad:
                        adId: null
                        brandedContent:
                          pageId: '170229159669841'
                          pageName: Zomato
                          pageUrl: https://www.facebook.com/zomato/
                        campaign:
                          collationCount: null
                          collationId: null
                        categories:
                          - UNKNOWN
                        countries: []
                        creative:
                          bodyText: >-
                            Some days the hustle barely leaves room for lunch.
                            That’s when I refuel with @zomato 


                            The grind shouldn’t stop just because you’re hungry.
                            🍽️✨


                            #zomato #ad
                          callToAction: Install now
                          callToActionType: INSTALL_MOBILE_APP
                          caption: play.google.com
                          cards: []
                          displayFormat: video
                          images: []
                          linkDescription: null
                          linkUrl: >-
                            http://play.google.com/store/apps/details?id=com.application.zomato
                          title: null
                          videos:
                            - hdUrl: >-
                                https://video-lga3-3.xx.fbcdn.net/o1/v/t2/f2/m367/AQPOJ0rdHWbvKnGrmnLH4fXgNtAuaCO02CwFRR3lv4pOj_c8UKe-igTIQWUlizoiVh1QywSV30K0yS4qraL5SC2qeVBpicu27jnQl-xHFQ.mp4?_nc_cat=106&_nc_sid=8bf8fe&_nc_ht=video-lga3-3.xx.fbcdn.net&_nc_ohc=HoErQUm6xO8Q7kNvwGP4ANB&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuNzIwLnByb2dyZXNzaXZlX2gyNjQtYmFzaWMtZ2VuMl83MjBwIiwieHB2X2Fzc2V0X2lkIjoxNzk2NTI0MTQ5MzAxMzMyNiwiYXNzZXRfYWdlX2RheXMiOjc4LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MjUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=djzVdTl37Q6nr4O7QmDJDw&_nc_ss=7e289&_nc_zt=28&oh=00_Af4UjTL6KMBfx43jiXYZj6k5nyjH6JWvnJ7tt-4W0qAWCA&oe=6A136D58
                              previewImageUrl: >-
                                https://scontent-lga3-1.xx.fbcdn.net/v/t39.35426-6/649376900_978249861203086_2417192780715376312_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=HRJFID7echsQ7kNvwEPvDE9&_nc_oc=Ado4DIQpNWR0y-C1URv5M-PxcZrww8K9m3VWVwJeEkPKDM1qqJ7Xs_OBxj9LVkqWiU4&_nc_zt=14&_nc_ht=scontent-lga3-1.xx&_nc_gid=djzVdTl37Q6nr4O7QmDJDw&_nc_ss=7e289&oh=00_Af79rIczKdLtDPLfcvBIJQhZtC3vlX-QPC-W5QE5D2BVtg&oe=6A136CCB
                              sdUrl: >-
                                https://video-lga3-3.xx.fbcdn.net/o1/v/t2/f2/m367/AQMVefbS2ttuIJC8Oa_BBsrjByLjf_emvT42zj7ZsbGnex9__UCOHkNDPHN6DGoqrYmCKom3UjBWTiFT1Oaviq0Cf9Ev2aMCv_mG_ifgHw.mp4?_nc_cat=102&_nc_sid=8bf8fe&_nc_ht=video-lga3-3.xx.fbcdn.net&_nc_ohc=PIInzVOSQ8wQ7kNvwFr4N8F&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5WSV9VU0VDQVNFX1BST0RVQ1RfVFlQRS4uQzMuMzYwLnByb2dyZXNzaXZlX2gyNjQtYmFzaWMtZ2VuMl8zNjBwIiwieHB2X2Fzc2V0X2lkIjoxNzk2NTI0MTQ5MzAxMzMyNiwiYXNzZXRfYWdlX2RheXMiOjc4LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MjUsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=djzVdTl37Q6nr4O7QmDJDw&_nc_ss=7e289&_nc_zt=28&oh=00_Af6E1rWpLNCZ2lSlvgDB_m5NMNi_n-u1hS17_l_whgI_Vw&oe=6A136CE4
                        endedAt: '2026-05-19T07:00:00.000Z'
                        euTransparency: null
                        id: '902134546059754'
                        impressions:
                          index: -1
                          text: null
                        isActive: true
                        page:
                          categories:
                            - Profile
                          id: '170229159669841'
                          isDeleted: false
                          likeCount: 0
                          name: Zomato
                          profilePictureUrl: >-
                            https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/657785441_17969434809013326_9108915003959285985_n.jpg?stp=dst-jpg_s206x206_tt6&_nc_cat=1&ccb=7-5&_nc_sid=525117&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy42OTguQzMifQ%3D%3D&_nc_ohc=T-S3Zr46rmsQ7kNvwHdJsFM&_nc_oc=AdoiPEr5llETnXfs_rf-8Q2EsKdk_y_xot2CDqB-Z_5ZqCvFPYGnd58R3ny6s4VVCVU&_nc_zt=24&_nc_ht=scontent-lga3-3.cdninstagram.com&_nc_gid=djzVdTl37Q6nr4O7QmDJDw&_nc_ss=7e289&oh=00_Af4FwEcgaxhYLbZpoCUdHwMiDDt3FRsL_hcdaUIwQMHk-Q&oe=6A135F97
                          url: https://www.instagram.com/_u/hey.sanober
                        publisherPlatforms:
                          - facebook
                          - instagram
                        spend: null
                        startedAt: '2026-03-11T07:00:00.000Z'
                        url: >-
                          https://www.facebook.com/ads/library?id=902134546059754
                      lookupStatus: found
                      transcript: >-
                        Nobody tells you that running a business means sometimes
                        you just don't have time to eat. I just mean you don't
                        wanna deal with me when I'm hungry. Luckily I have my
                        mom with me who cooks all the meals for me and feeds my
                        soul, but when she's not around you know who sorts me
                        out. You know who, who else? So when I'm all neck deep
                        in work, I don't really pause. I refuel without breaking
                        my rhythm with Zomato. Do you?
                    meta:
                      creditsCharged: 1
                      requestId: req_01example
                      version: v1
              schema:
                description: Standard success response envelope.
                properties:
                  data:
                    description: Endpoint-specific response payload.
                    properties:
                      ad:
                        description: Ad details when found; otherwise null.
                        properties:
                          adId:
                            description: Platform ad id when available.
                            type:
                              - string
                              - 'null'
                          brandedContent:
                            description: >-
                              Partner page for branded content (paid
                              partnership) ads. Null when the ad is not a
                              partnership ad.
                            properties:
                              pageId:
                                description: >-
                                  Facebook page id of the partner when
                                  available.
                                type:
                                  - string
                                  - 'null'
                              pageName:
                                description: >-
                                  Display name of the partner page when
                                  available.
                                type:
                                  - string
                                  - 'null'
                              pageUrl:
                                description: >-
                                  Public profile URL for the partner (Facebook
                                  page or Instagram account) when available.
                                type:
                                  - string
                                  - 'null'
                            required:
                              - pageId
                              - pageName
                              - pageUrl
                            type:
                              - object
                              - 'null'
                          campaign:
                            description: Campaign collation metadata for this ad.
                            properties:
                              collationCount:
                                description: >-
                                  Number of ads in the campaign collation when
                                  available.
                                minimum: 0
                                type:
                                  - integer
                                  - 'null'
                              collationId:
                                description: Campaign collation id when available.
                                type:
                                  - string
                                  - 'null'
                            required:
                              - collationId
                              - collationCount
                            type: object
                          categories:
                            description: Ad categories reported by the platform.
                            items:
                              minLength: 1
                              type: string
                            type: array
                          countries:
                            description: >-
                              Countries targeted or reached by the ad when
                              available.
                            items:
                              minLength: 1
                              type: string
                            type: array
                          creative:
                            description: Creative content for this ad.
                            properties:
                              bodyText:
                                description: Primary ad body text when available.
                                type:
                                  - string
                                  - 'null'
                              callToAction:
                                description: Call-to-action label when available.
                                type:
                                  - string
                                  - 'null'
                              callToActionType:
                                description: Call-to-action type when available.
                                type:
                                  - string
                                  - 'null'
                              caption:
                                description: Ad caption when available.
                                type:
                                  - string
                                  - 'null'
                              cards:
                                description: Carousel cards attached to the creative.
                                items:
                                  description: >-
                                    Carousel card for a Facebook Ad Library ad
                                    creative.
                                  properties:
                                    body:
                                      description: Card body text when available.
                                      type:
                                        - string
                                        - 'null'
                                    caption:
                                      description: Card caption when available.
                                      type:
                                        - string
                                        - 'null'
                                    imageUrl:
                                      description: Card image URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    linkUrl:
                                      description: Card link URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    title:
                                      description: Card title when available.
                                      type:
                                        - string
                                        - 'null'
                                    videoUrl:
                                      description: Card video URL when available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - title
                                    - body
                                    - caption
                                    - linkUrl
                                    - imageUrl
                                    - videoUrl
                                  type: object
                                type: array
                              displayFormat:
                                description: >-
                                  Display format for the creative when
                                  available.
                                type:
                                  - string
                                  - 'null'
                              images:
                                description: Image assets attached to the creative.
                                items:
                                  description: >-
                                    Image asset for a Facebook Ad Library ad
                                    creative.
                                  properties:
                                    resizedUrl:
                                      description: Resized image URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    url:
                                      description: Image URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    watermarkedResizedUrl:
                                      description: >-
                                        Watermarked resized image URL when
                                        available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - url
                                    - resizedUrl
                                    - watermarkedResizedUrl
                                  type: object
                                type: array
                              linkDescription:
                                description: Link description when available.
                                type:
                                  - string
                                  - 'null'
                              linkUrl:
                                description: Primary link URL when available.
                                type:
                                  - string
                                  - 'null'
                              title:
                                description: Ad title when available.
                                type:
                                  - string
                                  - 'null'
                              videos:
                                description: Video assets attached to the creative.
                                items:
                                  description: >-
                                    Video asset for a Facebook Ad Library ad
                                    creative.
                                  properties:
                                    hdUrl:
                                      description: >-
                                        High-definition video URL when
                                        available.
                                      type:
                                        - string
                                        - 'null'
                                    previewImageUrl:
                                      description: Video preview image URL when available.
                                      type:
                                        - string
                                        - 'null'
                                    sdUrl:
                                      description: >-
                                        Standard-definition video URL when
                                        available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - hdUrl
                                    - sdUrl
                                    - previewImageUrl
                                  type: object
                                type: array
                            required:
                              - bodyText
                              - title
                              - caption
                              - linkUrl
                              - linkDescription
                              - callToAction
                              - callToActionType
                              - displayFormat
                              - images
                              - videos
                              - cards
                            type: object
                          endedAt:
                            description: >-
                              ISO-8601 timestamp for when the ad ended, when
                              available.
                            type:
                              - string
                              - 'null'
                          euTransparency:
                            description: >-
                              EU/UK audience transparency (reach, age, gender,
                              locations, payer and beneficiary). Usually only
                              present on single-ad lookups of ads delivered in
                              the EU or UK; null otherwise.
                            properties:
                              ageRange:
                                description: Targeted age range when available.
                                properties:
                                  max:
                                    description: Maximum targeted age when available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                  min:
                                    description: Minimum targeted age when available.
                                    minimum: 0
                                    type:
                                      - integer
                                      - 'null'
                                required:
                                  - min
                                  - max
                                type:
                                  - object
                                  - 'null'
                              gender:
                                description: >-
                                  Targeted gender audience as reported by the
                                  platform (for example `All`, `Women` or `Men`)
                                  when available.
                                type:
                                  - string
                                  - 'null'
                              locations:
                                description: >-
                                  Targeted locations. Empty when none are
                                  disclosed.
                                items:
                                  description: Targeted location disclosed for the ad.
                                  properties:
                                    isExcluded:
                                      description: >-
                                        Whether the location was excluded from
                                        targeting when available.
                                      type:
                                        - boolean
                                        - 'null'
                                    name:
                                      description: >-
                                        Location name, such as a country or
                                        country group.
                                      minLength: 1
                                      type: string
                                    type:
                                      description: >-
                                        Location type as reported by the
                                        platform (for example `countries` or
                                        `country_groups`) when available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - name
                                    - type
                                    - isExcluded
                                  type: object
                                type: array
                              payers:
                                description: >-
                                  Payer and beneficiary pairs. Empty when none
                                  are disclosed.
                                items:
                                  description: Payer and beneficiary disclosed for the ad.
                                  properties:
                                    beneficiary:
                                      description: >-
                                        Name of the entity the ad benefits when
                                        available.
                                      type:
                                        - string
                                        - 'null'
                                    payer:
                                      description: >-
                                        Name of the entity that paid for the ad
                                        when available.
                                      type:
                                        - string
                                        - 'null'
                                  required:
                                    - payer
                                    - beneficiary
                                  type: object
                                type: array
                              totalReach:
                                description: >-
                                  Total reach reported in the transparency
                                  disclosure when available.
                                minimum: 0
                                type:
                                  - integer
                                  - 'null'
                            required:
                              - totalReach
                              - ageRange
                              - gender
                              - locations
                              - payers
                            type:
                              - object
                              - 'null'
                          id:
                            description: Stable identifier for the ad.
                            minLength: 1
                            type: string
                          impressions:
                            description: Impressions metadata when available.
                            properties:
                              index:
                                description: Impressions index when available.
                                type:
                                  - integer
                                  - 'null'
                              text:
                                description: >-
                                  Human-readable impressions label when
                                  available.
                                type:
                                  - string
                                  - 'null'
                            required:
                              - text
                              - index
                            type:
                              - object
                              - 'null'
                          isActive:
                            description: Whether the ad is currently active.
                            type: boolean
                          page:
                            description: Advertiser page summary for this ad.
                            properties:
                              categories:
                                description: >-
                                  Public categories for the advertiser page when
                                  available.
                                items:
                                  minLength: 1
                                  type: string
                                type: array
                              id:
                                description: >-
                                  Facebook page id for the advertiser when
                                  available.
                                type:
                                  - string
                                  - 'null'
                              isDeleted:
                                description: Whether the advertiser page is marked deleted.
                                type:
                                  - boolean
                                  - 'null'
                              likeCount:
                                description: Advertiser page like count when available.
                                minimum: 0
                                type:
                                  - integer
                                  - 'null'
                              name:
                                description: >-
                                  Display name for the advertiser page when
                                  available.
                                type:
                                  - string
                                  - 'null'
                              profilePictureUrl:
                                description: >-
                                  Profile picture URL for the advertiser page
                                  when available.
                                type:
                                  - string
                                  - 'null'
                              url:
                                description: >-
                                  Public Facebook URL for the advertiser page
                                  when available.
                                type:
                                  - string
                                  - 'null'
                            required:
                              - id
                              - name
                              - url
                              - isDeleted
                              - profilePictureUrl
                              - likeCount
                              - categories
                            type: object
                          publisherPlatforms:
                            description: >-
                              Publisher platforms where the ad ran or is
                              running.
                            items:
                              minLength: 1
                              type: string
                            type: array
                          spend:
                            description: Spend metadata when available.
                            properties:
                              amount:
                                description: Spend amount text when available.
                                type:
                                  - string
                                  - 'null'
                              currency:
                                description: Currency code for spend when available.
                                type:
                                  - string
                                  - 'null'
                            required:
                              - amount
                              - currency
                            type:
                              - object
                              - 'null'
                          startedAt:
                            description: >-
                              ISO-8601 timestamp for when the ad started, when
                              available.
                            type:
                              - string
                              - 'null'
                          url:
                            description: >-
                              Public Facebook Ad Library URL for this ad when
                              available.
                            type:
                              - string
                              - 'null'
                        required:
                          - id
                          - adId
                          - url
                          - page
                          - campaign
                          - isActive
                          - publisherPlatforms
                          - startedAt
                          - endedAt
                          - categories
                          - countries
                          - impressions
                          - spend
                          - creative
                          - brandedContent
                          - euTransparency
                        type:
                          - object
                          - 'null'
                      lookupStatus:
                        description: Whether the ad was found in the Ad Library.
                        enum:
                          - found
                          - not_found
                        type: string
                      transcript:
                        description: >-
                          Plain transcript text when requested and available.
                          May be null when speech is not detected, the video
                          exceeds supported length, or transcription is
                          otherwise unavailable.
                        type:
                          - string
                          - 'null'
                    required:
                      - lookupStatus
                      - ad
                      - transcript
                    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: Ad Library ad detail.
        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.