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

# Search Facebook ad library companies

> Searches Facebook Ad Library companies and advertisers by name. Required input: `query`.

> **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/companies/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/facebook/ad-library/companies/search`
* **query:** query; required

[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.companies.search",
  "method": "GET",
  "path": "/apis/v1/facebook/ad-library/companies/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "query",
      "required": true,
      "schema": {
        "description": "Search query text for Facebook ad library companies.",
        "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-23

```json theme={null}
{
  "additionalProperties": true,
  "properties": {
    "data": {
      "additionalProperties": true,
      "properties": {
        "companies": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "category": {
                "type": "string"
              },
              "country": {
                "type": "null"
              },
              "imageUrl": {
                "type": "string"
              },
              "likes": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "query": {
          "type": "string"
        }
      },
      "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/companies/search
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/companies/search:
    get:
      tags:
        - Facebook
      summary: Search Facebook ad library companies
      description: >-
        Searches Facebook Ad Library companies and advertisers by name. Required
        input: `query`.


        > **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.companies.search
      parameters:
        - in: query
          name: query
          required: true
          schema:
            description: Search query text for Facebook ad library companies.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                empty:
                  value:
                    data:
                      companies: []
                      query: zzzxxyyqqnomatchfixture999
                      totalCompanies: 0
                    meta:
                      creditsCharged: 1
                      requestId: req_01example_empty
                      version: v1
                results:
                  value:
                    data:
                      companies:
                        - category: Sportswear Store
                          country: null
                          entityType: PERSON_PROFILE
                          imageUrl: >-
                            https://scontent-sea1-1.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=1&ccb=1-7&_nc_sid=418b77&_nc_ohc=MiIsRq9OtIgQ7kNvwFgCp6a&_nc_oc=AdrXoklhItyWvS7gYnP-xTbs9w35g-Zev7ZQrqGOdJx0XFHnJajR5gWpwJAjTACjSC8&_nc_zt=24&_nc_ht=scontent-sea1-1.xx&_nc_gid=L7LRV…
                          instagram:
                            followers: 292091915
                            username: nike
                            verified: true
                          likes: 39651323
                          name: Nike
                          pageAlias: nike
                          pageDeleted: false
                          pageId: '15087023444'
                          platform: facebook
                          verification: BLUE_VERIFIED
                        - category: Product/service
                          country: null
                          entityType: PERSON_PROFILE
                          imageUrl: >-
                            https://scontent-sea5-1.xx.fbcdn.net/v/t39.30808-1/387181570_863325755161415_3589774989337788111_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=103&ccb=1-7&_nc_sid=418b77&_nc_ohc=sN-QY749hScQ7kNvwERPNzg&_nc_oc=Adr-ZWflDPtXfKZY9u0PCuR_SMegkZkfHNkVqCPwX_LJ0EjC_04-rUj2wvo6pxaDrEQ&_nc_zt=24&_nc_ht=scontent-sea5-1.xx&_nc_gid=L7LRV…
                          instagram:
                            followers: 44531917
                            username: nikefootball
                            verified: true
                          likes: 40289396
                          name: Nike Football
                          pageAlias: nikefootball
                          pageDeleted: false
                          pageId: '51212153078'
                          platform: facebook
                          verification: BLUE_VERIFIED
                        - category: Sports & Recreation Venue
                          country: null
                          entityType: PERSON_PROFILE
                          imageUrl: >-
                            https://scontent-sea1-1.xx.fbcdn.net/v/t39.30808-1/381660358_828089658776016_1921906525565601948_n.png?stp=dst-png_s200x200&_nc_cat=1&ccb=1-7&_nc_sid=418b77&_nc_ohc=a7GstbZ0h1IQ7kNvwEFinJQ&_nc_oc=AdpIYlJXBsbnsm2DvwQK8BrlJLZw1M_qEVcbKSkPVrvSJ2S_ohkRCGgdBgGUYFI-pzk&_nc_zt=24&_nc_ht=scontent-sea1-1.xx&_nc_gid=L7LRVTkiKt_…
                          instagram:
                            followers: 6159794
                            username: nikerunning
                            verified: true
                          likes: 15389635
                          name: Nike Run Club
                          pageAlias: nikerunning
                          pageDeleted: false
                          pageId: '65604112975'
                          platform: facebook
                          verification: BLUE_VERIFIED
                        - category: Product/service
                          country: null
                          entityType: PERSON_PROFILE
                          imageUrl: >-
                            https://scontent-sea5-1.xx.fbcdn.net/v/t39.30808-1/352238800_1378999996006774_4240209247781423917_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=103&ccb=1-7&_nc_sid=418b77&_nc_ohc=PDgiTeeaToMQ7kNvwFUpfX_&_nc_oc=AdoPVng7k1O1D9dkg1C7mPtwnCosnArc173w1RKXhmrynh8cwdqxw7lha_6kwv8A8mw&_nc_zt=24&_nc_ht=scontent-sea5-1.xx&_nc_gid=L7LR…
                          instagram:
                            followers: 7649375
                            username: nikesportswear
                            verified: true
                          likes: 15607617
                          name: Nike Sportswear
                          pageAlias: nikesportswear
                          pageDeleted: false
                          pageId: '20825389113'
                          platform: facebook
                          verification: BLUE_VERIFIED
                        - category: Product/service
                          country: null
                          entityType: PERSON_PROFILE
                          imageUrl: >-
                            https://scontent-sea1-1.xx.fbcdn.net/v/t39.30808-1/352779693_291587943296654_5195981052627043005_n.jpg?stp=dst-jpg_s200x200_tt6&_nc_cat=106&ccb=1-7&_nc_sid=418b77&_nc_ohc=JfQ2Z6FsYZMQ7kNvwHGw5Pd&_nc_oc=AdridIF5njuV4TCjkA6_6TUSvbMTN4-qX2WQ0qvAD2oeTJdOtKSoMDCcFF2uEREgyHk&_nc_zt=24&_nc_ht=scontent-sea1-1.xx&_nc_gid=L7LRV…
                          instagram:
                            followers: 15598428
                            username: nikebasketball
                            verified: true
                          likes: 7596493
                          name: Nike Basketball
                          pageAlias: nikebasketball
                          pageDeleted: false
                          pageId: '5941596308'
                          platform: facebook
                          verification: BLUE_VERIFIED
                      query: nike
                      totalCompanies: 15
                    meta:
                      creditsCharged: 1
                      requestId: req_01example
                      version: v1
              schema:
                description: Standard success response envelope.
                properties:
                  data:
                    description: Endpoint-specific response payload.
                    properties:
                      companies:
                        description: Companies returned for the search query.
                        items:
                          description: A Facebook ad library company search result.
                          properties:
                            category:
                              description: Page category label when available.
                              type:
                                - string
                                - 'null'
                            country:
                              description: Country associated with the page when available.
                              type:
                                - string
                                - 'null'
                            entityType:
                              description: >-
                                Entity type reported for the page when
                                available.
                              type:
                                - string
                                - 'null'
                            imageUrl:
                              description: Profile image URL when available.
                              type:
                                - string
                                - 'null'
                            instagram:
                              description: Linked Instagram details when available.
                              properties:
                                followers:
                                  description: >-
                                    Linked Instagram follower count when
                                    available.
                                  minimum: 0
                                  type:
                                    - integer
                                    - 'null'
                                username:
                                  description: Linked Instagram username when available.
                                  type:
                                    - string
                                    - 'null'
                                verified:
                                  description: >-
                                    Whether the linked Instagram account is
                                    verified.
                                  type:
                                    - boolean
                                    - 'null'
                              required:
                                - username
                                - followers
                                - verified
                              type: object
                            likes:
                              description: Page like count when available.
                              minimum: 0
                              type:
                                - integer
                                - 'null'
                            name:
                              description: Company or page name.
                              minLength: 1
                              type: string
                            pageAlias:
                              description: Public page alias or username when available.
                              type:
                                - string
                                - 'null'
                            pageDeleted:
                              description: >-
                                Whether the page is marked as deleted when
                                reported.
                              type:
                                - boolean
                                - 'null'
                            pageId:
                              description: >-
                                Facebook page id for use with other ad library
                                endpoints.
                              minLength: 1
                              type: string
                            platform:
                              description: Social platform for this company result.
                              enum:
                                - facebook
                              type: string
                            verification:
                              description: Verification status label when available.
                              type:
                                - string
                                - 'null'
                          required:
                            - platform
                            - pageId
                            - name
                            - category
                            - imageUrl
                            - likes
                            - verification
                            - country
                            - entityType
                            - pageAlias
                            - pageDeleted
                            - instagram
                          type: object
                        type: array
                      query:
                        description: Search query that was evaluated for this response.
                        type: string
                      totalCompanies:
                        description: Number of companies returned in this response.
                        minimum: 0
                        type: integer
                    required:
                      - query
                      - companies
                      - totalCompanies
                    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: Company search results for the requested query.
        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.