Scraping Bot Animated

scrapingbot

Facebook Business Page Scraper API

Extract organization page as structured JSON from public Facebook Business Page targets. Queue a request, then retrieve the result with its responseId.

Get your API keyRead the documentation1,000 free credits per month, no card required.

Decide before you build

Endpoint
POST /scrape/data-scraper
Scrapers
facebookOrganization
Cost
30 credits / call
Free plan
1,000 credits / month
Call pattern
async, POST then GET
On failure
credits refunded
Response format
JSON
Concurrency
by plan tier

Launching a Social Media scrape costs 30 credits. Retrieving a pending result costs nothing; failed scrapes are refunded.

Try the Facebook Business Page scraper on your own targetRun a request against a public target and inspect the JSON before you integrate.

Open the live test

What you get back

facebookOrganization

Organization page

Use facebookOrganization to retrieve organization page data from a public Facebook target.

  • Required input: url
  • No optional input parameters
  • Structured JSON once the result is ready
  • Public data only; no account login is used

Call the Facebook Business Page scraper

Send the scraper name with the input required by that scraper. The POST returns a responseId to poll for the final JSON.

Step 1Submit a facebookOrganization request and keep the responseId returned by the API.
bash
# POST - queue a public social media scrape
curl -X POST "https://api.scraping-bot.io/scrape/data-scraper" \
  -u "yourUsername:yourApiKey" \
  -H "Content-Type: application/json" \
  -d '{
  "scraper": "facebookOrganization",
  "url": "https://example.com/public-page"
}'
Step 2Wait a few seconds, then retrieve the facebookOrganization result with the responseId. Repeat the GET while the status is pending.
bash
# GET - retrieve the result after the POST returns a responseId
curl -G "https://api.scraping-bot.io/scrape/data-scraper-response" \
  -u "yourUsername:yourApiKey" \
  --data-urlencode "responseId=RESPONSE_ID" \
  --data-urlencode "scraper=facebookOrganization"

Code example

Authenticate with your ScrapingBot username and API key, then poll until the queued result is ready.

const auth = "Basic " + Buffer.from(
  "yourUsername:yourApiKey",
).toString("base64");

const queued = await fetch("https://api.scraping-bot.io/scrape/data-scraper", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: auth },
  body: JSON.stringify({
  "scraper": "facebookOrganization",
  "url": "https://example.com/public-page"
}),
});

const { responseId } = await queued.json();
let result;
do {
  await new Promise((resolve) => setTimeout(resolve, 5000));
  result = await fetch(
    "https://api.scraping-bot.io/scrape/data-scraper-response?" +
      new URLSearchParams({ responseId, scraper: "facebookOrganization" }),
    { headers: { Authorization: auth } },
  ).then((response) => response.json());
} while (result.status === "pending");

Run this call in two minutesCreate an account, copy your API key, then use the example above.

Get your API key

Request parameters

ParameterTypeDefaultDescription
scraperstring—One of the scraper names supported by this endpoint.
urlstring—Public page URL, including https://.

Response example

Example returned by the legacy Facebook Business Page scraper documentation.

json
[
  {
      "url": "https://www.facebook.com/nike",
      "avatar_image_url": "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-1/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_e15_p160x160_q65&_nc_cat=1&ccb=1-7&_nc_sid=596444&_nc_ohc=gEFDsaifKaUAX8aoyek&_nc_ht=scontent-ord5-2.xx&oh=00_AfDa6WEkkxC6yXCoeIWdO__qFPsYjPKad2VU71FPFYpNRA&oe=65E4B530",
      "profile_name": "Nike",
      "profile_visibility": "private",
      "profile_handle": "nike",
      "is_verified": true,
      "profile_type": "Sportswear Store",
      "profile_likes": 37155549,
      "profile_followers": 39000000,
      "post_info": [
          {
              "post_id": "10159903868013445",
              "post_url": "https://www.facebook.com/15087023444/posts/10159903868013445",
              "post_date": "Wed, 01 Jun 2022 17:07:54 GMT",
              "privacy": "Public",
              "attachments": [
                  {
                      "type": "Photo",
                      "url": "https://www.facebook.com/photo.php?fbid=10159903868013445&id=15087023444&set=a.10150558176313445"
                  }
              ],
              "shortcode": "10159903868013445",
              "is_sponsored": false,
              "likes": 51321,
              "shares": 6431,
              "reactions": [
                  {
                      "count": 39442,
                      "type": "Like"
                  },
                  {
                      "count": 10594,
                      "type": "Love"
                  },
                  {
                      "count": 649,
                      "type": "Care"
                  },
                  {
                      "count": 346,
                      "type": "Angry"
                  },
                  {
                      "count": 210,
                      "type": "Haha"
                  },
                  {
                      "count": 47,
                      "type": "Wow"
                  },
                  {
                      "count": 33,
                      "type": "Sad"
                  }
              ],
              "top_comments": []
          },
      ],
      "photos": [
          "https://scontent-ord5-1.xx.fbcdn.net/v/t1.6435-9/40498234_10156386939543445_8196128374909829120_n.jpg?stp=cp0_dst-jpg_e15_p160x160_q65&_nc_cat=111&ccb=1-7&_nc_sid=47b26d&_nc_ohc=hNxi9044qL0AX8wVkJa&_nc_ht=scontent-ord5-1.xx&oh=00_AfCRMknI1XzWpYC5fSEkS73DhicXbr71RxfWOlSIGYe3bw&oe=6607C8C3",
          "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/279572998_10159840271403445_12084047411525165_n.jpg?stp=c102.0.160.160a_cp0_dst-jpg_e15_p160x160_q65&_nc_cat=104&ccb=1-7&_nc_sid=9fc3af&_nc_ohc=wZQ98zl3N-0AX_Xa0cO&_nc_ht=scontent-ord5-2.xx&oh=00_AfAr_ZISAalvzY8iS8H5lmPAj8D-Ea5N2ruoFY5r9TmUHg&oe=65E51716",
          "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/280660758_10159864133148445_8731042945500318999_n.jpg?stp=cp0_dst-jpg_e15_p160x160_q65&_nc_cat=108&ccb=1-7&_nc_sid=9fc3af&_nc_ohc=bVceSBn0tbwAX-nhCkq&_nc_ht=scontent-ord5-1.xx&oh=00_AfClz5nPV1SzAmDCd0jGk4b7YpmIY6RmsW3UUZ-hC_D9Cg&oe=65E55285",
          "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/285211224_10159903868008445_5477337468887983165_n.png?stp=c136.0.160.160a_cp0_dst-jpg_e15_p160x160_q65&_nc_cat=102&ccb=1-7&_nc_sid=9fc3af&_nc_ohc=H7tAgBexI08AX8seMnK&_nc_ht=scontent-ord5-2.xx&oh=00_AfAxSF7pk_xx1MPR5bidKcDZ1JgPc8Ux5agbfhaqra75Zw&oe=65E496E2",
          "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/284964043_10159903868513445_7696353984967674128_n.jpg?stp=cp0_dst-jpg_e15_p160x160_q65&_nc_cat=1&ccb=1-7&_nc_sid=9fc3af&_nc_ohc=gEFDsaifKaUAX8aoyek&_nc_ht=scontent-ord5-2.xx&oh=00_AfAVVp63NSQJBEDOP5Y0dES1JIo8ALAqjZMaKziXfB9ieA&oe=65E50BE0"
      ],
      "intro": "· Sportswear StoreNIKE, Inc.is responsible for this Page+44 1642 680875nike.com",
      "timestamp": "2024-02-29T10:49:11.220Z"
  }
]

Credits, failures and limits

CaseCreditsNotes
Launch a scrape30 creditsConsumed when a result is ready.
Result not readyNot consumedThe API returns a pending status; retry after a few seconds.
Failed, blocked or timed-out scrapeRefundedCredits are returned for an unsuccessful request.

Facebook Business Page API or Raw HTML scraper?

Facebook Business Page APIRaw HTML scraper
Endpoint/scrape/data-scraper/scrape/raw-html
ReturnsOrganization page JSONRendered page HTML
FlowAsynchronous: POST then GETOne synchronous request
Starting cost30 credits1 credit
Use it whenYou need parsed Facebook Business Page dataYou need your own extraction logic

Questions about the Facebook Business Page API

Which Facebook Business Page scraper names can I use?
This page supports facebookOrganization. Send the exact name in the scraper field.
Why does the API return a responseId?
Social Media requests are asynchronous. The responseId lets you retrieve the result without holding the initial request open.
What if the result is still pending?
Wait a few seconds and repeat the GET request. A pending response does not consume credits.
Does this scraper access private account data?
No. It is intended for public pages and does not sign in to a social media account to access private data.

Source: ScrapingBot API documentation.

Other social media scrapers

Browse the Social Media category for the complete list of guides, or visit the ScrapingBot blog for implementation guides.

4.9
★★★★★
133 Google reviews

Trusted by developers and social media teams.
Customer reviews apply to ScrapingBot's service overall, not specifically to this scraper.

Start scraping Facebook Business Page today

1,000 free credits every month. No card required, cancel anytime.