API Documentation Guide
This guide explains how the GDELT Cloud developer API documentation is structured and maintained.Overview
GDELT Cloud uses Mintlify as its documentation platform. The API Reference tab is auto-generated by Mintlify from the OpenAPI 3.0 spec located at:/api/v1/* routes use custom middleware rather than Zod schemas
or @openapi JSDoc annotations.
Developer API — What We Document
Only the Developer API (API Key–authenticated/api/v1/* endpoints) is exposed in the public docs.
Internal browser/session APIs (/api/public/*, /api/dashboard/*, etc.) are intentionally excluded.
Endpoints documented
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/media-events | List top media event clusters |
| GET | /api/v1/media-events/cluster | Get articles in a specific cluster |
| GET | /api/v1/entity | Look up a named entity (GDELT GKG) |
| GET | /api/v1/entity-geg | Look up a GEG entity (enhanced graph) |
| GET | /api/v1/domain | Look up a news domain/source |
| GET | /api/v1/conflict-events | List AI-coded ACLED-style conflict events |
Regenerating the OpenAPI Spec
When you add, remove, or change a/api/v1/* endpoint, regenerate the spec by running:
scripts/build_openapi.py and writes directly to
gdelt-cloud-docs/api-reference/openapi.json.
What the script contains
- All 5 endpoint definitions with full query parameter schemas
ApiKeyAuthsecurity scheme (Bearergdelt_sk_*format)- Standard response schemas (200 success, 401/403/429/500 errors)
- Server definition pointing to
https://gdeltcloud.com
When to run it
- After adding a new
/api/v1/*endpoint - After changing query parameters on an existing endpoint
- After changing response shapes
- After changing authentication or error behavior
Documentation File Structure
Navigation
Navigation is configured indocs.json. The API Reference tab uses Mintlify’s OpenAPI
source feature — it reads openapi.json and auto-generates one page per endpoint.
No manual MDX pages are needed for individual endpoints.
api-reference/introduction.mdx) is not auto-generated — it is
a manually maintained page that appears as the first page in the API Reference tab. To add it
to the navigation, add it to the group pages list in docs.json if needed.
Plan Limits Reference
| Plan | Query Units (QU/mo) | Rate Limit |
|---|---|---|
| Free | No API access | — |
| Scout | No API access | — |
| Analyst | 10,000 QU | 30 RPM |
| Professional | Unlimited | 120 RPM |
Retry-After header is returned on 429 responses.
Authentication
All/api/v1/* endpoints require:
Error Codes
| HTTP | error field | Meaning |
|---|---|---|
| 401 | MISSING_API_KEY | No Authorization header |
| 401 | INVALID_API_KEY | Key not found / malformed |
| 403 | API_ACCESS_DENIED | Plan does not include API access |
| 429 | RATE_LIMITED | RPM limit exceeded |
| 429 | QUOTA_EXCEEDED | Monthly QU limit reached |
| 500 | INTERNAL_ERROR | Server error |

