Field note / Nov 30, 2026

One API, 87 Platforms: What Stays Stable

The normalized request and response layer behind CleanFetch, and the boundary that keeps 87 public sources from leaking into your application code.

CleanFetchCleanFetch TeamNov 30, 2026CleanFetch / Blog

Eighty-seven platforms sounds like a coverage number. In production it is a maintenance number. Every source changes a field name, adds a login wall, or moves a public page. The useful question is not how many adapters exist. It is how little of that churn reaches your code.

CleanFetch keeps one stable contract at the edge and treats each platform as a replaceable adapter behind it.

One request shape

A profile lookup uses the platform id in the path and the public URL as a query parameter:

curl "https://api.cleanfetch.dev/v1/linkedin/profile?url=https://www.linkedin.com/in/example" \
  -H "x-api-key: $CLEANFETCH_API_KEY"

The same pattern works for Instagram, TikTok, X, YouTube, Reddit, and every other source in the directory. Authentication is one header. Pagination and filters follow the same parameter names wherever the upstream data supports them.

One response envelope

Every successful call returns data, meta, and creditsCharged. The platform-specific payload sits inside data; the operational facts stay outside it.

{
  "data": {
    "id": "example",
    "name": "Example Person",
    "followers": 18420
  },
  "meta": {
    "platform": "linkedin",
    "creditsCharged": 5,
    "lookupStatus": "ok",
    "requestId": "req_01J..."
  }
}

A verified miss is still a real answer. It returns lookupStatus: "not_found", is billed once at the endpoint price, and does not look like a transport failure. A 5xx or timeout charges zero credits and is safe to retry with the same idempotency key.

Adapters are disposable

Each platform adapter translates three things:

  1. The public URL or identifier into the upstream request.
  2. The upstream response into the shared field vocabulary.
  3. Upstream errors into the shared error model.

Everything else, including auth, rate limits, credit accounting, and response metadata, runs at the boundary. When an upstream page changes, the adapter changes. Your request shape and your JSON parser do not.

That split is also why the platform directory can grow without turning the API into 87 different products. The public contract is small on purpose.

Credits stay visible

The response tells you what the call cost. The pricing page tells you the price before you send it. There are no seats, no platform fee, and no expiry on one-off packs. A lookup that fails technically is not a billable event.

That sounds like billing detail. In practice it is an API design decision: if cost is part of the response envelope, it can be logged, monitored, and reconciled like any other operational fact.

What to watch in production

Public data is not the same as private data. CleanFetch only reads what a logged-out visitor can see. It does not ask for account cookies, and it does not bypass a login wall.

Upstream coverage can still drift. A field may disappear, a page may change its markup, or a platform may tighten a rate limit. The honest contract is not that nothing changes. It is that changes are contained, visible in meta, and documented at the endpoint level.

One API, 87 adapters, one place to look when something breaks.

ready