Jolanism Public API
Search the archive of speeches, statements, interviews, and executive orders. Ask questions answered by AI using archive content as context.
Authentication
All API requests require an API key. Include it via the X-API-Key header or as an api_key query parameter.
curl -H "X-API-Key: jol_your_key_here" \ "https://jolanism.com/v1/search?q=سوريا"
GET /v1/search
Search transcripts and executive orders. Requires search scope.
Parameters
| Param | Type | Description |
|---|---|---|
| q | string | Search query (required) |
| type | string | "all" | "transcripts" | "exec_orders" (default: "all") |
| size | number | Results per page, max 100 (default: 20) |
Example
curl -H "X-API-Key: jol_xxx" \ "https://jolanism.com/v1/search?q=سوريا&type=transcripts&size=5"
Response
{
"query": "سوريا",
"type": "transcripts",
"total": 42,
"results": [
{
"id": "12345",
"title": "خطاب حول مستقبل سوريا",
"type": "speech",
"estimated_date": "2024-12-15",
"duration_seconds": 1200,
"score": 15.7,
"highlights": ["...مستقبل <mark>سوريا</mark>..."]
}
]
}POST /v1/ask
Ask a question — the API searches the archive and uses AI to synthesize an answer. Requires ask or full scope.
Request Body
{ "question": "ما موقف الرئيس من التعليم؟" }Example
curl -X POST \
-H "X-API-Key: jol_xxx" \
-H "Content-Type: application/json" \
-d '{"question": "ما موقف الرئيس من التعليم؟"}' \
"https://jolanism.com/v1/ask"Response
{
"answer": "بحسب المصادر المتاحة...",
"sources": [
{ "id": "12345", "title": "لقاء حول التعليم" },
{ "id": "67890", "title": "خطاب افتتاح المدارس" }
]
}Rate Limits
Each API key has a per-minute rate limit (default: 60 requests/min). Rate limit info is included in response headers:
X-RateLimit-Limit: 60 X-RateLimit-Remaining: 58 X-RateLimit-Reset: 45
When exceeded, the API returns 429 Too Many Requests.
Error Codes
| Status | Meaning |
|---|---|
| 401 | Missing, invalid, or revoked API key |
| 403 | API key lacks required scope for this endpoint |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Scopes
| Scope | Access |
|---|---|
| search | GET /v1/search |
| ask | POST /v1/ask |
| full | All endpoints |
Need an API key? Contact us or request one through authorized channels.