v1trivia
Retrieve trivia questions and answers across categories like science, history, and entertainment with customizable result limits.
Instructions
API Ninjas Trivia API endpoint
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "v1trivia"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Category of trivia. Possible values are: artliterature language sciencenature general fooddrink peopleplaces geography historyholidays entertainment toysgames music mathematics religionmythology sportsleisure | |
| limit | No | How many results to return. Must be between 1 and 30. Default is 1. | 0 |