Quickstart
Make your first 5centsCDN API call. By the end of this guide you will have made your first authenticated API call and listed your CDN zones.
Step-by-step
Get your API key
Log in to your dashboard → Settings → API Keys → copy your key.
Never paste your API key into public code, browser consoles, or Git repositories.
Verify your key works
Make a test call to the account endpoint. A 200 response means your key is valid.
curl -X GET https://api.5centscdn.com/v2/account \
-H "X-API-KEY: YOUR_API_KEY"
const res = await fetch('https://api.5centscdn.com/v2/account', {
headers: { 'X-API-KEY': 'YOUR_API_KEY' }
});
const data = await res.json();
console.log(data);
import requests
r = requests.get(
'https://api.5centscdn.com/v2/account',
headers={'X-API-KEY': 'YOUR_API_KEY'}
)
print(r.json())
List your zones
Fetch all CDN zones on your account.
curl -X GET https://api.5centscdn.com/v2/zones \
-H "X-API-KEY: YOUR_API_KEY"
const res = await fetch('https://api.5centscdn.com/v2/zones', {
headers: { 'X-API-KEY': 'YOUR_API_KEY' }
});
const data = await res.json();
console.log(data);
import requests
r = requests.get(
'https://api.5centscdn.com/v2/zones',
headers={'X-API-KEY': 'YOUR_API_KEY'}
)
print(r.json())
Expected response:
{
"status": "success",
"data": [
{
"id": 12345,
"name": "my-zone",
"type": "HTTP",
"status": "active"
}
]
}
Explore the API reference
You are ready. Browse the full reference in the sidebar — every endpoint includes request/response schemas and a live playground to test calls directly.
What's next
| Guide | Description |
|---|---|
| Authentication | How API key auth works and best practices |
| Zones | Create and configure delivery zones |
| Live Streams | Set up live stream ingest and playback |
| Edge Rules | Define path-based routing and caching rules |
Was this page helpful?