# Open Trivia DB API

> Open Trivia DB API on Apizie: 2 endpoints (Questions, Categories) returned as clean JSON through one API key. 2 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/games:open-trivia-db/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `games:open-trivia-db`
- Category: Games
- Status: live
- Source: https://opentdb.com/api_config.php
- Page: https://zieapi.vercel.app/api/games/open-trivia-db
- OpenAPI: https://zieapi.vercel.app/api/games/open-trivia-db/openapi.json

4,000+ verified trivia questions in 24 categories.

## Endpoints

### Questions
`GET https://zieapi.vercel.app/v1/games:open-trivia-db/questions`

| Parameter | Type | Required | Description |
|---|---|---|---|
| amount | integer | no | Number of results |
| category | integer | no | Category id (see categories) |
| difficulty | string | no |  |
| type | string | no |  |

### Categories
`GET https://zieapi.vercel.app/v1/games:open-trivia-db/categories`

## Example
```
curl "https://zieapi.vercel.app/v1/games:open-trivia-db/questions" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Open Trivia DB API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/games:open-trivia-db/questions with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Open Trivia DB API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Open Trivia DB API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key games:open-trivia-db.

### What is the status of the Open Trivia DB API?
Live: works with just an Apizie key
