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

# /facebook/advertisers

> Get a Facebook Ad Library advertiser (Page) by Page ID

**Price:** 10 credits

**⚠️ Common errors:** 412: Advertiser not found. Verify the Page ID.



## OpenAPI

````yaml /openapi/ad-transparency.json post /api/facebook/advertisers
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/facebook/advertisers:
    post:
      tags:
        - /facebook/advertisers
      summary: /facebook/advertisers
      description: |-
        Get a Facebook Ad Library advertiser (Page) by Page ID

        **Price:** 10 credits

        **⚠️ Common errors:** 412: Advertiser not found. Verify the Page ID.
      operationId: __api_facebook_advertisers_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FacebookAdvertisersPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FacebookAdvertiserDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FacebookAdvertisersPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        advertiser:
          type: string
          minLength: 1
        active_status:
          $ref: '#/components/schemas/FacebookAdActiveStatus'
          default: all
        country:
          type: string
          pattern: ^[A-Z]{2}$
          default: US
      type: object
      required:
        - advertiser
    FacebookAdvertiserDetail:
      properties:
        '@type':
          type: string
          default: FacebookAdvertiserDetail
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        alias:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        categories:
          items:
            type: string
          type: array
          default: []
        like_count:
          anyOf:
            - type: integer
            - type: 'null'
        byline:
          anyOf:
            - type: string
            - type: 'null'
        is_deleted:
          type: boolean
          default: false
        is_actioned:
          type: boolean
          default: false
        ad_count:
          anyOf:
            - type: integer
            - type: 'null'
        hidden_ads:
          anyOf:
            - type: integer
            - type: 'null'
        has_blank_ads:
          type: boolean
          default: false
        related_pages:
          items:
            $ref: '#/components/schemas/FacebookRelatedPage'
          type: array
          default: []
        admin_info:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    FacebookAdActiveStatus:
      type: string
      enum:
        - active
        - inactive
        - all
    FacebookRelatedPage:
      properties:
        '@type':
          type: string
          default: FacebookRelatedPage
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        country_code:
          anyOf:
            - type: string
            - type: 'null'
        is_verified:
          type: boolean
          default: false
      type: object
      required:
        - id
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````