Automation
Wire CleanFetch into n8n, Make or Pipedream with an HTTP request and one header.
HTTP request modulesCredits follow the endpointcurl -s "https://api.cleanfetch.dev/v1/youtube/video?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \ -H "x-api-key: cf_live_your_key_here"
{
"data": { "platform": "youtube", "video": { "id": "dQw4w9WgXcQ" } },
"meta": { "creditsCharged": 1, "lookupStatus": "found" }
}n8n
Add an HTTP Request node, set the method to GET, paste the endpoint and add x-api-key as a header. Store the key in n8n credentials or an environment variable, not in the node body.
Make
Use the HTTP module with the same URL and header. Parse data and meta, then branch on lookupStatus. Retry 5xx and 429 with the platform retry module; do not retry 404.
Pipedream
Create a workflow with an HTTP request step. Put the key in a Pipedream secret and reference it with {{process.env.CLEANFETCH_API_KEY}}. Return data to the next step and keep meta for logs.
Scheduling
Cron a small batch rather than a full catalog. Cache records you have already paid for and re-check only the URLs that changed. The meta.cached flag tells you when a repeat lookup was served without a fresh upstream fetch.