API Documentation

Facebook Profile Detail API

Query Facebook profile detail. Empty results and failures are free.

Test API
Open the product page and test
POST https://api.goanyapi.com/api/v1/facebook/profile/detail

Request and input parameters

Synchronous POST JSON query. There are no Path or Query parameters and no asynchronous task.

Parameter Location Type Required Default Constraints and meaning
Authorization Header string Yes — Bearer YOUR_API_KEY
Content-Type Header string Yes application/json application/json
url JSON body string Optional or conditional — Complete HTTPS resource URL; takes precedence over resource identifiers; maxLength=4096
userId JSON body string Optional or conditional — Facebook profile or page ID; alternatively supply its URL; pattern=^[0-9]{1,25}$

Conditional requirements (required lists mandatory fields; satisfy at least one anyOf branch, exactly one oneOf branch, and every allOf branch):

{
  "required": [],
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "userId"
      ]
    }
  ]
}

Request example

POST /api/v1/facebook/profile/detail
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "url": "https://www.facebook.com/WhiteHouse"
}

Output fields

Field path Type Meaning
code string ok on success; public error code otherwise
message string Request status message
data.result object / null Business result; actual null, empty and missing values are preserved
data.creditsUsed integer Actual charge; empty results and failures are free
data.remainingCredits number Account balance after settlement
data.result.profile object profile: public business value; may be empty or absent
data.result.profile.id string Record identifier
data.result.profile.name string Display name
data.result.profile.url string Public resource URL
data.result.profile.avatar string avatar: public business value; may be empty or absent
data.result.profile.cover string cover: public business value; may be empty or absent
data.result.profile.verified boolean verified: public business value; may be empty or absent
data.result.profile.bio string bio: public business value; may be empty or absent
data.result.profile.followersCount number followersCount: public business value; may be empty or absent
data.result.profile.followingCount number followingCount: public business value; may be empty or absent
data.result.profile.socialContext array socialContext: public business value; may be empty or absent
data.result.sections array sections: public business value; may be empty or absent
data.result.sections[].type string type: public business value; may be empty or absent
data.result.sections[].items array items: public business value; may be empty or absent
data.result.sections[].items[].text string Text content
data.result.sections[].items[].url string Public resource URL
data.result.sections[].count integer Records in this response, not the total

Real response example

Captured: 2026-11-25T10:22:56Z. Real public response excerpt; only data.creditsUsed and data.remainingCredits are omitted. Charges and balance depend on the actual request.

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "profile": {
        "id": "61571700369424",
        "name": null,
        "url": null,
        "avatar": null,
        "cover": null,
        "verified": null,
        "bio": "The Golden Age of America Begins Right Now.",
        "followersCount": null,
        "followingCount": null,
        "socialContext": []
      },
      "sections": [
        {
          "type": "INTRO",
          "items": [
            {
              "text": "The Golden Age of America Begins Right Now.",
              "url": null
            },
            {
              "text": "Page · Government organization",
              "url": null
            },
            {
              "text": "Executive Office of the President",
              "url": null
            },
            {
              "text": "is responsible for this Page",
              "url": null
            },
            {
              "text": "1600 Pennsylvania Avenue NW, Washington D.C., DC, United States, Washington, District of Columbia",
              "url": null
            },
            {
              "text": "wh.gov/?utm_id=97758_v0_s00_e0_tv0",
              "url": "https://l.facebook.com/l.php?u=https%3A%2F%2Fwh.gov%2F%3Futm_id%3D97758_v0_s00_e0_tv0&h=AUAlxzrN5bTx516MEXV480isSLXYgjFKbaU3r97crMafQwB1g-Yx9mRfHPgllcU4Rtigk3O6RwN62pIcmSSpuE3HQmhhsBMqDEwZXFxsupCY5cBGEgJMpS7Q9cVLpBIChBI31iflFjpZ4UsoS3YOFcEYFwN2j6N9iDRfCDV5pB0&s=1"
            },
            {
              "text": "24% recommend (39,561 reviews)",
              "url": "https://www.facebook.com/WhiteHouse/reviews"
            }
          ],
          "count": 7
        }
      ]
    }
  }
}

Pagination and billing

This operation does not support cursor pagination; do not invent a next page.

…

Successful nonempty requests use the current database-configured price. Empty results and failures are free; each page is billed separately. Empty optional fields do not make a record empty. Missing fields, null, empty strings and arrays are preserved. Saved media URLs and cursors may expire; query again for current values.

Status codes

HTTP Meaning
200 Success; results may be empty
400 Invalid parameters or JSON
401 Missing or invalid authentication
402 Insufficient credits
429 Rate limit exceeded
502 The data request could not complete
503 API or pricing is not configured