Facebook API

Facebook Page contact API

Look up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID.

$1.20/1k req, pay per request, no subscription.

What the API returneditems[0]
{
"title":ย "Joe's Stone Crab",
"url":ย "https://www.facebook.com/joesstonecrab",
"email":ย "info@joesstonecrab.com",
"phone":ย "+1 305-555-0142",
"website":ย "https://joesstonecrab.com",
"address":ย "11 Washington Ave, Miami Beach, FL 33139",
"category":ย "Seafood Restaurant",
"followers":ย 84213,
... 3 more fields
}
Uptime
99.97%
30d ยท 33,217 calls
Requests
33,533
30d ยท weekly, last 12 wks
Response
3.1s
median ยท 30d

Pricing and providers

Facebook Page contact API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

A provider marked Not serving stopped answering reliably and was taken out of the rotation, so your calls go to the others. It is put back on its own once it answers reliably again.

You pay
$12.00
$1.20/1k req, only for what you use. No monthly plan.
Your first 83 requests are free with the $0.10 starting balance.

Try it

Get Facebook page contact in one request

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `createdUtc` or `adStatus`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a page that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.

This sample shows 20 of 23 fields. See every field

{
  "found": true,
  "data": {
    "items": [
      {
        "title": "Joe's Stone Crab",
        "url": "https://www.facebook.com/joesstonecrab",
        "email": "info@joesstonecrab.com",
        "phone": "+1 305-555-0142",
        "website": "https://joesstonecrab.com",
        "address": "11 Washington Ave, Miami Beach, FL 33139",
        "category": "Seafood Restaurant",
        "followers": 84213,
        "image": "https://scontent.xx.fbcdn.net/v/t39.30808-1/joesstonecrab_profile.jpg"
      }
    ],
    "id": "108374920184756",
    "about": "Miami Beach's original stone crab house, serving fresh Florida seafood since 1913.",
    "rating": "94% recommend (14,553 reviews)",
    "priceRange": "$$$",
    "services": "Dine-in, Takeout, Delivery",
    "coverPhotoUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-6/joesstonecrab_cover.jpg",
    "createdUtc": 1181779200,
    "adStatus": "This Page is currently running ads about social issues, elections or politics in the US."
  }
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 ยท uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • pagestring

    https://www.facebook.com/joesstonecrab

    Facebook Page URL or page ID to look up (e.g. https://www.facebook.com/nasa).

  • languagestring

    Locale code for the returned data (e.g. en-US).

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `createdUtc` or `adStatus`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a page that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

datadata
  • aboutstring

    Miami Beach's original stone crab house, serving fresh Florida seafood since 1913.

    The page's intro text.

  • adStatusstringcan require

    This Page is currently running ads about social issues, elections or politics in the US.

    Facebook Ad Library status sentence for the page.

  • coverPhotoUrlstring

    https://scontent.xx.fbcdn.net/v/t39.30808-6/joesstonecrab_cover.jpg

    Cover photo image URL of the page.

  • createdUtcnumbercan require

    1181779200

    UTC epoch timestamp in seconds (Unix time) the page was created. Multiply by 1000 for a JS Date in milliseconds.

  • idstring

    108374920184756

    Numeric Facebook id of the page, as a string.

  • priceRangestring

    $$$

    Price range the page advertises, e.g. "$$".

  • ratingstring

    94% recommend (14,553 reviews)

    Recommendation summary Facebook shows for the page, e.g. "94% recommend (14,553 reviews)".

  • servicesstring

    Dine-in, Takeout, Delivery

    Services the page lists, e.g. dine-in or online booking.

each itemdata.items[]

Contact record for the requested Facebook Page (one item). Populated whenever the provider has data for the entity.

  • adLibraryPageIdstring

    The page's Facebook Ad Library id, the `pageId` facebook.company_ads takes. It differs from `id`. Absent when Facebook shows none.

  • addressstring

    11 Washington Ave, Miami Beach, FL 33139

    The page's public physical address. Empty when the page lists none.

  • categorystring

    Seafood Restaurant

    The page's primary category (e.g. "Seafood Restaurant"). Populated whenever the provider has data for the entity.

  • emailstring

    info@joesstonecrab.com

    The page's public contact email. Empty when the page lists none.

  • followersintegercan require

    84213

    The page's follower count. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.

  • imagestring

    https://scontent.xx.fbcdn.net/v/t39.30808-1/joesstonecrab_profile.jpg

    URL of the page's profile picture, a signed CDN URL whose query must be kept. Empty when the upstream omits it.

  • linksstring[]

    Other social profiles the page links to, such as its Instagram account, as URLs. Empty when the page links none.

  • phonestring

    +1 305-555-0142

    The page's public phone number. Empty when the page lists none.

  • titlestring

    Joe's Stone Crab

    The page's public name. Populated whenever the provider has data for the entity.

  • urlstring

    https://www.facebook.com/joesstonecrab

    Canonical URL of the Facebook Page, with tracking query params stripped. Populated whenever the provider has data for the entity.

  • websitestring

    https://joesstonecrab.com

    The page's public website URL. Empty when the page lists none.

top level
  • foundboolean

    true

    Whether the page was found and returned contact records.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

FAQ

About the Facebook Page contact API

The AnyAPI Facebook Page contact API returns Facebook page contact data as normalized JSON from one POST call to /v1/run/facebook.page_contact. Look up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Facebook page contact calls through AnyAPI succeeded, with a median response time of 3.1 seconds across 33,217 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Look up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Facebook page contact calls through AnyAPI succeeded, with a median response time of 3.1 seconds across 33,217 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 83 Facebook Page contact calls at $0.0012 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/facebook.page_contact with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.