What Facebook data is for.
Use Facebook when you need posts, videos and catalog records, search and discovery, trends, markets and live signals, comments and reviews without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
8
Paid only
8
Price floor
15 cr
Use cases
Facebook page posts
Call /v1/facebook/posts when you need a normalized facebook page posts response with the same credit and cache rules as the rest of the catalog.
Facebook ad library
Call /v1/facebook/ads when you need a normalized facebook ad library response with the same credit and cache rules as the rest of the catalog.
Get Facebook Ad Library ad
Call /v1/facebook/ad-library/ads when you need a normalized get facebook ad library ad response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
15 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 8
readyFacebook page posts
/v1/facebook/posts| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/facebook/posts?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 30,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Facebook ad library
/v1/facebook/ads| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/facebook/ads?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 60,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Facebook Ad Library ad
/v1/facebook/ad-library/ads| Name | Type | Required | Description |
|---|---|---|---|
| adId | string | no | Lookup parameter. |
| url | string | no | Public page, post, profile or video URL. |
| includeTranscript | string | no | Lookup parameter. |
| trim | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/facebook/ad-library/ads" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Search Facebook Ad Library ads
/v1/facebook/ad-library/ads/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| sortBy | string | no | Lookup parameter. |
| searchType | string | no | Lookup parameter. |
| adType | string | no | Lookup parameter. |
| country | string | no | Lookup parameter. |
| language | string | no | Lookup parameter. |
| status | string | no | Lookup parameter. |
| mediaType | string | no | Lookup parameter. |
| startDate | string | no | Lookup parameter. |
| endDate | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| trim | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/facebook/ad-library/ads/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 42,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Facebook group posts
/v1/facebook/groups/posts| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
| sortBy | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/facebook/groups/posts?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 25,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Facebook Marketplace item
/v1/facebook/marketplace/items| Name | Type | Required | Description |
|---|---|---|---|
| itemId | string | no | Lookup parameter. |
| url | string | no | Public page, post, profile or video URL. |
curl -s "https://api.cleanfetch.dev/v1/facebook/marketplace/items" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Facebook post or reel comments
/v1/facebook/posts/comments| Name | Type | Required | Description |
|---|---|---|---|
| url | string | no | Public page, post, profile or video URL. |
| cursor | string | no | Lookup parameter. |
| feedbackId | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/facebook/posts/comments" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 15,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Facebook profile posts
/v1/facebook/profiles/posts| Name | Type | Required | Description |
|---|---|---|---|
| url | string | no | Public page, post, profile or video URL. |
| pageId | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
| hostMedia | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/facebook/profiles/posts" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "facebook",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 25,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Paid endpoint. Free accounts receive plan_required.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 15
503 · 0 creditsList Facebook company ads
/v1/facebook/ad-library/companies/ads
Search Facebook ad library companies
/v1/facebook/ad-library/companies/search
List Facebook city events
/v1/facebook/events
Get Facebook event
/v1/facebook/events/details
Search Facebook events
/v1/facebook/events/search
Get Facebook group
/v1/facebook/groups
Search Facebook Marketplace locations
/v1/facebook/marketplace/locations/search
Search Facebook Marketplace listings
/v1/facebook/marketplace/search
List Facebook comment replies
/v1/facebook/posts/comments/replies
Get Facebook post transcript
/v1/facebook/posts/transcript
Get Facebook profile
/v1/facebook/profiles
List Facebook profile events
/v1/facebook/profiles/events
List Facebook profile photos
/v1/facebook/profiles/photos
List Facebook profile reels
/v1/facebook/profiles/reels
Search Facebook videos
/v1/facebook/videos/search
Common Facebook API questions
How many Facebook operations are live?
8 of 23 cataloged operations are live. 15 mapped operations return 503 upstream_not_configured and cost 0 credits.
What does a Facebook call cost?
Live operations range from 15 to 60 credits. 0 are available on the free daily cap and 8 are paid-only. Cache hits cost 0 credits.
Are Facebook responses cached?
Successful responses are cached between 6h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate Facebook requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.