# Facebook API

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.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "facebook", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/facebook-api](https://everyinfra.com/en/facebook-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
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.
- Sync delivery · Price: $16 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `keyword` (required): 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_type` (optional): 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. One of: latest, most_popular.
  - `since` (optional): 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.
  - `until` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/search](https://everyinfra.com/en/facebook-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/search.md)

### profile — Details
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.
- Async delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): 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.
- Returns fields: id, name, url, bio, category, like_count, follower_count, is_verified, phone, email, website, rating, rating_scale, review_count, avatar_url, platform
- Capability page: [https://everyinfra.com/en/facebook-api/profile](https://everyinfra.com/en/facebook-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/profile.md)

### user_posts — Posts by user
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.
- Async delivery · Price: $2.78 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/user_posts](https://everyinfra.com/en/facebook-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/user_posts.md)

### profiles_batch — Profiles in bulk
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`.
- Sync delivery · Price: $0.56 per 1,000 requests (each element in usernames counts as one call)
- Parameters:
  - `usernames` (required): 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 as `natgeo` (a leading @ is dropped), a numeric Page ID, or a Page link such as `https://www.facebook.com/natgeo` or a `profile.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 in `missed`.
- Returns fields: id, name, url, bio, category, like_count, follower_count, is_verified, phone, email, website, rating, rating_scale, review_count, avatar_url, platform, input
- Capability page: [https://everyinfra.com/en/facebook-api/profiles_batch](https://everyinfra.com/en/facebook-api/profiles_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/profiles_batch.md)

### posts_batch — Posts in bulk
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.
- Sync delivery · Price: $1.39 per 1,000 requests (each element in urls counts as one call)
- Parameters:
  - `urls` (required): 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=`, `/photo` and `/share/` links all work, as do `m.facebook.com` and `fb.watch` short 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 in `missed`.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/posts_batch](https://everyinfra.com/en/facebook-api/posts_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/posts_batch.md)

### post — Post details
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.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `url` (required): 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_reason` set to `post_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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/post](https://everyinfra.com/en/facebook-api/post?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/post.md)

### comments — Comments
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.
- Async delivery · Price: $2.78 per 1,000 requests (every 10 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, text, author_name, author_username, depth, reply_to_id, comment_url, author_id, author_url, like_count, reply_count, posted_at, platform
- Capability page: [https://everyinfra.com/en/facebook-api/comments](https://everyinfra.com/en/facebook-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/comments.md)

### followers — Followers
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.
- Sync delivery · Price: $1.39 per 1,000 requests
- Parameters:
  - `username` (required): 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.
  - `channel` (optional): 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.
- Returns fields: id, username, url, follower_count, following_count, post_count, like_count, connection_count, precision, platform
- Capability page: [https://everyinfra.com/en/facebook-api/followers](https://everyinfra.com/en/facebook-api/followers?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/followers.md)

### ads — Ads
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.
- Sync delivery · Price: $11.79 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `keyword` (required): 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.
  - `country` (optional): 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.
  - `status` (optional): 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/ads](https://everyinfra.com/en/facebook-api/ads?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/ads.md)

### group_posts — Group posts
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
  - `sort` (optional): 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.
- Returns fields: id, url, text, posted_at, like_count, comment_count, share_count, author_id, author_name, author_url, group_url, platform
- Capability page: [https://everyinfra.com/en/facebook-api/group_posts](https://everyinfra.com/en/facebook-api/group_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/group_posts.md)

### marketplace — Marketplace
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `keyword` (required): 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.
  - `location` (optional): 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.
- Returns fields: id, url, name, price, currency, city, state, condition, image_url, posted_at, platform
- Capability page: [https://everyinfra.com/en/facebook-api/marketplace](https://everyinfra.com/en/facebook-api/marketplace?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/marketplace.md)

### reviews — Reviews
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.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `url` (required): 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.
- Returns fields: id, url, text, is_recommended, rating, rating_scale, posted_at, like_count, comment_count, author_id, author_name, author_url, platform
- Capability page: [https://everyinfra.com/en/facebook-api/reviews](https://everyinfra.com/en/facebook-api/reviews?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/reviews.md)

### advertiser_search — Advertiser 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.
- Sync delivery · Price: $0.88 per 1,000 requests
- Each call returns one page of up to 15 rows. There is no next page. Each page is billed once.
- Parameters:
  - `keyword` (required): A brand or advertiser name, such as `nike`. Returns the Pages that advertise under that name in the Ad Library; each `id` is a Page ID.
- Returns fields: id, name, username, url, category, avatar_url, page_like_count, is_verified, instagram_username, instagram_follower_count, instagram_verified, country, platform
- Capability page: [https://everyinfra.com/en/facebook-api/advertiser_search](https://everyinfra.com/en/facebook-api/advertiser_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/advertiser_search.md)

### ad_detail — Ad 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.
- Sync delivery · Price: $0.96 per 1,000 requests
- Parameters:
  - `url` (required): One ad: an Ad Library link (https://www.facebook.com/ads/library/?id=<Library ID>) or the numeric Library ID itself (the `id` of an `ads` row).
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/ad_detail](https://everyinfra.com/en/facebook-api/ad_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/ad_detail.md)

### events_search — Event search
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`.
- Sync delivery · Price: $0.96 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): Words to search public events for, such as `music festival` or `yoga Singapore`.
  - `page_token` (optional): Page token for `events_search` and `page_events`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received; the last page has none.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/events_search](https://everyinfra.com/en/facebook-api/events_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/events_search.md)

### marketplace_item — Marketplace 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.
- Sync delivery · Price: $0.96 per 1,000 requests
- Parameters:
  - `url` (required): One listing: a Marketplace item link (https://www.facebook.com/marketplace/item/<ID>/) or the numeric item ID (the `id` of a `marketplace` row).
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/marketplace_item](https://everyinfra.com/en/facebook-api/marketplace_item?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/marketplace_item.md)

### page_events — Page 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 `next_page_token`. A Page that hosts no events returns an empty list.
- Sync delivery · Price: $0.96 per 1,000 requests
- 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.
- Parameters:
  - `url` (required): A public Page link, such as https://www.facebook.com/brickyardoldtown; /p/<name>-<ID> links work too.
  - `page_token` (optional): Page token for `events_search` and `page_events`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received; the last page has none.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/page_events](https://everyinfra.com/en/facebook-api/page_events?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/page_events.md)

### event_detail — Event details
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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `url` (required): One event: an event link (https://www.facebook.com/events/<ID>/, the `url` of an `events_search` or `page_events` row) 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.
- Returns fields: 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
- Capability page: [https://everyinfra.com/en/facebook-api/event_detail](https://everyinfra.com/en/facebook-api/event_detail?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/event_detail.md)

### page_search — Page search
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.
- Sync delivery · Price: $1.6 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): Words to search public Pages for, 1 to 100 characters, such as coffee roasters.
  - `page_token` (optional): Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with `keyword` unchanged. Each page holds 10 Pages and counts as one call; tokens last 24 hours.
- Returns fields: id, url, name, username, category, is_verified, avatar_url, snippet_text, follower_count, follower_count_label, platform
- Capability page: [https://everyinfra.com/en/facebook-api/page_search](https://everyinfra.com/en/facebook-api/page_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/page_search.md)

### post_transcript — Video 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 `text`.
- Sync delivery · Price: $0.96 per 1,000 requests
- Parameters:
  - `url` (required): A public video, Reel or video post link, such as https://www.facebook.com/reel/<ID>/.
- Returns fields: id, url, text, duration_seconds, duration_sec, platform
- Capability page: [https://everyinfra.com/en/facebook-api/post_transcript](https://everyinfra.com/en/facebook-api/post_transcript?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/facebook-api/post_transcript.md)

## Facebook 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.

### Does Facebook have an official API?

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.

Official sources (checked 2026-10-16): [Meta: Page Public Content Access](https://developers.facebook.com/docs/features-reference/page-public-content-access/) · [Meta Graph API](https://developers.facebook.com/docs/graph-api/)

### Do I need a Facebook developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a Facebook developer app, apply for Facebook API access or sign in with a Facebook account, and the actions return public Facebook data only.

### How much does the Facebook API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### 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.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=facebook
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
