Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/opentdb-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/opentdb-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/opentdb-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/opentdb-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/opentdb-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "service": "opentdb-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/count": "Question-count breakdown for a category (category=<id>).",
            "GET /v1/random": "A single random question (same filters as /questions).",
            "GET /v1/questions": "Trivia questions (amount=1-50, category=<id>, difficulty=easy|medium|hard, type=multiple|boolean).",
            "GET /v1/categories": "All 24 trivia categories with ids."
        },
        "description": "Trivia questions via the open Open Trivia Database (OpenTDB): fetch multiple-choice and true/false questions filtered by category, difficulty and type; list the 24 categories; read a category's question-count breakdown; or pull a single random question. Answers are decoded to clean text. Real trivia data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T09:48:50.402Z",
        "request_id": "94872fd4-5e38-4e3a-97f9-092640f8614c"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}