Per l'AI

API Douyin: video, commenti, live, tendenze, creator Xingtu

49 Douyin endpoints covering videos, accounts, hot lists, comments, hashtags, keywords, live streams, Image posts, notes, music, Xingtu and Ocean Engine index, from $0.002 a call. No Douyin account or cookie needed.

Inizia gratis Try Ricerca video Douyin
Collega la tua AI

Incolla questo nel tuo agent

Leggi https://okdata.online/agents.md e configura okdata per me; la mia chiave è nella variabile d'ambiente OKDATA_API_KEY.

Claude Code, Cursor, Codex e gli altri agent in grado di aprire un link si configurano da soli a partire da qui.

Server MCPhttps://api.okdata.online/mcp

Ask about Douyin from Claude, Cursor and other agents: the Douyin MCP page

Endpoint
49 endpoint
In 12 gruppi, un unico formato di risposta · 1 in arrivo
Prezzo più basso
Da $0.002
Una chiamata, pagata da un saldo prepagato
Aggiornamento
Live
Le classifiche sono uno snapshot condiviso vecchio al massimo 10 minuti
Canone mensile
$0
Nessun abbonamento né spesa minima

Ogni endpoint Douyin

Una riga per endpoint: la richiesta, cosa restituisce e quanto costa una chiamata.

Video

9

Account

4

Commenti

1

Hashtag

2

Parole chiave

1

Dirette

5

Post con immagini

1

Note

1

Music

2

I prezzi sono per chiamata, salvo dove indicato /item. Una chiamata che ha raggiunto la piattaforma viene addebitata anche se torna vuota o non riesce.

Cosa si fa con i dati Douyin

Ogni caso d'uso ha la sua pagina con gli endpoint necessari, un esempio svolto e il relativo costo.

Inizia in tre passaggi

The example is Ricerca video Douyin; every Douyin endpoint is called the same way and answers in the same shape.

  1. Ottieni una chiave

    Crea un account e una chiave nella console. Una nuova chiave include $0.20 per provare, senza carta.

    Apri la console

  2. Collega la tua AI, o chiamala direttamente

    Incolla questa frase in Claude Code, Cursor, Codex o un altro agente in grado di aprire un link, e si configura da solo. Oppure invia la richiesta qui sotto con la tua chiave nell'header Authorization.

    Configura okdata per me seguendo https://okdata.online/agents.md. Ecco la mia chiave API okdata: okd_…. Conservala al sicuro e usala per tutte le chiamate a okdata.

    Sostituisci il segnaposto con la tua chiave, oppure accedi e copialo con la chiave già inserita.

  3. Fai la prima chiamata

    Gli elementi arrivano in data.items (un singolo oggetto in data.item), la pagina successiva in page.next_cursor e l'importo addebitato in meta.billing.amount.

    cURL

    curl -G "https://api.okdata.online/v1/douyin/videos/search" \
      -H "Authorization: Bearer $OKDATA_API_KEY" \
      --data-urlencode 'query=露营装备'

    Python

    import os
    import requests
    
    resp = requests.get(
        "https://api.okdata.online/v1/douyin/videos/search",
        headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"},
        params={"query": "露营装备"},
        timeout=60,
    )
    body = resp.json()
    if body["code"] != "ok":
        raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})")
    
    for row in body["data"]["items"]:
        print(row["id"], row["metrics"]["likes"], row["text"][:60])
    print("cost: $" + body["meta"]["billing"]["amount"])

    TypeScript

    const url = new URL('https://api.okdata.online/v1/douyin/videos/search');
    url.searchParams.set('query', "露营装备");
    
    const res = await fetch(url, {
      headers: {
        Authorization: `Bearer ${process.env.OKDATA_API_KEY}`,
      },
    });
    const body = await res.json();
    if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`);
    
    for (const row of body.data.items) {
      console.log(row.id, row.metrics.likes, row.text.slice(0, 60));
    }
    console.log('cost: $' + body.meta.billing.amount);

    MCPtools/call

    {
      "name": "call",
      "arguments": {
        "capability": "douyin.videos.search",
        "query": "露营装备"
      }
    }

Domande sull'API Douyin

Quanto costa l'API Douyin?

Each of the 49 endpoints has its own price, from $0.002 to $0.044 a call; the cheapest is Risposte ai commenti Douyin at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.

Mi serve un account o un cookie Douyin?

No. You call https://api.okdata.online with one okdata key and get public Douyin data back; you never use your own Douyin account, cookie or QR login.

Quanto sono aggiornati i dati?

A request reads Douyin when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours). Hot lists come from a shared snapshot that is at most 10 minutes old.

Il mio agente AI può usare l'API Douyin?

Sì. Collega il server MCP all'indirizzo https://api.okdata.online/mcp: il suo tool find elenca questi 49 endpoint con i relativi prezzi e il suo tool call li esegue con la tua chiave.

Posso provarlo gratis?

New accounts get $0.20 of trial credit with no card: enough for 100 calls to Risposte ai commenti Douyin.

Collegati una volta, poi chiedi e basta.

Ogni nuova chiave include $0.20 per provarla. Basta una frase per collegare il tuo agent.

Inizia gratis
Collega la tua AI

Incolla questo nel tuo agent

Leggi https://okdata.online/agents.md e configura okdata per me; la mia chiave è nella variabile d'ambiente OKDATA_API_KEY.

Claude Code, Cursor, Codex e gli altri agent in grado di aprire un link si configurano da soli a partire da qui.

Server MCPhttps://api.okdata.online/mcp