Developer documentation

Foxy API reference

HTTP API for media extraction and server-side downloads.

Base URL
https://api.foxry.in

Requests use JSON unless an endpoint returns a downloadable file.

Authentication

Send your API key in the X-API-Key header. Bearer authentication is also supported. Do not put keys in query strings or public client-side code.

X-API-Key: YOUR_API_KEY # or Authorization: Bearer YOUR_API_KEY

Generate/manage your key with @FoxyApiBot. Keep it private.

Extract media information

POST /api/extract

Extract metadata and media information for a supported URL.

JSON body
{ "url": "https://example.com/media", "mode": "best" }

Modes: best or audio.

GET /api/extract?url=...&mode=best

GET variant for integrations that need query parameters. Authentication header is still required.

Download media

POST /api/download

Downloads the processed media server-side and streams the resulting file as a response.

{ "url": "https://example.com/media", "mode": "best" }

Response: binary file download. Error responses are JSON.

Errors & rate limits

Errors return a non-2xx HTTP status and a JSON object with an error code and message. Common statuses include 400 (invalid URL), 401 (missing/invalid API key), 403 (blocked URL or disabled key), 429 (rate/quota limit), 502/504 (upstream extraction failure), and 503 (maintenance).

Current service rate limiting is configured at 500 requests per 60 seconds. Individual API keys may have a different limit. Response headers include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.

Health check

GET /api/health

Public service health/status endpoint; does not require an API key.

Interactive API tester

Your API key is used only in this browser request and is not saved by this page. Test with a URL you are authorized to access.

Response will appear here…