Facebook API
Read public Facebook Pages, posts, comments, groups, the Ad Library, Marketplace and events with one EveryInfra API key. The API returns JSON, from $0.56 per 1,000 calls.
All you need is one API key, no Facebook account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.
- 20 endpoints, one key
- Failed calls and empty results are not charged.
- Call with an EveryInfra API key, not a Facebook access token
Real sample values for one Page
POST /api/v1/social params {"url":"https://www.facebook.com/nasa"}
- Details
profile- follower_count
- 28,743,710
- like_count
- 0
- Posts by user
user_posts- count
- 10
- results[0].like_count
- 4,113
- Post details
post- like_count
- 484
- comment_count
- 103
- Comments
comments- count
- 16
- results[0].like_count
- 0
Platform availability
- 24h health
- 97%
Last 30 days
Available capabilities
Find public posts, profiles, comments, ads and marketplace listings using keywords or URLs for social media research.
Some materials require asynchronous tasks to obtain, and search terms distinguish between keywords, ads, and marketplace items.
Posts and search
- SearchHealthy · health 99%
Search Facebook posts by
keywordand get each post's text, author, likes, comments, shares and post time, with an optional date range.search$16 per 1,000 callsEvery 10 rows count as one call - Posts by userNormal
List posts from a Facebook Page or account at
url, each with text, author, post time and like, comment and share counts.user_posts$2.78 per 1,000 callsEvery 10 rows count as one call - Post detailsNormal
Fetch one Facebook post from its
urlwith text, author, post time and like, comment and share counts.post$1.39 per 1,000 calls - Posts in bulkNormal
Look up as many as 20 public Facebook posts at once from
urls, each given as a post link (/posts/,/permalink/,/reel/,/videos/,/watch/?v=,/photoor/share/, or anm.facebook.comorfb.watchlink).posts_batch$1.39 per 1,000 callsEach element in urls counts as one call - Group postsAvailable · health 81%
Read posts from a Facebook group by group
urlor identifier.group_posts$1.39 per 1,000 callsEvery 20 rows count as one call - Video post transcriptsNormal
Turn the speech in a public Facebook video, Reel or video post into text, from its link.
post_transcript$0.96 per 1,000 calls
Comments and reviews
- CommentsNormal
Pull comments on a Facebook post from its
url.comments$2.78 per 1,000 callsEvery 10 rows count as one call - ReviewsNormal
Collect recommendations and reviews from a Facebook Page
url, with text, recommend or not, rating where given, author and post time.reviews$1.39 per 1,000 callsEvery 20 rows count as one call
Pages and followers
- Page searchNormal
Search public Facebook Pages by
keyword, in the order Facebook's Page search returns them.page_search$1.6 per 1,000 calls - DetailsHealthy · health 100%
Get a Facebook Page or public profile from its
url.profile$0.56 per 1,000 calls - Profiles in bulkNormal
Look up as many as 20 public Facebook Pages at once from
usernames, each given as a Page username such asnatgeo, a numeric Page ID, or a Page link.profiles_batch$0.56 per 1,000 callsEach element in usernames counts as one call - FollowersNormal
Check follower, following, post and like counts for a Facebook account or Page by
username.followers$1.39 per 1,000 calls
Ad Library
- AdsNormal
Find ads in the Facebook Ad Library by
keywordor Ad Library URL.ads$11.79 per 1,000 callsEvery 20 rows count as one call - Advertiser searchNormal
Find the Facebook Pages that advertise under a brand or advertiser name in the Ad Library, up to 15 per call.
advertiser_search$0.88 per 1,000 calls - Ad detailsNormal
Open one ad in the Facebook Ad Library from its link or Library ID.
ad_detail$0.96 per 1,000 calls
Marketplace
- MarketplaceNormal
Browse Facebook Marketplace listings for an item
keywordin one city.marketplace$1.39 per 1,000 callsEvery 20 rows count as one call Read one Facebook Marketplace listing from its link or numeric ID.
marketplace_item$0.96 per 1,000 calls
Events
- Event searchNormal
Search public Facebook events by
keyword, such asmusic festival.events_search$0.96 per 1,000 calls - Page eventsNormal
List the events a public Facebook Page hosts, upcoming and past, from the Page link.
page_events$0.96 per 1,000 calls - Event detailsNormal
Read one public Facebook event from its link or numeric event ID.
event_detail$0.56 per 1,000 calls
6 questions to ask before choosing a data API for Facebook
Does Facebook have an official API, and how is it different from this one?
Yes. Meta's Graph API is the official interface. Reading public posts and comments from Facebook Pages your app does not manage requires the Page Public Content Access feature, which Meta grants only after App Review and business verification; a person's own timeline is available only with that person's permission and for limited uses. With one EveryInfra API key, you can read public Facebook data in the same request format as other platforms, without applying for Facebook developer access.
Official sources: Meta: Page Public Content Access · Meta Graph API · Checked
Do I need to log in to Facebook or provide a cookie to make calls?
No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.
How is it billed? Are failed requests charged? Is there a free trial?
Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged; when urls has several links, each link counts as one request. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.
Can I connect this Facebook API to Claude or Cursor?
Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server. An agent can search Facebook content, read comments and look up accounts on its own.
What compliance points apply when using Facebook data?
The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.
What Facebook data can I get?
Available Facebook capabilities (20): Search, Details, Posts by user, Profiles in bulk, Posts in bulk, Post details, Comments, Followers, Ads, Group posts, Marketplace, Reviews, Advertiser search, Ad details, Event search, Marketplace listing details, Page events, Event details, Page search, Video post transcripts. The parameters and response fields of each capability are in the API reference on this page.
Use cases
Competitor ad research
Find the Pages that advertise under a brand name, read their ads in the Ad Library, then read the text and creatives of one ad.
Local second-hand price research
Search Marketplace listings in one city by item term, then read the price, condition and seller of one item.
Topics in groups and public posts
Search public posts by keyword, read the posts in a group, then read the engagement counts of one post.
Business reputation
Read the recommendations and reviews of a business Page, then the comments under a post and the Page details.
Event schedules
Search public events by keyword, then list the events that one public Page hosts.
Bulk Page and post lookups
Look up several Pages or several posts in one call, then read the follower count of a Page.
Meta documentation vs EveryInfra
For Ad Library ads, Meta has an official Ad Library API, compared on the ads and ad_detail pages. The platform page has no row-by-row comparison with the official text.
| Compared | Meta documentation | EveryInfra |
|---|
The platform page has no official comparison rows. Official sources:
What does each Facebook action accept?
Parameter table for all 20 actions
| Action | Required | Optional | Delivery | Limit | Per 1,000 | Response fields |
|---|---|---|---|---|---|---|
searchSearch Search Facebook posts by | keyword | content_type, since, until | Sync delivery | Catalog values: defaultLimit=10, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $16 per 1,000 requestsEvery 10 rows count as one call | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · media · reactions · view_count · link · group_name · is_paid_partnership · audience_type · like_count · comment_count · share_count · posted_at · platform |
profileDetails Get a Facebook Page or public profile from its | url | — | Async delivery | — | $0.56 per 1,000 requests | id · name · url · bio · category · like_count · follower_count · is_verified · phone · email · website · rating · rating_scale · review_count · avatar_url · platform |
user_postsPosts by user List posts from a Facebook Page or account at | url | — | Async delivery | Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $2.78 per 1,000 requestsEvery 10 rows count as one call | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · media · reactions · view_count · link · group_name · is_paid_partnership · audience_type · like_count · comment_count · share_count · posted_at · platform |
profiles_batchProfiles in bulk Look up as many as 20 public Facebook Pages at once from | usernames | — | Sync delivery | — | $0.56 per 1,000 requestsEach element in usernames counts as one call | id · name · url · bio · category · like_count · follower_count · is_verified · phone · email · website · rating · rating_scale · review_count · avatar_url · platform · input |
posts_batchPosts in bulk Look up as many as 20 public Facebook posts at once from | urls | — | Sync delivery | — | $1.39 per 1,000 requestsEach element in urls counts as one call | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · media · reactions · view_count · link · group_name · audience_type · like_count · comment_count · share_count · posted_at · platform · input |
postPost details Fetch one Facebook post from its | url | — | Sync delivery | — | $1.39 per 1,000 requests | id · url · text · author_name · author_username · author_id · author_url · author_avatar_url · media · reactions · view_count · link · group_name · is_paid_partnership · audience_type · like_count · comment_count · share_count · posted_at · platform |
commentsComments Pull comments on a Facebook post from its | url | — | Async delivery | Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $2.78 per 1,000 requestsEvery 10 rows count as one call | id · text · author_name · author_username · depth · reply_to_id · comment_url · author_id · author_url · like_count · reply_count · posted_at · platform |
followersFollowers Check follower, following, post and like counts for a Facebook account or Page by | username | channel | Sync delivery | — | $1.39 per 1,000 requests | id · username · url · follower_count · following_count · post_count · like_count · connection_count · precision · platform |
adsAds Find ads in the Facebook Ad Library by | keyword | country, status | Sync delivery | Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $11.79 per 1,000 requestsEvery 20 rows count as one call | id · url · text · title · cta_text · link_url · is_active · started_at · ended_at · platforms · variant_count · advertiser_id · advertiser_name · advertiser_url · advertiser_likes · partner_page · image_url · platform |
group_postsGroup posts Read posts from a Facebook group by group | url | sort | Sync delivery | Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | id · url · text · posted_at · like_count · comment_count · share_count · author_id · author_name · author_url · group_url · platform |
marketplaceMarketplace Browse Facebook Marketplace listings for an item | keyword | location | Sync delivery | Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | id · url · name · price · currency · city · state · condition · image_url · posted_at · platform |
reviewsReviews Collect recommendations and reviews from a Facebook Page | url | — | Sync delivery | Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. | $1.39 per 1,000 requestsEvery 20 rows count as one call | id · url · text · is_recommended · rating · rating_scale · posted_at · like_count · comment_count · author_id · author_name · author_url · platform |
advertiser_searchAdvertiser search Find the Facebook Pages that advertise under a brand or advertiser name in the Ad Library, up to 15 per call. Each Page has its ID, name, username, category, verification flag, Page likes, and the linked Instagram account with its follower count. A search for nike puts Nike (Page ID 15087023444) first. There is no paging. | keyword | — | Sync delivery | Each call returns one page of up to 15 rows. There is no next page. Each page is billed once. | $0.88 per 1,000 requests | id · name · username · url · category · avatar_url · page_like_count · is_verified · instagram_username · instagram_follower_count · instagram_verified · country · platform |
ad_detailAd details Open one ad in the Facebook Ad Library from its link or Library ID. Get whether it is still running, start and end dates, ad text, headline, link and call to action, display format, the placements it ran on, images or video, every creative variant, and the advertiser's Page ID, name, likes and categories. Spend, reach and targeting are not part of the result. | url | — | Sync delivery | — | $0.96 per 1,000 requests | id · url · is_active · started_at · ended_at · text · title · caption · link_url · link_description · cta_text · display_format · platforms · media · creatives · variant_count · advertiser_id · advertiser_name · advertiser_url · advertiser_likes · advertiser_avatar_url · advertiser_categories · partner_page · platform |
events_searchEvent search Search public Facebook events by | keyword | page_token | Sync delivery | Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.96 per 1,000 requests | id · url · name · starts_at · start_date · end_date · date_text · place_name · place_id · is_online · is_past · going_count · interested_count · price_text · image_url · next_page_token · platform |
marketplace_itemMarketplace listing details Read one Facebook Marketplace listing from its link or numeric ID. Get title, description, price, currency, condition, item attributes, location with coordinates, listing time, sold and pending flags, shipping and delivery options, photos, and the seller's name. Original price appears only when the seller has cut the price; seller rating and rating count appear only when the seller has ratings. | url | — | Sync delivery | — | $0.96 per 1,000 requests | id · url · title · text · price · price_text · original_price_text · currency · condition · attributes · location · latitude · longitude · posted_at · is_sold · is_pending · is_shipping_offered · delivery_types · category_id · image_urls · seller_id · seller_name · seller_rating · seller_rating_count · seller_joined_at · platform |
page_eventsPage events List the events a public Facebook Page hosts, upcoming and past, from the Page link. Each event has its name, start time, venue, city, host, and online, past and canceled flags. About 8 per page and the count varies; page on with | url | page_token | Sync delivery | Each call returns one page of up to 8 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $0.96 per 1,000 requests | id · url · name · starts_at · date_text · place_name · city · host_name · is_online · is_past · is_canceled · is_happening_now · place_id · image_url · next_page_token · platform |
event_detailEvent details Read one public Facebook event from its link or numeric event ID. Get the name, | url | — | Sync delivery | — | $0.56 per 1,000 requests | id · url · name · description · starts_at · ends_at · date_text · duration_text · place_name · place_id · address · city · latitude · longitude · is_online · is_past · is_canceled · host_name · hosts · responded_count · price_text · ticket_url · image_url · platform |
page_searchPage search Search public Facebook Pages by | keyword | page_token | Sync delivery | Each call returns one page of up to 10 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect. | $1.6 per 1,000 requests | id · url · name · username · category · is_verified · avatar_url · snippet_text · follower_count · follower_count_label · platform |
post_transcriptVideo post transcripts Turn the speech in a public Facebook video, Reel or video post into text, from its link. You get the transcript and the video length in seconds. A video where nobody speaks comes back without | url | — | Sync delivery | — | $0.96 per 1,000 requests | id · url · text · duration_seconds · duration_sec · platform |
What each action's parameters mean (20 actions)
Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.
Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.
What do the Facebook search parameters mean?
Search Facebook posts by keyword and get each post's text, author, likes, comments, shares and post time, with an optional date range. content_type sorts by newest or most popular rather than filtering media, and private messages are not searched.
keywordRequired- Specifies the search query for distinct platform endpoints. For search, it searches public posts; for ads, it accepts ad keywords or direct Ad Library and Page URLs; for marketplace, it accepts item search terms or complete Marketplace search URLs. Each action queries a different dataset rather than returning the same results under different field names.
content_typeOptional- Sorts results for the search action using allowed values latest for newer posts or most_popular for popular posts. Despite its name, content_type acts as a sorting dimension and does not filter by media format, such as images or videos.Allowed values:
latestmost_popularFacebook: Boundaries of Public Posts and Public Information — Facebook help documentation defines the visibility of public shares, Page posts, and comments on public posts. This clarifies the objects addressed by search; it does not endorse `content_type` ranking values or show that publicly visible information is authorized for automated collection. · Checked sinceOptional- Filters post publication dates for the search action from this start date, recommended in YYYY-MM-DD format. Combined with until, it forms the query date range; it does not filter ad run times or comment creation times.
untilOptional- Filters post publication dates for the search action up to this end date, recommended in YYYY-MM-DD format. Combined with since, it forms the query date range; it does not control ad expiration dates.
What do the Facebook profile parameters mean?
Get a Facebook Page or public profile from its url. It includes category, bio, likes, followers, verification badge and any contact details it shows. Phone and email are only what the page displays. They do not verify identity or permit their use.
urlRequired- Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions.Facebook Official: Public Visibility of Page Profiles, Posts, and Comments — Official Meta documentation discusses public details across Pages, profiles, posts, and comments; this definition of visibility does not guarantee that every URL can be read, that every field will be returned, or that this endpoint holds Meta access authorization. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
What do the Facebook user_posts parameters mean?
List posts from a Facebook Page or account at url, each with text, author, post time and like, comment and share counts. The results are not necessarily the complete timeline.
urlRequired- Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions.Facebook Official: Public Visibility of Page Profiles, Posts, and Comments — Official Meta documentation discusses public details across Pages, profiles, posts, and comments; this definition of visibility does not guarantee that every URL can be read, that every field will be returned, or that this endpoint holds Meta access authorization. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
What do the Facebook profiles_batch parameters mean?
Look up as many as 20 public Facebook Pages at once from usernames, each given as a Page username such as natgeo, a numeric Page ID, or a Page link. Each Page found is one row with category, bio, followers, verification badge and any contact details it shows, plus input, the entry you passed. Likes are returned only where the Page still shows them. Phone and email are only what the page displays. They do not verify identity or permit their use. Billed per Page; Pages not found are not charged and come back in missed.
usernamesRequired- Facebook Pages for
profiles_batch, as an array of up to 20 entries; a comma-separated string is not accepted. Each entry is a Page username such asnatgeo(a leading @ is dropped), a numeric Page ID, or a Page link such ashttps://www.facebook.com/natgeoor aprofile.php?id=link. List each Page once; a different capitalization is still the same Page. A request with an unrecognized entry, a duplicate or more than 20 entries is rejected with a 422 before any charge. Billed per Page; Pages not found are not charged and are listed inmissed.
What do the Facebook posts_batch parameters mean?
Look up as many as 20 public Facebook posts at once from urls, each given as a post link (/posts/, /permalink/, /reel/, /videos/, /watch/?v=, /photo or /share/, or an m.facebook.com or fb.watch link). Each post found is one row with text, author, post time, like, comment and share counts, reactions by type, media and any link it carries, plus input, the entry you passed. Page, group home and Ad Library links are not posts. Billed per post; posts not found (deleted, visible to friends only, wrong link) are not charged and come back in missed. List each post once; an invalid array is rejected with a 422 before any charge.
urlsRequired- Facebook post links for
posts_batch, as an array of up to 20 entries; a comma-separated string is not accepted. Each entry is the link to one post:/posts/,/permalink/,/reel/,/videos/,/watch/?v=,/photoand/share/links all work, as dom.facebook.comandfb.watchshort links. Page, group home and Ad Library links are not posts. List each post once. A request with an unrecognized entry, a duplicate or more than 20 entries is rejected with a 422 before any charge. Billed per post; posts not found (deleted, visible to friends only, wrong link) are not charged and are listed inmissed.
What do the Facebook post parameters mean?
Fetch one Facebook post from its url with text, author, post time and like, comment and share counts. Comments, detailed reactions and private content are not included. Use comments for the thread.
urlRequired- URL of a single Facebook post. If the post is not public (shared with only a small audience, visibility changed, deleted, or a group post visible only to group members), the call returns 200 with an empty result and
empty_reasonset topost_unavailable. It is not charged, and retrying the same URL does not change the result. Requesting the same URL again within 24 hours returns the same result and is also not charged.Facebook Official: Public Visibility of Page Profiles, Posts, and Comments — Official Meta documentation discusses public details across Pages, profiles, posts, and comments; this definition of visibility does not guarantee that every URL can be read, that every field will be returned, or that this endpoint holds Meta access authorization. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
What do the Facebook comments parameters mean?
Pull comments on a Facebook post from its url. Each comment has author, author ID, likes, reply count, post time and permalink. Reply rows reuse the parent group's ID, so rebuild threads with depth and reply_to_id. A complete tree is not guaranteed.
urlRequired- Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions.Facebook Official: Public Visibility of Page Profiles, Posts, and Comments — Official Meta documentation discusses public details across Pages, profiles, posts, and comments; this definition of visibility does not guarantee that every URL can be read, that every field will be returned, or that this endpoint holds Meta access authorization. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
What do the Facebook followers parameters mean?
Check follower, following, post and like counts for a Facebook account or Page by username. A precision flag marks approximate values. It returns totals only, not a list of individual followers.
usernameRequired- Specifies the Facebook account or Page identifier without an @ symbol for the followers action. This capability returns a total follower count object rather than an exported list of individual follower profiles or a user relationship graph.Facebook: Following a Page Is Distinct from Liking It — Official Facebook documentation explains that Follow is used to receive Page updates and notes differences for Pages transitioning from Like to Follow structures; this differentiates `follower_count` from `like_count`, but does not indicate that this platform can export follower lists. · Checked
channelOptional- This parameter is used for compatibility with the account identifier in the followers action. If username is supplied, it takes precedence, and public requests must still include the required username parameter. This parameter does not represent a chat channel ID.
What do the Facebook ads parameters mean?
Find ads in the Facebook Ad Library by keyword or Ad Library URL. Get ad copy, call to action, landing page, run dates, placements and advertiser. Narrow by country and status. Spend, impressions, targeting and conversions are not included.
keywordRequired- Specifies the search query for distinct platform endpoints. For search, it searches public posts; for ads, it accepts ad keywords or direct Ad Library and Page URLs; for marketplace, it accepts item search terms or complete Marketplace search URLs. Each action queries a different dataset rather than returning the same results under different field names.Meta Official: Ads and Page Search Objects in the Ad Library — Historical Meta announcements introduce searching ads by keyword or Page and highlight transparency data differences between general active ads and political or issue ads, along with official API requirements; this does not imply that all ads include spend, impressions, or complete history, as this endpoint does not offer those stable fields. · Checked
countryOptional- Specifies the country code for keyword queries in the ads action, such as US (defaults to US). Values are converted to uppercase when constructing request URLs. If keyword is provided as a complete URL, the parameters embedded in that URL take precedence and this country setting is not applied.
statusOptional- Filters ad page status with allowed values: all (default), active (currently running), or inactive (stopped). This represents ad delivery status rather than ad review status. When keyword is an Ad Library URL, its embedded active_status may differ from this parameter; keep the two consistent.
What do the Facebook group_posts parameters mean?
Read posts from a Facebook group by group url or identifier. Get text, author, post time and like, comment and share counts. sort picks top posts or recent activity. Recent activity follows activity, not creation time. Full coverage is not guaranteed.
urlRequired- Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions.Meta Official: Historical Private Content Remains Protected When Groups Change to Public — Official Meta documentation notes that when a private group switches to public, new content becomes publicly visible while content and member lists from its private phase remain restricted; therefore, a group currently public does not guarantee access to historical posts or complete member lists. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
sortOptional- Specifies post ordering for group_posts using top for top posts or recent for posts with recent activity, defaulting to chronological order if omitted. The recent option is based on activity rather than post creation time alone. Unsupported string values fall back to chronological order instead of returning an error.
What do the Facebook marketplace parameters mean?
Browse Facebook Marketplace listings for an item keyword in one city. Get price, currency, city, state, condition, image and post time. location takes a city path such as nyc, the default, not a street address. Availability is not confirmed.
keywordRequired- Specifies the search query for distinct platform endpoints. For search, it searches public posts; for ads, it accepts ad keywords or direct Ad Library and Page URLs; for marketplace, it accepts item search terms or complete Marketplace search URLs. Each action queries a different dataset rather than returning the same results under different field names.
locationOptional- Specifies the city path identifier for marketplace, such as nyc (defaults to nyc). It does not accept free-form street addresses. If keyword contains a complete Marketplace URL, that URL takes precedence and location is ignored.Meta Official: Marketplace Listings and Location Search Bounds — Historical Meta documentation defines Marketplace as a feature for local item listing and discovery, distinguishing item title, price, and location. This only describes those objects; it does not establish native UI filtering options or historical regional availability as current capabilities of this endpoint. · Checked
What do the Facebook reviews parameters mean?
Collect recommendations and reviews from a Facebook Page url, with text, recommend or not, rating where given, author and post time. Facebook uses recommend or not in place of stars, so a missing rating does not void a recommendation.
urlRequired- Specifies the target URL corresponding to the requested action. Use public Page URLs for profile and user_posts, post URLs for post and comments, group page URLs or group identifiers for group_posts, and business page URLs for reviews (which appends /reviews). Arbitrary Facebook URLs cannot be interchanged across actions.Facebook Official Documentation: Page Recommendations and Reviews — Official documentation explains that recommendations are displayed in the Reviews section of a Page and notes that removing violating reviews can alter the Page rating. A Page's overall rating is distinct from an individual recommendation entry, so `is_recommended` cannot be automatically converted into a star rating. · CheckedMeta Official Documentation: Automated Data Collection Requires Prior Permission — Meta explicitly states that automated collection of Facebook data without prior permission violates its terms, even for publicly visible data. Citing authoritative sources does not constitute proof of authorization for platform collection or reuse. · Checked
What do the Facebook advertiser_search parameters mean?
Find the Facebook Pages that advertise under a brand or advertiser name in the Ad Library, up to 15 per call. Each Page has its ID, name, username, category, verification flag, Page likes, and the linked Instagram account with its follower count. A search for nike puts Nike (Page ID 15087023444) first. There is no paging.
Full API reference: parameters, code samples, response example and healthkeywordRequired- A brand or advertiser name, such as
nike. Returns the Pages that advertise under that name in the Ad Library; eachidis a Page ID.
What do the Facebook ad_detail parameters mean?
Open one ad in the Facebook Ad Library from its link or Library ID. Get whether it is still running, start and end dates, ad text, headline, link and call to action, display format, the placements it ran on, images or video, every creative variant, and the advertiser's Page ID, name, likes and categories. Spend, reach and targeting are not part of the result.
Full API reference: parameters, code samples, response example and healthurlRequired- One ad: an Ad Library link (https://www.facebook.com/ads/library/?id=<Library ID>) or the numeric Library ID itself (the
idof anadsrow).
What do the Facebook events_search parameters mean?
Search public Facebook events by keyword, such as music festival. Each event has its name, the date as Facebook shows it, venue when listed, going and interested counts when the event page shows them, and image. About 10 per page; page on with next_page_token. Adjacent pages can repeat an event, so de-duplicate by id.
keywordRequired- Words to search public events for, such as
music festivaloryoga Singapore. page_tokenOptional- Page token for
events_searchandpage_events. Leave it out for the first page, then pass back the previous response'snext_page_tokenexactly as received; the last page has none.
What do the Facebook marketplace_item parameters mean?
Read one Facebook Marketplace listing from its link or numeric ID. Get title, description, price, currency, condition, item attributes, location with coordinates, listing time, sold and pending flags, shipping and delivery options, photos, and the seller's name. Original price appears only when the seller has cut the price; seller rating and rating count appear only when the seller has ratings.
Full API reference: parameters, code samples, response example and healthurlRequired- One listing: a Marketplace item link (https://www.facebook.com/marketplace/item/<ID>/) or the numeric item ID (the
idof amarketplacerow).
What do the Facebook page_events parameters mean?
List the events a public Facebook Page hosts, upcoming and past, from the Page link. Each event has its name, start time, venue, city, host, and online, past and canceled flags. About 8 per page and the count varies; page on with next_page_token. A Page that hosts no events returns an empty list.
urlRequired- A public Page link, such as https://www.facebook.com/brickyardoldtown; /p/<name>-<ID> links work too.
page_tokenOptional- Page token for
events_searchandpage_events. Leave it out for the first page, then pass back the previous response'snext_page_tokenexactly as received; the last page has none.
What do the Facebook event_detail parameters mean?
Read one public Facebook event from its link or numeric event ID. Get the name, description, start and end time in UTC, the date and length as the page shows them, the venue with address, city and coordinates, online, past and canceled flags, hosts, how many people responded, the ticket link and price when listed, and the cover image. An event that was deleted, is not public or has a wrong ID returns an empty result and is not charged.
urlRequired- One event: an event link (https://www.facebook.com/events/<ID>/, the
urlof anevents_searchorpage_eventsrow) or the numeric event ID. An event that was deleted, is not public or has a wrong ID returns 200 with an empty result and is not charged.
What do the Facebook page_search parameters mean?
Search public Facebook Pages by keyword, in the order Facebook's Page search returns them. Each Page has its ID, link, name, username, category, verification badge, avatar, the line Facebook shows under the name, and the follower count it shows. 10 Pages a page; follow next_page_token for more, each page billed as one call. Two consecutive pages may share a Page or two, so merge them on id. For an exact follower count, look the Page up with profile.
keywordRequired- Words to search public Pages for, 1 to 100 characters, such as coffee roasters.
page_tokenOptional- Page token. Leave it out for the first page, then pass back the previous response's
next_page_tokenexactly as received, withkeywordunchanged. Each page holds 10 Pages and counts as one call; tokens last 24 hours.
What do the Facebook post_transcript parameters mean?
Turn the speech in a public Facebook video, Reel or video post into text, from its link. You get the transcript and the video length in seconds. A video where nobody speaks comes back without text.
urlRequired- A public video, Reel or video post link, such as https://www.facebook.com/reel/<ID>/.
How to use the Facebook API
- 01Choose a platform action from the public catalog.
- 02Send the platform, action, and required parameters to POST /api/v1/social.
- 03Read the result from the response. For an asynchronous action, poll the returned job ID.
- 04Store the response fields that your application needs.
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"facebook","action":"search","params":{"keyword":"<keyword>"}}'
Facebook guides
Worked examples and methods built on these actions. Check the current actions, parameters and fields on this page first; an article's examples and limits do not replace the live catalog.
Multiplatform Reputation Monitoring Blueprint: Define Scope Before Evaluating Negative Shifts
Design a traceable reputation monitoring workflow starting with target lists, comment identities, and incremental cursors; use offline samples to demonstrate deduplication and ingestion gaps while preserving manual review.
Read the articleUnified Data API Getting Started: From Capability Catalog to First Available Result
Access multi-platform data using platform, action, and params: read the capability catalog, complete minimal requests, handle asynchronous tasks, partial results, and billing, and establish traceable data records.
Read the articleFacebook API questions
What can I retrieve with the Facebook API?
Set platform to facebook. The current catalog lists search, details, posts by user, profiles in bulk, posts in bulk, and more. These action names identify different Facebook objects or views; they are not interchangeable search modes.
Which input starts the Facebook search request?
Specifies the search query for distinct platform endpoints. For search, it searches public posts; for ads, it accepts ad keywords or direct Ad Library and Page URLs; for marketplace, it accepts item search terms or complete Marketplace search URLs. Each action queries a different dataset rather than returning the same results under different field names. Send it as keyword inside params.
Which fields can Facebook search return?
Its declared schema includes text, author_name, author_username, and author_id. A declared field can still be absent from an individual record, and every other action has its own field list.
Does every Facebook action return immediately?
Actions labeled asynchronous return a job ID you poll. profiles_batch and posts_batch run synchronously only: they read everything they return (every target of a batch, or every SKU of a product) within the same call, and a request with "mode": "async" gets a 422 before anything is charged. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery and async delivery.