API Reference
The NexGeo.ai API lets you programmatically access your visibility data, trigger scans, and retrieve analytics.
Base URL
https://your-domain.com/api/v1
Authentication
All API requests require an API key. Generate one from the Developers page in your dashboard.
Pass the key via the X-API-Key header:
Shell
curl https://your-domain.com/api/v1/products \ -H "X-API-Key: apin_your_key_here"
Alternatively, use the Authorization header with a Bearer token:
Authorization: Bearer apin_your_key_here
Scopes
API keys are created with specific scopes that control what operations they can perform:
| Scope | Permissions |
|---|---|
read | List products, scans, analytics |
write | Trigger scans, update products |
admin | Full access including key management |
Rate Limits
API requests are rate-limited per API key:
- Free plan: 100 requests/minute
- Pro plan: 500 requests/minute
- Enterprise plan: 2000 requests/minute
Error Responses
Errors return a JSON object with an error field:
JSON
{
"error": "Invalid API key"
}| Status | Description |
|---|---|
| 401 | Missing or invalid API key |
| 403 | Insufficient scope |
| 404 | Resource not found |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
