Zum Inhalt springen
GET /v1/search/categories

Search categories

Game/Category-Suche.

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/twitch-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/twitch-api/v1/search/categories" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/twitch-api/v1/search/categories", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/twitch-api/v1/search/categories");
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/twitch-api/v1/search/categories",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 10,
        "query": "fortnite",
        "categories": [
            {
                "id": "33214",
                "name": "Fortnite",
                "slug": "Fortnite",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/33214-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortnite",
                "viewers_count": 80518
            },
            {
                "id": "2101965177",
                "name": "Fortnite 2: Love on the Battlefield",
                "slug": "Fortnite 2: Love on the Battlefield",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/2101965177_IGDB-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortnite-2%3A-love-on-the-battlefield",
                "viewers_count": null
            },
            {
                "id": "689509228",
                "name": "Fortnite: Lockjaw Starter Quest Pack",
                "slug": "Fortnite: Lockjaw Starter Quest Pack",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/689509228-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortnite%3A-lockjaw-starter-quest-pack",
                "viewers_count": null
            },
            {
                "id": "2015434764",
                "name": "LEGO Fortnite: Odyssey",
                "slug": "LEGO Fortnite: Odyssey",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/2015434764-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/lego-fortnite%3A-odyssey",
                "viewers_count": 32
            },
            {
                "id": "191016283",
                "name": "Fortnight: Elite Commando Action 2",
                "slug": "Fortnight: Elite Commando Action 2",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/191016283-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortnight%3A-elite-commando-action-2",
                "viewers_count": null
            },
            {
                "id": "716522600",
                "name": "Fortuito: Lost History",
                "slug": "Fortuito: Lost History",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/716522600_IGDB-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortuito%3A-lost-history",
                "viewers_count": null
            },
            {
                "id": "64936741",
                "name": "Fortitude Tower Defense",
                "slug": "Fortitude Tower Defense",
                "box_art_url": "https://static-cdn.jtvnw.net/ttv-boxart/64936741_IGDB-144x192.jpg",
                "category_url": "https://www.twitch.tv/directory/category/fortitude-tower-defense",
                "viewers_count": null
            },
            {
                "id":
…