Docs / Platforms / Facebook23 operations / 8 live / 15 mapped

Facebook

Facebook is exposed through 8 live operations covering posts, videos and catalog records, search and discovery, trends, markets and live signals, comments and reviews. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What Facebook data is for.

Live Facebook capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 23

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 8

ready
GET

Facebook page posts

/v1/facebook/posts
30 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/posts?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

/v1/facebook/ads
60 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/ads?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Facebook Ad Library ad

/v1/facebook/ad-library/ads
15 creditsPaid only6h cache
NameTypeRequiredDescription
adIdstringnoLookup parameter.
urlstringnoPublic page, post, profile or video URL.
includeTranscriptstringnoLookup parameter.
trimstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/ad-library/ads" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Facebook group posts

/v1/facebook/groups/posts
25 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
sortBystringnoLookup parameter.
cursorstringnoLookup parameter.
labelsstringnoLookup parameter.
Request
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"
Response
{
  "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[].createdAt

Input 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

Get Facebook Marketplace item

/v1/facebook/marketplace/items
15 creditsPaid only6h cache
NameTypeRequiredDescription
itemIdstringnoLookup parameter.
urlstringnoPublic page, post, profile or video URL.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/marketplace/items" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Facebook post or reel comments

/v1/facebook/posts/comments
15 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringnoPublic page, post, profile or video URL.
cursorstringnoLookup parameter.
feedbackIdstringnoLookup parameter.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/posts/comments" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Facebook profile posts

/v1/facebook/profiles/posts
25 creditsPaid only6h cache
NameTypeRequiredDescription
urlstringnoPublic page, post, profile or video URL.
pageIdstringnoLookup parameter.
cursorstringnoLookup parameter.
hostMediastringnoLookup parameter.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/facebook/profiles/posts" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 credits
GET

List Facebook company ads

/v1/facebook/ad-library/companies/ads

503 upstream_not_configured · 0 credits
GET

List Facebook city events

/v1/facebook/events

503 upstream_not_configured · 0 credits
GET

Get Facebook event

/v1/facebook/events/details

503 upstream_not_configured · 0 credits
GET

Get Facebook group

/v1/facebook/groups

503 upstream_not_configured · 0 credits
GET

List Facebook comment replies

/v1/facebook/posts/comments/replies

503 upstream_not_configured · 0 credits
GET

Get Facebook post transcript

/v1/facebook/posts/transcript

503 upstream_not_configured · 0 credits
GET

Get Facebook profile

/v1/facebook/profiles

503 upstream_not_configured · 0 credits
GET

List Facebook profile events

/v1/facebook/profiles/events

503 upstream_not_configured · 0 credits
GET

List Facebook profile photos

/v1/facebook/profiles/photos

503 upstream_not_configured · 0 credits
GET

List Facebook profile reels

/v1/facebook/profiles/reels

503 upstream_not_configured · 0 credits
FAQ / Facebook

Common Facebook API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready