Getting Started
Quickstart
Make a first live request in under a minute: create a key, send one header and read the envelope.
GET https://api.cleanfetch.dev/v1/linkedin/profile1 creditauth: x-api-keycontent-type: application/jsonenvelope: data + meta
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public LinkedIn profile URL. |
| sections | string | no | Comma-separated fields, for example profile,experience,company. |
request.sh
curl -s "https://api.cleanfetch.dev/v1/linkedin/profile?url=https://www.linkedin.com/in/williamhgates" \ -H "x-api-key: cf_live_your_key_here"
response.json
200 OK / application/json
{
"data": {
"platform": "linkedin",
"profile": {
"name": "Bill Gates",
"headline": "Co-chair, Bill & Melinda Gates Foundation",
"location": "Seattle, Washington",
"followers": 41200000
}
},
"meta": {
"requestId": "req_cf_01j9k933p9s",
"lookupStatus": "found",
"creditsCharged": 1,
"latencyMs": 918,
"cached": false
}
}Create a key
Open the dashboard, choose API keys and create a key. Copy it once. Store it as an environment variable on the server so it never reaches a browser bundle or a public repository.
Send the request
Pass the key in x-api-key. Query parameters are platform-specific, but the path always starts with /v1/{platform}/{resource}. A successful lookup returns HTTP 200 with data and meta.
Check the meta block
Use meta.requestId when contacting support. A lookupStatus of found means the public record was read. not_found is a verified miss and is billed once. upstream_error is not billed.