Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.urltodata.ai/llms.txt

Use this file to discover all available pages before exploring further.

All API requests require a Bearer token in the Authorization header:
curl -H "Authorization: Bearer your-api-key" \
  "https://api.urltodata.ai/v1/youtube/video?id=dQw4w9WgXcQ"

Getting an API key

When you register, you receive an API key and 100 free credits:
curl -X POST "https://api.urltodata.ai/v1/auth/register" \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'

Managing API keys

Create an additional key

curl -X POST "https://api.urltodata.ai/v1/keys/create" \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"name": "production"}'

List your keys

curl -H "Authorization: Bearer your-api-key" \
  "https://api.urltodata.ai/v1/keys"

Revoke a key

curl -X DELETE "https://api.urltodata.ai/v1/keys/your-key-id" \
  -H "Authorization: Bearer your-api-key"

Credits

Each API request costs credits. New accounts start with 100 free credits.

Check your balance

curl -H "Authorization: Bearer your-api-key" \
  "https://api.urltodata.ai/v1/account"

View available packages

curl "https://api.urltodata.ai/v1/credits/packages"
{
  "packages": [
    { "id": "credits_500", "credits": 500, "priceUsd": "5.00" },
    { "id": "credits_2000", "credits": 2000, "priceUsd": "15.00" },
    { "id": "credits_5000", "credits": 5000, "priceUsd": "35.00" },
    { "id": "credits_15000", "credits": 15000, "priceUsd": "100.00" }
  ]
}

Purchase credits

curl -X POST "https://api.urltodata.ai/v1/credits/purchase" \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"package_id": "credits_2000"}'
This returns a checkout URL to complete the purchase.

View usage history

curl -H "Authorization: Bearer your-api-key" \
  "https://api.urltodata.ai/v1/account/usage?limit=20"