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

# Profiles details by id

> Get profile details by ID, used in conjunction with get_profile_id (profile_details_by_url as an alternative)

<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">per request</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">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</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(`I want to make an API call to https://api.keyapi.ai/v1/facebook/profile_details_id.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/facebook/profile_details_id

Description: Get profile details by ID, used in conjunction with get_profile_id (profile_details_by_url as an alternative)

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- profile_id (Required): Profile ID, obtainable from the get_profile_id API response. Example: 100088017857524

Example Response:
{
"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
    },
    {
      "ic
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/facebook.openapi.json GET /v1/facebook/profile_details_id
openapi: 3.0.1
info:
  title: Facebook API English documentation
  description: >-
    The english reference documentation of the Facebook API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  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: Profiles details by id
      description: >-
        Get profile details by ID, used in conjunction with get_profile_id
        (profile_details_by_url as an alternative)
      parameters:
        - name: profile_id
          in: query
          description: Profile ID, obtainable from the get_profile_id API response
          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: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: Internal Server Error
          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: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````