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

# Facebook 主页资料（按 ID）

> 通过 Facebook Profile ID 查询公开主页或个人资料详情，返回名称、URL、头像、简介、认证状态等资料字段。适用于已知 ID 场景下的资料补全。

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">4 credits</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">每次请求</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 让 AI 帮你写调用代码</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。</p>
  </div>

  <div className="mt-4">
    <button type="button" className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50" onClick={() => navigator.clipboard.writeText("我想调用 KeyAPI 接口：GET https://api.keyapi.ai/v1/facebook/profile_details_id\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/facebook/profile_details_id\n\nDescription: Facebook 的「Facebook详情」接口用于根据指定标识查询完整信息，返回基础资料、统计指标以及示例中的扩展字段。常用必填参数包括 profile_id。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- profile_id (Required): profile_id 标识符. Example: 100088017857524\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"profile\": {\n      \"name\": \"Mantraindian\",\n      \"profile_id\": \"100088017857524\",\n      \"url\": \"https://www.facebook.com/mantraindianfolsom\",\n      \"image\": \"https://scontent.fgua9-2.fna.fbcdn.net/v/t39.30808-1/331711173_3408886226056104_241444658713195527_n.jpg?stp=dst-jpg_s480x480_tt6&_nc_cat=110&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=DXR_JqmkzWsQ7kNvwHW8ef1&_nc_oc=AdkNVZ164Dyl8aUTmr9_UUVrwaSMgWBMjlVRbpJfjwhyImst5WO0lSeOUiZszVbvFBU&_nc_zt=24&_nc_ht=scontent.fgua9-2.fna&_nc_gid=IfyJbwRrliDoz5mkSj5YNA&_nc_ss=8&oh=00_AfzhvqnGlc9uwClfipkfcIDfUr6LT_K6x_W6Rj3lWaFhQw&oe=69B01EA2\",\n      \"intro\": \"Indian Vegan & Vegetarian Restaurant\",\n      \"cover_image\": \"https://scontent.fgua9-2.fna.fbcdn.net/v/t39.30808-6/477575273_596577106619546_7712360987777031655_n.jpg?stp=dst-jpg_s2048x2048_tt6&_nc_cat=111&ccb=1-7&_nc_sid=2a1932&_nc_ohc=aXr4Pm1kf-YQ7kNvwGp-fF8&_nc_oc=AdlopEvOX2qPyQaDHu59NyhUzB7F_a2aNqgQ2gbZ2T5Pjjm2mrnStobr_qhuOCapyyc&_nc_zt=23&_nc_ht=scontent.fgua9-2.fna&_nc_gid=IfyJbwRrliDoz5mkSj5YNA&_nc_ss=8&oh=00_AfxfNGicYyEgroYfS7lXhhWTEGMzRONWMcLb4norIe-JRg&oe=69B00962\",\n      \"gender\": \"UNKNOWN\",\n      \"about\": {},\n      \"about_public\": [\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yW/r/nS7-NxdkDDt.png\",\n            \"width\": 40\n          },\n          \"text\": \"Page · Restaurant\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yr/r/bwmGKGh4YjO.png\",\n            \"width\": 40\n          },\n          \"text\": \"1870 Prairie City Rd, Suite 500, Folsom, CA, United States, California\",\n          \"external_url\": \"https://maps.google.com/maps?q=1870+Prairie+City+Rd%2C+Suite+500%2C+Folsom%2C+CA%2C+United+States%2C+California&hl=en\"\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/y-/r/VIGUiR6qVQJ.png\",\n            \"width\": 40\n          },\n          \"text\": \"+1 916-999-1749\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yb/r/KVUi1wUrbfb.png\",\n            \"width\": 40\n          },\n          \"text\": \"contact@mantraindian.com\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/y4/r/UF-jk_lKW5x.png\",\n            \"width\": 40\n          },\n          \"text\": \"mantraindian.com\",\n          \"external_url\": \"https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.mantraindian.com%2F&h=AT6L1JsJuzN3GLJ26e5MXYItjcEBUhbh0ENYQ_DCQjSSNjXmAlh8TiAgqo6zpFpeAJHApD8Kpyp9LMuOqfNH6dqaGYkmkcs9g5_S1JgKm3gaZwC7ajab0ClUkmcd5fPrCubVR76eFW436hnc7YYTsrNkqHg&s=1\"\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yF/r/GtIrf9e0UA_.png\",\n            \"width\": 40\n          },\n          \"text\": \"Open now\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yP/r/Y2hfEW3V413.png\",\n            \"width\": 40\n          },\n          \"text\": \"Delivery · Takeaway · Dine in…\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yZ/r/9RIGyuM3DAi.png\",\n            \"width\": 40\n          },\n          \"text\": \"Price range · ££\",\n          \"external_url\": null\n        },\n        {\n          \"icon\": {\n            \"height\": 40,\n            \"scale\": 2,\n            \"uri\": \"https://static.xx.fbcdn.net/rsrc.php/v4/yV/r/ukt27pIh89z.png\",\n            \"width\": 40\n          },\n          \"text\": \"Not yet rated (1 review)\",\n          \"external_url\": null\n        }\n      ],\n      \"verified\": false,\n      \"delegate_page_id\": null,\n      \"reels_profile_id\": \"YXBwX2NvbGxlY3Rpb246cGZiaWQwemFaeUVXVzdWcmhKUFdZd1paTGRlZFAxdHhMNDlCVFkzQVFFVWVKZ0o4Z0FHUTQ4akdzaHJ6WnJtUVVTWUZBN3lxYVNLNjV6QjJLN2l5MUtUTkpad0c1UnNDRlR3Z0ZyRGI4cXls\",\n      \"influencer_category\": \"Page · Restaurant\",\n      \"education\": null,\n      \"current_city\": null,\n      \"hometown\": null,\n      \"relationship\": null,\n      \"member_since\": null,\n      \"reels_page_id\": \"YXBwX2NvbGxlY3Rpb246cGZiaWQwemFaeUVXVzdWcmhKUFdZd1paTGRlZFAxdHhMNDlCVFkzQVFFVWVKZ0o4Z0FHUTQ4akdzaHJ6WnJtUVVTWUZBN3lxYVNLNjV6QjJLN2l5MUtUTkpad0c1UnNDRlR3Z0ZyRGI4cXls\"\n    }\n  },\n  \"requestId\": \"68ad3402-fd65-4d5b-aa05-9b8e9dd962d0\"\n}\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/facebook.zh.openapi.json GET /v1/facebook/profile_details_id
openapi: 3.0.1
info:
  title: Facebook API 中文文档
  description: Facebook API 的中文参考文档，包含接口用途、参数说明、响应状态和示例结构。
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security:
  - JWT Bearer: []
tags: []
paths:
  /v1/facebook/profile_details_id:
    get:
      tags: []
      summary: Facebook 主页资料（按 ID）
      description: >-
        通过 Facebook Profile ID 查询公开主页或个人资料详情，返回名称、URL、头像、简介、认证状态等资料字段。适用于已知 ID
        场景下的资料补全。
      parameters:
        - name: profile_id
          in: query
          description: Facebook 主页或资料 ID，可从获取 Profile ID 接口或按 URL 查询资料接口中获得。
          required: true
          example: '100088017857524'
          schema:
            type: string
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                code: 0
                message: success
                data:
                  profile:
                    name: Mantraindian
                    profile_id: '100088017857524'
                    url: https://www.facebook.com/mantraindianfolsom
                    image: >-
                      https://scontent.fgua9-2.fna.fbcdn.net/v/t39.30808-1/331711173_3408886226056104_241444658713195527_n.jpg?stp=dst-jpg_s480x480_tt6&_nc_cat=110&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=DXR_JqmkzWsQ7kNvwHW8ef1&_nc_oc=AdkNVZ164Dyl8aUTmr9_UUVrwaSMgWBMjlVRbpJfjwhyImst5WO0lSeOUiZszVbvFBU&_nc_zt=24&_nc_ht=scontent.fgua9-2.fna&_nc_gid=IfyJbwRrliDoz5mkSj5YNA&_nc_ss=8&oh=00_AfzhvqnGlc9uwClfipkfcIDfUr6LT_K6x_W6Rj3lWaFhQw&oe=69B01EA2
                    intro: Indian Vegan & Vegetarian Restaurant
                    cover_image: >-
                      https://scontent.fgua9-2.fna.fbcdn.net/v/t39.30808-6/477575273_596577106619546_7712360987777031655_n.jpg?stp=dst-jpg_s2048x2048_tt6&_nc_cat=111&ccb=1-7&_nc_sid=2a1932&_nc_ohc=aXr4Pm1kf-YQ7kNvwGp-fF8&_nc_oc=AdlopEvOX2qPyQaDHu59NyhUzB7F_a2aNqgQ2gbZ2T5Pjjm2mrnStobr_qhuOCapyyc&_nc_zt=23&_nc_ht=scontent.fgua9-2.fna&_nc_gid=IfyJbwRrliDoz5mkSj5YNA&_nc_ss=8&oh=00_AfxfNGicYyEgroYfS7lXhhWTEGMzRONWMcLb4norIe-JRg&oe=69B00962
                    gender: UNKNOWN
                    about: {}
                    about_public:
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yW/r/nS7-NxdkDDt.png
                          width: 40
                        text: Page · Restaurant
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yr/r/bwmGKGh4YjO.png
                          width: 40
                        text: >-
                          1870 Prairie City Rd, Suite 500, Folsom, CA, United
                          States, California
                        external_url: >-
                          https://maps.google.com/maps?q=1870+Prairie+City+Rd%2C+Suite+500%2C+Folsom%2C+CA%2C+United+States%2C+California&hl=en
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/y-/r/VIGUiR6qVQJ.png
                          width: 40
                        text: +1 916-999-1749
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yb/r/KVUi1wUrbfb.png
                          width: 40
                        text: contact@mantraindian.com
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/y4/r/UF-jk_lKW5x.png
                          width: 40
                        text: mantraindian.com
                        external_url: >-
                          https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.mantraindian.com%2F&h=AT6L1JsJuzN3GLJ26e5MXYItjcEBUhbh0ENYQ_DCQjSSNjXmAlh8TiAgqo6zpFpeAJHApD8Kpyp9LMuOqfNH6dqaGYkmkcs9g5_S1JgKm3gaZwC7ajab0ClUkmcd5fPrCubVR76eFW436hnc7YYTsrNkqHg&s=1
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yF/r/GtIrf9e0UA_.png
                          width: 40
                        text: Open now
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yP/r/Y2hfEW3V413.png
                          width: 40
                        text: Delivery · Takeaway · Dine in…
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yZ/r/9RIGyuM3DAi.png
                          width: 40
                        text: Price range · ££
                        external_url: null
                      - icon:
                          height: 40
                          scale: 2
                          uri: >-
                            https://static.xx.fbcdn.net/rsrc.php/v4/yV/r/ukt27pIh89z.png
                          width: 40
                        text: Not yet rated (1 review)
                        external_url: null
                    verified: false
                    delegate_page_id: null
                    reels_profile_id: >-
                      YXBwX2NvbGxlY3Rpb246cGZiaWQwemFaeUVXVzdWcmhKUFdZd1paTGRlZFAxdHhMNDlCVFkzQVFFVWVKZ0o4Z0FHUTQ4akdzaHJ6WnJtUVVTWUZBN3lxYVNLNjV6QjJLN2l5MUtUTkpad0c1UnNDRlR3Z0ZyRGI4cXls
                    influencer_category: Page · Restaurant
                    education: null
                    current_city: null
                    hometown: null
                    relationship: null
                    member_since: null
                    reels_page_id: >-
                      YXBwX2NvbGxlY3Rpb246cGZiaWQwemFaeUVXVzdWcmhKUFdZd1paTGRlZFAxdHhMNDlCVFkzQVFFVWVKZ0o4Z0FHUTQ4akdzaHJ6WnJtUVVTWUZBN3lxYVNLNjV6QjJLN2l5MUtUTkpad0c1UnNDRlR3Z0ZyRGI4cXls
                requestId: 68ad3402-fd65-4d5b-aa05-9b8e9dd962d0
          headers: {}
        '400':
          description: 请求参数错误，请检查必填字段和参数格式
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: 鉴权失败，请检查 Authorization Header 中的 Bearer Token 或 API Key 是否有效
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: 账户余额或额度不足
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: 请求过于频繁，已触发限流
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: 服务器内部错误，请稍后重试
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/facebook/profile_details_id?profile_id=100088017857524' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/facebook/profile_details_id',
                params={"profile_id": "100088017857524"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"profile_id":
            "100088017857524"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/facebook/profile_details_id?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````