Capabilities
Every capability is one POST /execute
call that returns structured JSON.
facebook.ads-library.search
Searches the Facebook Ads Library for active and inactive ads by advertiser or keyword.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"Meta AI"},"capability":"facebook.ads-library.search"}'
Input
|
Field
|
Type
|
Required
|
Description
|
cursor
|
string
|
optional
|
Pagination cursor from previous response
|
limit
|
integer
|
optional
|
Maximum number of results to return
|
query
|
string
|
required
|
Search query string
|
Lists recent posts from a Facebook page including text, media, and engagement metrics.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta"},"capability":"facebook.page-posts.list"}'
Input
|
Field
|
Type
|
Required
|
Description
|
cursor
|
string
|
optional
|
Pagination cursor from previous response
|
limit
|
integer
|
optional
|
Maximum items per page
|
url
|
string
|
required
|
Page URL
|
Lists reels from a Facebook page with view counts and video metadata.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta"},"capability":"facebook.page-reels.list"}'
Input
|
Field
|
Type
|
Required
|
Description
|
limit
|
integer
|
optional
|
Maximum items to return
|
url
|
string
|
required
|
Page URL
|
facebook.page-videos.list
Lists videos posted by a Facebook page with titles, view counts, and engagement metrics.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta"},"capability":"facebook.page-videos.list"}'
Input
|
Field
|
Type
|
Required
|
Description
|
cursor
|
string
|
optional
|
Pagination cursor from previous response
|
limit
|
integer
|
optional
|
Maximum items per page
|
url
|
string
|
required
|
Page URL
|
Fetches a Facebook page's public profile including name, category, follower count, and page metadata.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta"},"capability":"facebook.page.get"}'
Input
|
Field
|
Type
|
Required
|
Description
|
url
|
string
|
required
|
Resource URL to scrape
|
Fetches details about a public Facebook photo including image URL and engagement metadata.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/NASA/photos/1496429658519072"},"capability":"facebook.photo.get"}'
Input
|
Field
|
Type
|
Required
|
Description
|
url
|
string
|
required
|
Photo URL
|
Fetches a Facebook post's details including text, reactions, shares, and comment count.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta/posts/pfbid0EwsxFj5K4PGG5XS58NxrZwEYgrx4aWwnSYJdFVsphLZDJMPXYiokrkefu1CmKm4Vl"},"capability":"facebook.post.get"}'
Input
|
Field
|
Type
|
Required
|
Description
|
url
|
string
|
required
|
Post URL
|
Fetches details about a public Facebook Reel including video URL, view count, and engagement.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/reel/911507208162880"},"capability":"facebook.reel.get"}'
Input
|
Field
|
Type
|
Required
|
Description
|
url
|
string
|
required
|
Resource URL to scrape
|
Fetches details about a public Facebook video including title, view count, and engagement metrics.
Request
curl -X POST https://data.upscrape.com/execute \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.facebook.com/Meta/videos/911507208162880/"},"capability":"facebook.video.get"}'
Input
|
Field
|
Type
|
Required
|
Description
|
url
|
string
|
required
|
Resource URL to scrape
|
Run Facebook in under a minute
Sign in, create an API key, and try any capability in the playground before you write code.
Get an API key