REST API Reference
Call SubScraper directly from any language or HTTP client. All endpoints accept POST requests with a JSON body and return structured JSON. No SDK required.
Base URL
POSThttps://subscraper.dev/api/v1/{endpoint}
Authentication
Pass your API key in the Authorization header on every request:
Authorization: Bearer sk-your-api-key-here Content-Type: application/json
Need an API key?
Free account — 30 requests, no credit card.
Examples
curl
curl -X POST https://subscraper.dev/api/v1/search \
-H "Authorization: Bearer sk-your-api-key-here" \
-H "Content-Type: application/json" \
-d '{"query": "best mechanical keyboard", "sort": "top", "limit": 5}'JavaScript / TypeScript
const response = await fetch('https://subscraper.dev/api/v1/search', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk-your-api-key-here',
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: 'best mechanical keyboard',
sort: 'top',
limit: 5,
}),
});
const data = await response.json();
console.log(data.results);Python
import requests
response = requests.post(
'https://subscraper.dev/api/v1/search',
headers={
'Authorization': 'Bearer sk-your-api-key-here',
'Content-Type': 'application/json',
},
json={
'query': 'best mechanical keyboard',
'sort': 'top',
'limit': 5,
}
)
data = response.json()
print(data['results'])All Endpoints
All endpoints accept POST · Auth via Bearer token · Response is always JSON
Error Codes
| Status | Meaning |
|---|---|
| 200 | Success — JSON response in body |
| 400 | Bad request — missing or invalid parameters |
| 401 | Unauthorized — missing or invalid API key |
| 429 | Rate limited — slow down or upgrade |
| 500 | Server error — retry after a moment |
Prefer TypeScript?
The SDK wraps all these endpoints with full types and autocompletion — no manual fetch calls needed.
Ready to make your first API call?
Free tier included — 30 requests, no credit card required.
Get free API key