OverviewIntroduction

Introduction

Welcome to the 5centsCDN API — a complete RESTful interface for managing your CDN infrastructure.

5centsCDN gives you a powerful, simple API to programmatically manage your entire CDN infrastructure — delivery zones, live streams, video encoding, storage, DNS, and analytics — all from one place.


What you can do


Base URL

All API requests go to a single base URL. The version prefix /v2 is required on every request.

https://api.5centscdn.com/v2

All requests must be made over HTTPS. HTTP requests are rejected automatically.


HTTP methods

The 5centsCDN API accepts only two real HTTP methods: GET and POST.

For operations that modify or delete a resource, you use POST with a _METHOD field in the request body to declare the intended operation.

HTTP Method_METHOD in bodyOperation
GET(not required)Read / list a resource
POST(not required)Create a new resource
POST"_METHOD": "PUT"Update an existing resource
POST"_METHOD": "DELETE"Delete a resource

Update operation — Send a POST request and include "_METHOD": "PUT" in the JSON body. The endpoint URL stays the same as the create endpoint.

Delete operation — Send a POST request and include "_METHOD": "DELETE" in the JSON body. Omitting _METHOD on a delete endpoint will create a resource instead of deleting it.

Examples

curl -X POST https://api.5centscdn.com/v2/streams/push/settings \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "_METHOD": "PUT",
    "name": "updated-stream-name"
  }'

API modules

ModuleDescriptionBase Path
Live StreamsPush and pull live stream management/streams
ZonesHTTP and VOD delivery zones/zones
Video EncodingEncoding jobs and presets/transcoding
SimpleDNSDNS zone and record management/dns
VideoPlayer & AnalyticsPlayer config, embed, and analytics/players/5centscdn/analytics
AccountsSettings, sub-users, and billing/account
AnalyticsTraffic and bandwidth reports/analytics/traffic
Edge RulesPath-based routing and caching rules/zones/http/pull/{zoneId}/rules

Response format

Every response is JSON with a consistent envelope.

{
  "status": "success",
  "data": {
    "id": 12345,
    "name": "my-zone",
    "status": "active"
  }
}

HTTP status codes

CodeStatusMeaning
200OKRequest succeeded
201CreatedResource created successfully
400Bad RequestInvalid input — check your parameters
401UnauthorizedAPI key missing or invalid
403ForbiddenInsufficient account permissions
404Not FoundResource does not exist
429Too Many RequestsRate limit exceeded — slow down
500Server ErrorUnexpected error — contact support

Rate limiting

Each API key is limited to 120 requests per minute. Exceeding this returns HTTP 429. Implement exponential backoff in automated scripts to handle this gracefully.

Was this page helpful?