SDKs & Frameworks
Use fetch, requests or an agent framework. The API is plain HTTP and needs no generated client.
Any HTTP clientNo SDK surchargecurl -s "https://api.cleanfetch.dev/v1/x/profile?username=openai" \ -H "x-api-key: cf_live_your_key_here"
{
"data": { "platform": "x", "profile": { "username": "openai" } },
"meta": { "creditsCharged": 1, "lookupStatus": "found" }
}TypeScript
Use the platform fetch client. The response is JSON, so a small typed wrapper around data and meta is enough. For AI applications, wrap each endpoint in a tool definition so the model sees a narrow input schema.
Python
requests or httpx work without a package. Keep the key in an environment variable and set a timeout. Raise for 5xx, read retry-after on 429, and log meta.requestId with every failure.
Agent frameworks
The hosted MCP server works with Claude, Cursor, Windsurf and any Streamable HTTP client. For LangChain, Vercel AI SDK or the OpenAI Agents SDK, call the REST endpoint from a tool function or connect the MCP server directly.
Framework examples
The examples on this page are intentionally small. There is no generated SDK to keep in sync, no client version to upgrade and no extra credit charge for using a framework.