Platforms · Facebook

Facebook Search Pages Scraper API

Searches public Facebook pages by keyword and returns unified Author items: page id, display name, permalink, avatar, and verified flag. Facebook's search card carries no follower count, bio, page likes or creation date, so on a plain call author.followers, author.bio, author.likes_count and author.joined_at are null on every row. The page id, name, permalink and avatar the search row carries are never replaced. About 7 pages on the first page and 8 or 9 on later ones.

GET /api/v1/data/facebook/search-pages · 1 credit per page · The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Inputs

  • query (required): Keyword or phrase to search for.
  • cursor: Leave it out for the first page. For the next page, send next_cursor from the previous answer.
  • location_uid: Facebook location id to scope the search.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].author.avatar_url (string): URL to profile picture
  • items[].author.bio (string): Profile biography or description
  • items[].author.display_name (string): Display name or full name
  • items[].author.ext.business_hours (array)
  • items[].author.ext.products (array): Null when it lists none.
  • items[].author.followers (number): Follower or subscriber count as an integer. YouTube above 1,000 subscribers is YouTube's published three-significant-figure figure. When the integer is a published/rounded value, `author.ext.followers_approximate` is true.
  • items[].author.id (string): Platform-specific user ID (always a string; platform-specific prefixes like `did:`, `spotify:artist:`, `t2_` are stripped)
  • items[].author.joined_at (string): When the account was created, as an ISO 8601 date (YYYY-MM-DD).
  • items[].author.likes_count (number): Total likes received across the author's content (when surfaced)
  • items[].author.url (string): Direct URL to the profile page
  • items[].author.username (string): User handle or username
  • items[].author.verified (boolean): Whether the account is verified
  • next_cursor (string): Send it as cursor to get the next page; null when there is none.
  • has_more (boolean): Whether there is another page.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 1 credit to 11 credits.
  • Each call returns one page of about 9 rows. To get the next page, send next_cursor from the answer as cursor.
  • The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Example call

GET /api/v1/data/facebook/search-pages?query=NASA

Questions

How much does the Facebook Search Pages API cost?

Each page costs 1 to 11 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send query. 1 more input is optional: location_uid. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How do I get the next page?

Each call returns one page of about 9 rows. The answer carries next_cursor: send it back as cursor to get the page after. Each page is charged on its own, and an empty page is free.

How fresh is the data?

The same call repeated within 2 minutes may get the same answer, so data can be up to 2 minutes old.

Do I need a Facebook account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Facebook endpoints

  • Search Groups: Search Facebook groups by keyword. 1 credit a page
  • Search Hashtag: Search Facebook posts and videos carrying a hashtag. 1 credit a page
  • Search Mentions: Search Facebook posts that mention a page. 1 credit a page
  • Search People: Search Facebook people by keyword. 1 credit a page
  • Search Videos: Search Facebook videos by keyword. 1 credit a page

More Facebook scraper APIs