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

> Searches Facebook events by name. Required input: `query`. 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/events/search
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/facebook/events/search`
* **cursor:** query; 可选
* **query:** query; 必填

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

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

```json theme={null}
{
  "operationId": "facebook.events.search",
  "method": "GET",
  "path": "/apis/v1/facebook/events/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "description": "Opaque pagination cursor returned by a previous response.",
        "maxLength": 16384,
        "minLength": 1,
        "type": "string"
      }
    },
    {
      "in": "query",
      "name": "query",
      "required": true,
      "schema": {
        "description": "Search query text for Facebook events by name.",
        "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": {
        "events": {
          "items": {
            "additionalProperties": true,
            "properties": {
              "cover": {
                "additionalProperties": true,
                "properties": {
                  "alt": {
                    "type": "null"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "dayTimeSentence": {
                "type": "string"
              },
              "eventKind": {
                "type": "string"
              },
              "goingCount": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "interestedCount": {
                "type": "integer"
              },
              "isOnline": {
                "type": "boolean"
              },
              "isPast": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "place": {
                "additionalProperties": true,
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "priceRange": {
                "type": "null"
              },
              "startAt": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "wentCount": {
                "type": "null"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "page": {
          "additionalProperties": true,
          "properties": {
            "hasMore": {
              "type": "boolean"
            },
            "nextCursor": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "query": {
          "type": "string"
        },
        "totalEvents": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "meta": {
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
```

## 费用与请求规则

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

## 翻页

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

## 响应时间

* 通常 30 秒内返回。


## OpenAPI

````yaml openapi-public/zh/facebook.json GET /apis/v1/facebook/events/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: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/events/search:
    get:
      tags:
        - Facebook
      summary: Search Facebook events
      description: >-
        Searches Facebook events by name. Required input: `query`. 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.events.search
      parameters:
        - in: query
          name: cursor
          required: false
          schema:
            description: Opaque pagination cursor returned by a previous response.
            maxLength: 16384
            minLength: 1
            type: string
        - in: query
          name: query
          required: true
          schema:
            description: Search query text for Facebook events by name.
            maxLength: 4096
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                empty:
                  value:
                    data:
                      events: []
                      page:
                        hasMore: false
                        nextCursor: null
                      query: socialfetch_fixture_no_results_000000
                      totalEvents: 0
                    meta:
                      creditsCharged: 1
                      requestId: req_01facebook_events_search_empty
                      version: v1
                results:
                  value:
                    data:
                      events:
                        - cover:
                            alt: null
                            url: >-
                              https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-6/720342260_1328491916042322_5406238829933287513_n.jpg?stp=cp6_dst-jpg_tt6&_nc_cat=105&ccb=1-7&_nc_sid=75d36f&_nc_ohc=U1n38Au3XRMQ7kNvwFxduHT&_nc_oc=Adr9ZD-vi7u-me4i6MQquDn5_P6EfiezFLZp5e9Eh8rC9lzkGKy3C0QDlgRc3PsoNUw&_nc_zt=23&_nc_ht=scontent-sjc3-1.xx&_nc_gid=99bellBuawHQ6PhcuGjDkQ&_nc_ss=7f289&oh=00_AQHXedFFseiFmjzC1hbV2WQnOjYxsU-mNVqO6nK_LhPtNA&oe=6A91161C
                          dayTimeSentence: Tuesday, September 8, 2026 at 7:00 PM BST
                          eventKind: public
                          goingCount: 1
                          id: '2219404332228026'
                          interestedCount: 2
                          isOnline: false
                          isPast: false
                          name: Understanding Dogs - 6 weeks to better know your dog
                          place:
                            id: '2004675446504200'
                            name: Newton Abbot, United Kingdom
                          priceRange: null
                          startAt: '2026-09-08T18:00:00.000Z'
                          url: https://www.facebook.com/events/2219404332228026/
                          wentCount: null
                        - cover:
                            alt: null
                            url: >-
                              https://scontent-iad6-1.xx.fbcdn.net/v/t39.30808-6/774512889_1601921601965803_2564495123857315976_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=75d36f&_nc_ohc=EcYF_i0_f0MQ7kNvwFLqt6L&_nc_oc=Adpyi7AvNw_0iFAr8IQYQKlfJl27vgIaZEhWFv-ll38sIz5yMHaKqdV0GB38_ENZIqc&_nc_zt=23&_nc_ht=scontent-iad6-1.xx&_nc_gid=AbgnpegJt9ZUI_fj6d3CsQ&_nc_ss=7f289&oh=00_AQFKS6gsoB-IIKw7twlh-QFThRIgiOaDRs1iUsRPma2uCg&oe=6A911A75
                          dayTimeSentence: Tuesday, September 29, 2026 at 5:00 PM PDT
                          eventKind: public
                          goingCount: 1
                          id: '1585084289634302'
                          interestedCount: 2
                          isOnline: false
                          isPast: false
                          name: 'Dogs Making a Difference: From Puppy to Guide Dog'
                          place:
                            id: '177731318922421'
                            name: El Gabilan Library
                          priceRange: null
                          startAt: '2026-09-30T00:00:00.000Z'
                          url: https://www.facebook.com/events/1585084289634302/
                          wentCount: null
                        - cover:
                            alt: null
                            url: >-
                              https://scontent-atl3-3.xx.fbcdn.net/v/t39.30808-6/735925647_1665498382248399_2538570621219587835_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=75d36f&_nc_ohc=bJG9tI6pZFEQ7kNvwGkZxMr&_nc_oc=AdrNJ0o65T_f3gi7R_QldkTV3WeZOi6PR7P2ypnJBPFOAZlm-_V-dhFWx404VwKYzXY&_nc_zt=23&_nc_ht=scontent-atl3-3.xx&_nc_gid=GS02CZ6b4udvDYfJZZl99A&_nc_ss=7f289&oh=00_AQFVBGDYSDq6JjDLs9uWUOjkjkg6Za2_wx91RpnNsyiyMg&oe=6A91308D
                          dayTimeSentence: Monday, July 6, 2026 at 4:30 PM – 6:00 PM PDT
                          eventKind: public
                          goingCount: 1
                          id: '985989180608988'
                          interestedCount: 7
                          isOnline: true
                          isPast: true
                          name: 'Dogs are Scary: Dog Odor v Target Odor Webinar'
                          place:
                            id: null
                            name: Online event
                          priceRange: null
                          startAt: '2026-07-06T23:30:00.000Z'
                          url: https://www.facebook.com/events/985989180608988/
                          wentCount: null
                        - cover:
                            alt: null
                            url: >-
                              https://scontent-iad3-2.xx.fbcdn.net/v/t39.30808-6/644028849_1244734041180195_7090273631242761330_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=75d36f&_nc_ohc=ht0skqeYMXsQ7kNvwG8zgID&_nc_oc=Adoqg71mT99l0CiEO7at6YoWoxO1ptQmmY3AtHuAsDdDv4OlmMfUY1Cva1ZG-Nb2wv4&_nc_zt=23&_nc_ht=scontent-iad3-2.xx&_nc_gid=x8C8wZtXnpzXCCLOOTGKhA&_nc_ss=7f289&oh=00_AQHJ_0fkb8kqhgNGjVSuDcqQ9-lbUaSv5FuzqdnP2hXDyA&oe=6A912FC5
                          dayTimeSentence: Sunday, March 29, 2026 at 10:00 AM – 1:00 PM AWST
                          eventKind: public
                          goingCount: 85
                          id: '1294096359443822'
                          interestedCount: 754
                          isOnline: false
                          isPast: true
                          name: Dogs' Day Out
                          place:
                            id: '1244735867846679'
                            name: Frye Park
                          priceRange: null
                          startAt: '2026-03-29T02:00:00.000Z'
                          url: https://www.facebook.com/events/1294096359443822/
                          wentCount: null
                        - cover:
                            alt: null
                            url: >-
                              https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/773249392_1483317103815568_1270924104517055564_n.jpg?stp=cp6_dst-jpg_tt6&_nc_cat=104&ccb=1-7&_nc_sid=75d36f&_nc_ohc=dwxwNWZ4K6kQ7kNvwFHM4dH&_nc_oc=AdqAqexxVK6FbHBPV52EWx4Lac-CuvSA6Ivw7upPa8Ulsyu5_BHhWlpDvZN5TUHenQA&_nc_zt=23&_nc_ht=scontent-ord5-2.xx&_nc_gid=eQnjeVg_cSnYchKYwu_fXQ&_nc_ss=7f289&oh=00_AQGw0eUj80H4Mk-Bj-rgSahAxsv43ZLls1l0bpS18qRaVQ&oe=6A913822
                          dayTimeSentence: Tuesday, September 1, 2026 at 8:00 PM BST
                          eventKind: public
                          goingCount: 1
                          id: '2073092680750424'
                          interestedCount: 0
                          isOnline: false
                          isPast: false
                          name: Life Skills for Dogs - Adolescent Dog Training
                          place:
                            id: '1483333883813890'
                            name: MAD Dog Club
                          priceRange: null
                          startAt: '2026-09-01T19:00:00.000Z'
                          url: https://www.facebook.com/events/2073092680750424/
                          wentCount: null
                      page:
                        hasMore: true
                        nextCursor: '2'
                      query: dogs
                      totalEvents: 5
                    meta:
                      creditsCharged: 1
                      requestId: req_01facebook_events_search_example
                      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:
                      events:
                        description: Events returned for this page.
                        items:
                          description: A Facebook event in search results.
                          properties:
                            cover:
                              description: Cover image for the event.
                              properties:
                                alt:
                                  description: Cover image alternative text when available.
                                  type:
                                    - string
                                    - 'null'
                                url:
                                  description: Cover image URL when available.
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - url
                                - alt
                              type: object
                            dayTimeSentence:
                              description: >-
                                Human-readable date and time label when
                                available.
                              type:
                                - string
                                - 'null'
                            eventKind:
                              description: >-
                                Event visibility kind when available, such as
                                public or private.
                              type:
                                - string
                                - 'null'
                            goingCount:
                              description: Number of people marked going when available.
                              type:
                                - number
                                - 'null'
                            id:
                              description: Stable Facebook event identifier.
                              minLength: 1
                              type: string
                            interestedCount:
                              description: >-
                                Number of people marked interested when
                                available.
                              type:
                                - number
                                - 'null'
                            isOnline:
                              description: Whether the event is online when available.
                              type:
                                - boolean
                                - 'null'
                            isPast:
                              description: >-
                                Whether the event has already ended when
                                available.
                              type:
                                - boolean
                                - 'null'
                            name:
                              description: Event name.
                              minLength: 1
                              type: string
                            place:
                              description: Venue or place associated with the event.
                              properties:
                                id:
                                  description: >-
                                    Place identifier for the event venue when
                                    available.
                                  type:
                                    - string
                                    - 'null'
                                name:
                                  description: >-
                                    Display name of the event venue when
                                    available.
                                  type:
                                    - string
                                    - 'null'
                              required:
                                - id
                                - name
                              type: object
                            priceRange:
                              description: Ticket price range label when available.
                              type:
                                - string
                                - 'null'
                            startAt:
                              description: >-
                                Event start time as an ISO-8601 timestamp when
                                available.
                              type:
                                - string
                                - 'null'
                            url:
                              description: Canonical public event URL when available.
                              type:
                                - string
                                - 'null'
                            wentCount:
                              description: Number of people who went when available.
                              type:
                                - number
                                - 'null'
                          required:
                            - id
                            - url
                            - name
                            - dayTimeSentence
                            - startAt
                            - isOnline
                            - isPast
                            - eventKind
                            - place
                            - cover
                            - priceRange
                            - interestedCount
                            - goingCount
                            - wentCount
                          type: object
                        type: array
                      page:
                        description: Pagination information for the current response.
                        properties:
                          hasMore:
                            description: Whether another page is available.
                            type: boolean
                          nextCursor:
                            description: >-
                              Cursor to pass in the next request when more pages
                              exist; null on the last page.
                            type:
                              - string
                              - 'null'
                        required:
                          - hasMore
                          - nextCursor
                        type: object
                      query:
                        description: Search query string evaluated for this response.
                        type: string
                      totalEvents:
                        description: Number of events returned in this response.
                        minimum: 0
                        type: integer
                    required:
                      - query
                      - events
                      - totalEvents
                      - 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: Events matching the requested search.
          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.