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

# Facebook Ad



## OpenAPI

````yaml https://api.vexqo.dev/openapi.json get /facebook/ads/{ad_id}
openapi: 3.1.0
info:
  title: Vexqo API
  description: >-
    Public Meta Ad Library, Reddit, Hacker News, Product Hunt, eBay, TikTok and
    Instagram data. Authenticate with X-API-Key. Follow response links for
    related resources and supported pagination; each collection request can use
    credits. Social lookups are fresh by default; max_age explicitly allows
    cached public data.
  version: 0.1.0
servers:
  - url: https://api.vexqo.dev
security: []
paths:
  /facebook/ads/{ad_id}:
    get:
      summary: Facebook Ad
      operationId: facebook_ad_facebook_ads__ad_id__get
      parameters:
        - name: ad_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^[0-9]+$
            title: Ad Id
        - name: headless
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            title: Headless
        - name: view
          in: query
          required: false
          schema:
            enum:
              - raw
              - compact
            type: string
            description: >-
              Raw source fields (default) or compact creative groups. No
              collection or credit difference.
            default: raw
            title: View
          description: >-
            Raw source fields (default) or compact creative groups. No
            collection or credit difference.
        - name: include_creative_assets
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Include the creative asset index with source paths. No extra
              credits; increases response size. Defaults to false.
            default: false
            title: Include Creative Assets
          description: >-
            Include the creative asset index with source paths. No extra
            credits; increases response size. Defaults to false.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetaDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MetaDetailResponse:
      properties:
        ad:
          $ref: '#/components/schemas/MetaAd'
        ad_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Ad Details
        refused_requests:
          type: integer
          minimum: 0
          title: Refused Requests
        links:
          $ref: '#/components/schemas/ResponseLinks'
        response_metadata:
          additionalProperties: true
          type: object
          title: Response Metadata
      additionalProperties: true
      type: object
      required:
        - ad
        - ad_details
        - refused_requests
        - links
        - response_metadata
      title: MetaDetailResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MetaAd:
      properties:
        ad_archive_id:
          type: string
          title: Ad Archive Id
        page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Id
        page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Name
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
        snapshot:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Snapshot
          description: >-
            Present in view=raw; Meta source fields, including nulls and
            templates.
        creatives:
          anyOf:
            - items:
                $ref: '#/components/schemas/Creative'
              type: array
            - type: 'null'
          title: Creatives
          description: >-
            Present in view=compact when usable creative groups were captured.
            No truncation.
        ad_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Ad Details
        ad_details_status:
          anyOf:
            - type: string
              enum:
                - available
                - unavailable
                - failed
                - skipped
            - type: 'null'
          title: Ad Details Status
        ad_details_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Ad Details Reason
        links:
          $ref: '#/components/schemas/AdLinks'
      additionalProperties: true
      type: object
      required:
        - ad_archive_id
        - links
      title: MetaAd
    ResponseLinks:
      properties:
        self:
          type: string
          title: Self
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
      additionalProperties: true
      type: object
      required:
        - self
      title: ResponseLinks
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Creative:
      properties:
        source:
          type: string
          title: Source
          description: >-
            Source group, such as snapshot.cards[0]. Groups are not inferred
            combinations.
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        destination_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Destination Url
        cta:
          anyOf:
            - type: string
            - type: 'null'
          title: Cta
        images:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Images
        videos:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Videos
      additionalProperties: true
      type: object
      required:
        - source
      title: Creative
    AdLinks:
      properties:
        details:
          type: string
          title: Details
        advertiser:
          anyOf:
            - type: string
            - type: 'null'
          title: Advertiser
      additionalProperties: true
      type: object
      required:
        - details
      title: AdLinks
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````

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