Facebook Scraper: Pages, Posts, Groups, Comments & Marketplace avatar

Facebook Scraper: Pages, Posts, Groups, Comments & Marketplace

Pricing

from $1.80 / 1,000 results

Go to Apify Store
Facebook Scraper: Pages, Posts, Groups, Comments & Marketplace

Facebook Scraper: Pages, Posts, Groups, Comments & Marketplace

Scrape Facebook search (people, Pages, groups, events, places, posts, videos, hashtags), profiles and Pages, posts, photos, group feeds and members, comments and replies, videos, Marketplace listings and sellers, events. Real-time, clean JSON. Pay only for results.

Pricing

from $1.80 / 1,000 results

Rating

0.0

(0)

Developer

Scrapy Social

Scrapy Social

Maintained by Community

Actor stats

0

Bookmarked

19

Total users

8

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

People, Pages, groups, posts, comments, videos, Marketplace and events from Facebook as one consistent JSON shape, with automatic pagination and batch input.

37 endpoints · real-time data · no Facebook account or cookies needed · automatic pagination · batch input · pay only for results ($3.50 / 1,000 results, down to $1.80 on higher Apify plans).

What can this scraper do?

  • Search: Search people, Search pages, Search groups, Search events, Search places, Search posts, Search videos, Hashtag posts
  • User: Profile / Page info, Profile about, Profile posts, Followers / following / friends, Profile photos, Search a profile’s posts
  • Group: Group info, Group about, Group posts, Group members, Group photos, Group videos, Group events, Search a group’s posts
  • Post: Post detail, Post comments, Comment replies
  • Video: Video / reel detail
  • Marketplace: Marketplace search, Marketplace listing, Marketplace listing photos, Marketplace seller, Marketplace seller listings
  • Event: Event detail
  • Utility: Search suggestions, Search filter ids, Search filters, Resolve Facebook URL, Marketplace locations

Use cases

  • Brand monitoring: keyword and hashtag post search, Page posts and comment threads.
  • Community research: group info, posts, members, photos, videos and events.
  • Lead generation: people, Page, place and group search with location filters.
  • E-commerce intelligence: Marketplace search by location, listing detail, photos and seller inventory.

Why this scraper

  • Clean, consistent JSON. The same fields (id, author, stats, createdAt …) across endpoints, so you write your parser once.
  • Real-time. Every run fetches live data; nothing is served from a stale database.
  • No login, no blocking headaches. Sessions, proxies, signatures and retries are handled for you.
  • Pagination built in. Set Max results per query; the actor follows cursors for you and de-duplicates.
  • Batch mode. Many usernames / posts / keywords in one run.
  • Fair billing. Not-found lookups and failed calls are never charged.

How to use it

  1. Pick What to scrape (for example Search posts).
  2. Fill the fields that endpoint uses (each field lists the endpoints that use it). Leave the others empty.
  3. Set Max results per query, then click Start.
  4. Download the results as JSON, CSV, Excel or HTML, or read them through the Apify API.

Input examples

Search posts by keyword

{
"endpoint": "search-posts",
"keyword": "coffee",
"maxItems": 100
}

A Page's latest posts

{
"endpoint": "user-posts",
"username": "NASA",
"maxItems": 100
}

Posts in a public group

{
"endpoint": "group-posts",
"groupId": "2255223818160754",
"maxItems": 100
}

Marketplace listings near Jakarta

{
"endpoint": "marketplace-search",
"keyword": "iphone",
"latitude": "-6.2088",
"longitude": "106.8456",
"maxItems": 100
}

Several Pages / profiles in one run (batch)

{
"endpoint": "user-info",
"batch": [
{
"username": "NASA"
},
{
"username": "zuck"
}
],
"maxItems": 50
}

Output

Each result is one dataset row. List endpoints produce one row per item; lookups produce one row. Every row has a _meta object (endpoint, query, page, scrapedAt). Trend lists and similar responses also carry the list's own fields under _context. Example row from Search posts:

{
"id": "1830085652453993",
"url": "https://www.facebook.com/reel/2267289317184621/",
"text": "‼️ COFFEE SHOP BUKA SAMPE JAM 12 MALAM!\nDan matcha nya salah satu tempat matcha favorit tim Enjoy Bekasi nih. Karena tempat nya nyaman dan artsy, dan ini buk...",
"createdAt": 1794485415,
"author": {
"id": "100063577273388",
"name": "Enjoy Bekasi",
"url": "https://www.facebook.com/enjoybekasi",
"type": "User"
},
"reactionCount": 131,
"commentCount": 0,
"shareCount": 2,
"media": [
{
"id": "2267289317184621",
"type": "Video",
"url": "https://www.facebook.com/reel/2267289317184621/",
"image": "https://scontent.fcgk18-2.fna.fbcdn.net/v/t51.82787-10/902591661_1125261686804747_47433295?…"
},
{
"id": "2267289317184621",
"type": "Video",
"url": "https://www.facebook.com/reel/2267289317184621/",
"image": "https://scontent.fcgk18-2.fna.fbcdn.net/v/t51.82787-10/902591661_1125261686804747_47433295?…"
}
],
"feedbackId": "ZmVlZGJhY2s6cGZiaWQwS3J4SE4xQVFmazIxSmJxMjJqOWR2QXFXSEplSGRxcEtCUnE5Ym5CcGZiU3A2ZFZXVng4WU5ENG9lWjRoZHdRRmw=",
"storyId": "UzpfSTEwMDA2MzU3NzI3MzM4ODoxODMwMDg1NjUyNDUzOTkzOjE4MzAwODU2NTI0NTM5OTM=",
"_meta": {
"endpoint": "search-posts",
"query": {
"keyword": "coffee"
},
"page": 1,
"scrapedAt": "2026-11-11T08:00:00.000Z"
}
}

A run summary (results, pages, not found, failed, stop reason) is saved to the key-value store as OUTPUT.

Endpoints

GroupEndpoint (endpoint value)What you getPaginated
SearchSearch people (search-people)Find Facebook profiles by name, optionally filtered by city, school or employer.yes
SearchSearch pages (search-pages)Find Facebook Pages (businesses, brands, public figures) by keyword, city and category.yes
SearchSearch groups (search-groups)Find Facebook groups by keyword, optionally only public groups or groups in a city.yes
SearchSearch events (search-events)Find public Facebook events by keyword, city, date and category.yes
SearchSearch places (search-places)Find places and local businesses by keyword, city, price level and opening status.yes
SearchSearch posts (search-posts)Find public posts by keyword, optionally newest first or from a city.yes
SearchSearch videos (search-videos)Find Facebook videos and reels by keyword.yes
SearchHashtag posts (search-hashtag)Public posts for a hashtag, like facebook.com/hashtag/{tag}.yes
UserProfile / Page info (user-info)Name, pictures, cover, follower text, verified flag, category and intro of a profile or Page.
UserProfile about (user-about)About section of a profile or Page: intro, work, education, contact info, places, personal details.
UserProfile posts (user-posts)Posts on a profile or Page timeline, newest first.yes
UserFollowers / following / friends (user-connections)People and Pages that follow a profile, that it follows, or its friends.yes
UserProfile photos (user-photos)Photos uploaded by or tagged with a profile / Page.yes
UserSearch a profile’s posts (user-search-posts)Search inside one profile or Page’s posts.yes
GroupGroup info (group-info)Name, URL, cover photo, privacy and member count of a group.
GroupGroup about (group-about)Description, privacy, visibility, admins and exact member count of a group.
GroupGroup posts (group-posts)Posts in a public group (or a group the session account joined).yes
GroupGroup members (group-members)Newest members of a group with their join time.yes
GroupGroup photos (group-photos)Photos posted in a group.yes
GroupGroup videos (group-videos)Videos posted in a group.yes
GroupGroup events (group-events)Upcoming and recent past events of a group.
GroupSearch a group’s posts (group-search-posts)Search inside one group’s posts.yes
PostPost detail (post-detail)One post with text, author, time, counts and media.
PostPost comments (post-comments)Top-level comments of a post (relevant, newest or all).yes
PostComment replies (post-comment-replies)Replies to one comment.yes
VideoVideo / reel detail (video-detail)Caption, owner, duration, time, counts and playable DASH tracks of a video or reel.
MarketplaceMarketplace search (marketplace-search)Search Marketplace listings near a location with price, condition and sort filters.yes
MarketplaceMarketplace listing (marketplace-listing)Full listing: title, description, price, condition, location, seller, delivery and status.
MarketplaceMarketplace listing photos (marketplace-listing-photos)All photos of a Marketplace listing.
MarketplaceMarketplace seller (marketplace-seller)Seller profile: name, location, listing count and rating visibility.
MarketplaceMarketplace seller listings (marketplace-seller-listings)Listings of one seller (in stock or sold).yes
EventEvent detail (event-detail)Public event: name, description, time, place, hosts and attendance.
UtilitySearch suggestions (search-suggestions)Autocomplete suggestions for a partial search text.
UtilitySearch filter ids (search-filter-values)Find the numeric id of a city, school or employer for search filters.
UtilitySearch filters (search-filters)Filters Facebook offers for a search tab, with their ready-made values.
UtilityResolve Facebook URL (utility-resolve-url)Turn any www.facebook.com URL into its type and ids.
UtilityMarketplace locations (marketplace-locations)Find a city / area and its coordinates for Marketplace search.

Endpoint reference

Search people · search-people

Searches the People tab of Facebook search. Each result has the profile id, name, URL, picture, verified flag and the short context lines Facebook shows (city, work, mutual friends). Filters take numeric ids from the "Search filter ids" endpoint (type=location, school, employer). Results depend on the session account (friends of friends rank higher).

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
locationIdOnly results in this city / area. Numeric Facebook location id, e.g. 102173726491792 (Jakarta). Find ids with the "Search filter ids" endpoint?type=location.
schoolIdOnly people who studied at this school. Numeric id from the "Search filter ids" endpoint?type=school.
employerIdOnly people who work at this employer. Numeric id from the "Search filter ids" endpoint?type=employer.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search pages · search-pages

Searches the Pages tab. Results include id, name, URL, picture, verified flag and the category / location / follower line Facebook shows. category values: local_business, company (company, organization or institution), brand (brand or product), artist (artist, band or public figure), entertainment, community (cause or community).

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
locationIdOnly results in this city / area. Numeric Facebook location id, e.g. 102173726491792 (Jakarta). Find ids with the "Search filter ids" endpoint?type=location.
categoryPage category. Allowed: local_business, company, brand, artist, entertainment, community. Omit = all categories.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search groups · search-groups

Searches the Groups tab. Results include group id, name, URL, picture and the privacy / member count / posts-per-day line Facebook shows.

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
locationIdOnly results in this city / area. Numeric Facebook location id, e.g. 102173726491792 (Jakarta). Find ids with the "Search filter ids" endpoint?type=location.
publicOnlyOnly public groups. Omit = public and private groups.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search events · search-events

Searches the Events tab. Results include event id, name, URL, cover picture and the date / place / interested line Facebook shows. date is one day (2026-12-31) or a range (2026-12-01~2026-12-31).

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
locationIdOnly results in this city / area. Numeric Facebook location id, e.g. 102173726491792 (Jakarta). Find ids with the "Search filter ids" endpoint?type=location.
dateEvent date YYYY-MM-DD or range YYYY-MM-DD~YYYY-MM-DD. Omit = any date.
categoryEvent category. Allowed: art, causes, comedy, crafts, dance, drinks, film, fitness, food, games, gardening, health, home, literature, music, networking, other, party, religion, shopping, sports, theater, wellness.…
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search places · search-places

Searches the Places tab (restaurants, shops, venues). Results include the place Page id, name, URL, picture and the category / rating / address line Facebook shows.

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
locationIdOnly results in this city / area. Numeric Facebook location id, e.g. 102173726491792 (Jakarta). Find ids with the "Search filter ids" endpoint?type=location.
openNowOnly places open right now.
deliveryOnly places that offer delivery.
takeoutOnly places that offer takeout.
pricePrice level 1 ($) to 4 ($$$$). Omit = any price.Allowed: 1, 2, 3, 4.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search posts · search-posts

Searches the Posts tab. Each post has its id, URL, text, time, author, reaction / comment / share counts, photos and the feedbackId used by the "Post comments" endpoint.

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
sortOrder. Allowed: relevance (Facebook ranking), recent (recent posts first). Omit = relevance.
locationIdOnly posts tagged in this city / area. Numeric location id from the "Search filter ids" endpoint?type=location.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Search videos · search-videos

Searches the Videos tab. Each result is the video post: videoId, duration, thumbnail, URL, caption, time, author, reaction / comment / share counts and feedbackId (for comments). Use videoId with the "Video / reel detail" endpoint.

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.
Hashtag posts · search-hashtag

Returns the posts Facebook shows on a hashtag page. Pass the tag with or without #.

FieldRequiredDescription
hashtagyesHashtag with or without #, e.g. travel or #travel.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.

User

Profile / Page info · user-info

Header of a Facebook profile or Page: id, name, URL, profile picture, cover photo, verified badge, gender, the follower / friend line (as Facebook displays it, e.g. "121M followers"), the intro items (category, work, city, links) and the bio.

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
Profile about · user-about

One About sub-tab as sections of fields (type, text, optional subtitle and url). Only fields the profile shares publicly (or with the session account) are returned; a section with nothing shared answers 404. section values: intro, personal (birthday, languages, relationship), work, education, contact (phone, email, website, address, social links), places.

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
sectionAbout sub-tab. Allowed: intro, personal, work, education, contact, places. Omit = intro.
collectionTokenAdvanced: About collection token — normally resolved from the user and section.
sectionTokenAdvanced: About section token — normally resolved together with collectionToken.
rawSectionTokenAdvanced: raw About section token — normally resolved together with collectionToken.
Profile posts · user-posts

Timeline posts with text, time, author, reaction / comment / share counts, photos and feedbackId (for the "Post comments" endpoint). Pinned posts are skipped.

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Followers / following / friends · user-connections

Lists one connection tab of a profile or Page. type values: followers, following, friends (only when the friend list is visible to the session account).

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
typeWhich list. Allowed: followers, following, friends. Omit = followers.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
collectionTokenAdvanced: collection token — normally resolved from the user and type.
Profile photos · user-photos

Photo grid of a profile or Page with photo id, page URL and image URL. type values: uploaded (photos by), tagged (photos of).

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
typeWhich photos. Allowed: uploaded, tagged. Omit = uploaded.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
collectionTokenAdvanced: collection token — normally resolved from the user and type.
Search a profile’s posts · user-search-posts

Runs the in-profile search box ("Search" on a profile). Returns matching posts of that profile with the same fields as the "Profile posts" endpoint.

FieldRequiredDescription
userIdNumeric Facebook profile or Page id, e.g. 4 (Mark Zuckerberg) or 100044561550831 (NASA). Send this or username.
usernameProfile / Page username (the part after facebook.com/), e.g. zuck or NASA. Resolved to userId automatically. Send this or userId.
keywordyesSearch text, as typed in the Facebook search box.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.

Group

Group info · group-info

Header of a Facebook group: id, name, URL, cover photo, privacy ("Public group" / "Private group" in the account language) and the member count line.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
Group about · group-about

About tab of a group: description, privacy and visibility (label + explanation), admin names and the member count.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
Group posts · group-posts

Group discussion feed with text, time, author, reaction / comment / share counts, photos and feedbackId. sort values: top (Facebook default), new (new posts), activity (recent activity).

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
sortOrder. Allowed: top, new, activity. Omit = top.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Group members · group-members

Members list (newest first) with profile id, name, URL, picture and the "Joined …" line. Visible for public groups and groups the session account belongs to.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Group photos · group-photos

Media tab photos with photo id, image URL and uploader id.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Group videos · group-videos

Media tab videos with video id, URL, thumbnail and uploader. Groups without a Videos tab answer 404.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Group events · group-events

Events created in the group, split into upcoming and past.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
Search a group’s posts · group-search-posts

Runs the group search box. Returns matching posts of that group with the same fields as the "Group posts" endpoint.

FieldRequiredDescription
groupIdNumeric Facebook group id, e.g. 2255223818160754. Send this or groupName.
groupNameGroup vanity name (the part after facebook.com/groups/), e.g. nycfoodlovers. Resolved to groupId automatically. Send this or groupId.
keywordyesSearch text, as typed in the Facebook search box.
cursorOpaque pagination token (base64url). Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same). Do not edit the token.

Post

Post detail · post-detail

Full post from its URL: id, URL, text, time, author, reaction / comment / share counts, photos / video and the feedbackId for comments.

FieldRequiredDescription
postUrlFull post URL on www.facebook.com, e.g. https://www.facebook.com/zuck/posts/pfbid0… or https://www.facebook.com/groups/{group}/posts/{id}/. Send this or storyId.
storyIdAdvanced: Facebook story id (base64, storyId of a post) — normally resolved from postUrl.
Post comments · post-comments

Comments with id, text, time, author, reaction count text, reply count and the feedbackId + repliesToken used by the "Comment replies" endpoint. Also works for videos and reels (use their feedbackId). sort values: relevant (Facebook default), newest, all (all comments, unfiltered).

FieldRequiredDescription
feedbackIdFeedback id of a post (feedbackId from posts in search / timeline / group / post detail). Send this or postUrl.
postUrlFull post URL on www.facebook.com, e.g. https://www.facebook.com/zuck/posts/pfbid0… or https://www.facebook.com/groups/{group}/posts/{id}/. Send this or storyId.
sortOrder. Allowed: relevant, newest, all. Omit = relevant.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
storyIdAdvanced: Facebook story id (base64, storyId of a post) — normally resolved from postUrl.
Comment replies · post-comment-replies

Replies with the same fields as comments. Take feedbackId and repliesToken from an item of the "Post comments" endpoint.

FieldRequiredDescription
feedbackIdyesComment feedbackId from the "Post comments" endpoint.
repliesTokenyesComment repliesToken from the "Post comments" endpoint (short-lived; take a fresh one).
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).

Video

Video / reel detail · video-detail

Video or reel by numeric id (the number in /reel/{id}, /watch/?v={id} or /videos/{id}): caption, owner, duration, post time, feedbackId (for comments) and the DASH representations (separate video and audio tracks with bitrate and resolution).

FieldRequiredDescription
videoIdyesNumeric video / reel id, e.g. 1685483219914124.

Marketplace

Marketplace listings for a keyword around a point (latitude / longitude, e.g. from the "Marketplace locations" endpoint). Each listing has id, title, price (number and display text), main photo, city, time, seller and URL. Prices are in the local currency of the area (whole units, e.g. 5000000 = Rp5.000.000). Marketplace pages are uneven: a page can hold few or even no listings (ads are removed) while hasMore is still true — keep following cursor.

FieldRequiredDescription
keywordyesSearch text, as typed in the Facebook search box.
latitudeyesSearch center latitude, e.g. -6.2088 (Jakarta). Get it from the "Marketplace locations" endpoint.
longitudeyesSearch center longitude, e.g. 106.8456 (Jakarta).
radiusKmSearch radius in km (1–500). Omit = 65.
minPriceMinimum price in whole currency units, e.g. 100000.
maxPriceMaximum price in whole currency units, e.g. 5000000.
conditionItem condition. Allowed: new, used_like_new, used_good, used_fair. Omit = any.
sortOrder. Allowed: best_match, price_low, price_high, newest, nearest. Omit = best_match.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).
Marketplace listing · marketplace-listing

One Marketplace item by id. Photos are in the "Marketplace listing photos" endpoint.

FieldRequiredDescription
listingIdyesMarketplace listing id (the number in facebook.com/marketplace/item/{id}), e.g. 2048296092514804.
Marketplace listing photos · marketplace-listing-photos

Full-size photo URLs (with size) of one listing.

FieldRequiredDescription
listingIdyesMarketplace listing id (the number in facebook.com/marketplace/item/{id}), e.g. 2048296092514804.
Marketplace seller · marketplace-seller

Marketplace seller card: id, name, short name, number of active listings, the context lines Facebook shows (e.g. city, joined year) and whether ratings are public.

FieldRequiredDescription
sellerIdyesSeller user id (seller.id of a listing), e.g. 61561287476399.
Marketplace seller listings · marketplace-seller-listings

All listings of a seller, newest first, with the same fields as search results. availability: in_stock (default) or out_of_stock (sold).

FieldRequiredDescription
sellerIdyesSeller user id (seller.id of a listing), e.g. 61561287476399.
availabilityAllowed: in_stock, out_of_stock. Omit = in_stock.
cursorPagination token. Omit for the first page; pass cursor from the previous response to get the next page (keep the other params the same).

Event

Event detail · event-detail

One event by id (the number in facebook.com/events/{id}): name, description, start / end timestamps, time zone, place, online flag and URL, hosts, parent group and suggested related events.

FieldRequiredDescription
eventIdyesNumeric event id, e.g. 520470144434103.

Utility

Search suggestions · search-suggestions

What Facebook suggests while typing in the search box (keywords and entities), with the suggestion type.

FieldRequiredDescription
keywordyesPartial search text, e.g. jaka.
Search filter ids · search-filter-values

Typeahead behind the search filter pills. type=location returns city / area ids for locationId (all search endpoints), school → schoolId, employer → employerId (people search).

FieldRequiredDescription
typeyesAllowed: location, school, employer.
keywordyesName to look up, e.g. Jakarta, Harvard, Google.
Search filters · search-filters

Lists the filter pills of one search tab for a keyword (e.g. city, school, category, date, price) with the suggested values and the raw filter JSON. Use the ids in the matching search endpoint params.

FieldRequiredDescription
tabyesSearch tab. Allowed: people, pages, groups, events, places, posts, videos.
keywordyesSearch text, as typed in the Facebook search box.
Resolve Facebook URL · utility-resolve-url

Uses the Facebook web router to identify a URL: profile / Page (→ userId), group (→ groupId), post (→ storyId, actorId), event (→ eventId), video, Marketplace item and more. route is Facebook’s route name; entityType its entity kind.

FieldRequiredDescription
urlyesFull URL on www.facebook.com (or a path such as /zuck), e.g. https://www.facebook.com/NASA.
Marketplace locations · marketplace-locations

Location typeahead used by Marketplace. Returns name, address, Facebook place id and latitude / longitude to pass to the "Marketplace search" endpoint.

FieldRequiredDescription
keywordyesCity / area name, e.g. Surabaya, London.

Pagination, limits and batch

  • Max results per query (maxItems) and Max pages per query (maxPages) bound each query; the actor stops at whichever comes first or when the source has no more pages.
  • Batch (batch) runs the selected endpoint once per object, e.g. [{"username":"a"},{"username":"b"}]. Form fields act as defaults for every batch entry.
  • Parallel queries (concurrency) controls how many batch entries run at once.
  • To continue a previous run manually, pass the last cursor from the response (with One row per result off) as the cursor field.

Pricing

This actor uses pay per event pricing: you pay for the results you get, not for compute time.

Higher Apify plans get an automatic Store discount:

Apify planPer 1,000 resultsActor start
Free$3.50$0.005
Bronze$3.00$0.004
Silver$2.20$0.003
Gold$1.80$0.0025
Platinum$1.80$0.0025
Diamond$1.80$0.0025

Example on the Free plan: 1,000 results in one run cost $3.505. Platform usage (compute, proxy, storage) is included; you pay only the events above. The start event is charged once per run at the default 512 MB memory.

Not-found lookups and failed calls are free. With One row per result off, a row holding a page of N items counts as N results.

Set Maximum cost per run in the run options to cap spending; the actor stops cleanly at that limit and keeps everything it already saved.

Integrations and API

Run it from code with the Apify API or clients and get results as JSON:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('<username>/facebook-scraper').call({"endpoint":"search-posts","keyword":"coffee","maxItems":100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

It also works with schedules, webhooks, Make, Zapier, n8n, Google Sheets and every other Apify integration.

FAQ

Do I need a Facebook account, cookies or an API key? No. Just pick an endpoint and run.

Is scraping Facebook legal? This actor only returns publicly available data. You are responsible for how you use it: respect privacy laws (GDPR, CCPA), the platform's terms, and do not collect personal data without a legitimate reason.

Why did a query return nothing? The account, post or keyword may not exist, may be private, or may have no public results. Those queries are reported in the OUTPUT summary as not found and are not charged.

Can I get more than the maximum? Raise Max results per query and Max pages per query. Very large pulls are best split with Batch.

How fresh is the data? Real time: each run reads the platform at that moment.

Changelog and support

See the Changelog tab. Found a bug or need a field or endpoint? Open an issue in the Issues tab; we usually reply within a day.