> ## 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 主页资料（按 URL）

> 通过 Facebook 主页或个人资料 URL 查询公开资料，返回名称、主页 ID、头像、简介、封面图、认证状态和 Reels Profile 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_url\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/facebook/profile_details_url\n\nDescription: Facebook 的「Facebook详情」接口用于根据指定标识查询完整信息，返回基础资料、统计指标以及示例中的扩展字段。常用必填参数包括 url。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- url (Required): 目标 URL 或链接地址. Example: https://www.facebook.com/mantraindianfolsom\n\nExample Response:\n{\n  \"profile\": {\n    \"name\": \"Mantraindian\",\n    \"profile_id\": \"100088017857524\",\n    \"url\": \"https://www.facebook.com/mantraindianfolsom\",\n    \"image\": \"https://scontent.fltn3-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_JqmkzWsQ7kNvwHKwQhO&_nc_oc=AdlJvVxguBSjr_FiDLZK3bHFdj6Y4iS4wxISGfhMMmQ9uHNUm-FiZRwCUHD0_e6rz5E&_nc_zt=24&_nc_ht=scontent.fltn3-2.fna&_nc_gid=7DxHDj1TO9rNqlTFHxSfkA&_nc_ss=8&oh=00_AfxzbIY5JQ6jXgtxNdqdwmnVNkzOWsppszQnstlw1EsK_g&oe=69AF3DA2\",\n    \"intro\": \"Indian Vegan & Vegetarian Restaurant\",\n    \"cover_image\": \"https://scontent.fltn3-1.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-YQ7kNvwFQ4g1L&_nc_oc=AdmunSqxHR0J5Vfa9oXWSwci5Yun0lWqZAoDTIC7uVcupe3AHU_pDXg7ZATOAR8Tkqg&_nc_zt=23&_nc_ht=scontent.fltn3-1.fna&_nc_gid=7DxHDj1TO9rNqlTFHxSfkA&_nc_ss=8&oh=00_Afz8Bjd-Ok4U3CyQhZbiYbV77ZqJb-IFeBZn8AJzhWF7DA&oe=69AF60A2\",\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=AT4lbmJeb7_y7SaUebf4723b3sXyn6xn3RD51GXxRoQRFi9yqRtxdbGql58cf12-qN1iQkXO6yZkspo0KSBTEGIiHpUkU1DDdlcgzcZEhz9JBLh4PZH11ieGnu97tn_-gfh88y33U284RmratpbHkYY32Bk&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\": \"Closed 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  \"requestId\": \"f03bfe83-cd23-488a-bbaf-7126b2be6241\"\n}\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/facebook.zh.openapi.json GET /v1/facebook/profile_details_url
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_url:
    get:
      tags: []
      summary: Facebook 主页资料（按 URL）
      description: >-
        通过 Facebook 主页或个人资料 URL 查询公开资料，返回名称、主页 ID、头像、简介、封面图、认证状态和 Reels Profile
        ID 等信息。适用于账号识别和公开资料采集。
      parameters:
        - name: url
          in: query
          description: Facebook 主页或个人资料 URL。
          required: true
          example: https://www.facebook.com/mantraindianfolsom
          schema:
            type: string
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                profile:
                  name: Mantraindian
                  profile_id: '100088017857524'
                  url: https://www.facebook.com/mantraindianfolsom
                  image: >-
                    https://scontent.fltn3-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_JqmkzWsQ7kNvwHKwQhO&_nc_oc=AdlJvVxguBSjr_FiDLZK3bHFdj6Y4iS4wxISGfhMMmQ9uHNUm-FiZRwCUHD0_e6rz5E&_nc_zt=24&_nc_ht=scontent.fltn3-2.fna&_nc_gid=7DxHDj1TO9rNqlTFHxSfkA&_nc_ss=8&oh=00_AfxzbIY5JQ6jXgtxNdqdwmnVNkzOWsppszQnstlw1EsK_g&oe=69AF3DA2
                  intro: Indian Vegan & Vegetarian Restaurant
                  cover_image: >-
                    https://scontent.fltn3-1.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-YQ7kNvwFQ4g1L&_nc_oc=AdmunSqxHR0J5Vfa9oXWSwci5Yun0lWqZAoDTIC7uVcupe3AHU_pDXg7ZATOAR8Tkqg&_nc_zt=23&_nc_ht=scontent.fltn3-1.fna&_nc_gid=7DxHDj1TO9rNqlTFHxSfkA&_nc_ss=8&oh=00_Afz8Bjd-Ok4U3CyQhZbiYbV77ZqJb-IFeBZn8AJzhWF7DA&oe=69AF60A2
                  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=AT4lbmJeb7_y7SaUebf4723b3sXyn6xn3RD51GXxRoQRFi9yqRtxdbGql58cf12-qN1iQkXO6yZkspo0KSBTEGIiHpUkU1DDdlcgzcZEhz9JBLh4PZH11ieGnu97tn_-gfh88y33U284RmratpbHkYY32Bk&s=1
                    - icon:
                        height: 40
                        scale: 2
                        uri: >-
                          https://static.xx.fbcdn.net/rsrc.php/v4/yF/r/GtIrf9e0UA_.png
                        width: 40
                      text: Closed 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: f03bfe83-cd23-488a-bbaf-7126b2be6241
          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_url?url=https%3A%2F%2Fwww.facebook.com%2Fmantraindianfolsom' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

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


            const response = await
            fetch(`https://api.keyapi.ai/v1/facebook/profile_details_url?${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。

````