API Endpoints
Response Schema
| Field | Type | Description |
|---|---|---|
category | string | The category key (e.g., "facts") |
day | number | Day of the year (1-366) |
item | object | The OTD item payload |
item.id | number | Unique item identifier |
item.text | string | The primary content text |
item.name | string | (Phobias only) The name of the phobia |
JSON Preview
{
"category": "facts",
"day": 100,
"item": {
"id": 123,
"text": "The Eiffel Tower can be 15 cm taller during the summer.",
"category": "Science"
}
}Status Codes
200
OK
Request successful.
400
Bad Request
Invalid parameters provided.
404
Not Found
Category does not exist.
500
Server Error
Internal OTD.LOL error.