REST API¶
The ApiCrate REST API provides direct HTTP access to all services.
Base URL: https://api.apicrate.io
Base URL¶
All endpoints are served under:
https://api.apicrate.io/api/v1/
Authentication¶
Every request must include one of:
X-API-Keyheader with your API keyAuthorization: Bearer <jwt>header with a JWT token
See Authentication for details on obtaining and managing keys.
# API key
curl -H "X-API-Key: ac_usr_..." https://api.apicrate.io/api/v1/ip/me
# JWT
curl -H "Authorization: Bearer eyJ..." https://api.apicrate.io/api/v1/ip/me
Common Features¶
Field Filtering¶
Most endpoints support a fields query parameter to return only specific
fields in the response:
curl -H "X-API-Key: $KEY" \
"https://api.apicrate.io/api/v1/countries/US?fields=name,capital"
Pagination¶
List endpoints accept limit and offset query parameters:
curl -H "X-API-Key: $KEY" \
"https://api.apicrate.io/api/v1/countries?limit=10&offset=20"
Rate Limiting¶
Every response includes quota headers:
X-Quota-Limit– credits available in your current windowX-Quota-Remaining– requests left in current windowX-Quota-Reset– Unix timestamp when your quota window resets
When the quota is exceeded the API returns HTTP 429.
Response Format¶
All responses are JSON with Content-Type: application/json.
Endpoints¶
Domain |
Endpoints |
Description |
|---|---|---|
3 |
Parse User-Agent strings into browser, OS, and device data |
|
3 |
Geolocate IPs to country, city, ISP; detect VPN/proxy/Tor |
|
6 |
ISO 3166 country and subdivision lookup |
|
9 |
Postal code lookup, validation, and spatial queries |
|
4 |
Timezone info, conversion, and difference calculation |
|
7 |
Cryptographic digest and password KDF hashing |
|
11 |
Bible verse retrieval, search, and navigation |
|
2 |
Email validation and fraud risk scoring |