API di TikTok

TikTok User stories API

Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts.

POST/v1/run/tiktok.user_stories
Disponibilità
100,00%
30d · 118 chiamate
Richieste
138
30 g · settimanale, ultime 12 sett.
Risposta
0,8s
mediana · 30d

Stato

Caricamento dello stato...

Ricevi le email sui guasti di questo endpoint

Vedi tutti gli endpoint nella pagina di stato

Prezzi e provider

Prezzi dell'API TikTok User stories: una sola API, 2 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

Paghi
11,00 USD
1,10 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 90 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni TikTok User stories in una sola richiesta

requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `expiresUtc`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a story that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.
{
  "data": {
    "hasMore": true,
    "stories": [
      {
        "authorHandle": "alex_rivera",
        "authorImage": "https://example.com/image.jpg",
        "authorName": "Alex Rivera",
        "authorUserId": "Alex Rivera",
        "authorVerified": true,
        "caption": "A short example description of this item.",
        "comments": 12500,
        "createdUtc": 12.5,
        "durationSeconds": 12.5,
        "expiresUtc": 12.5,
        "id": "a1b2c3d4",
        "image": "https://example.com/image.jpg",
        "imageUrls": [
          "https://example.com/image.jpg"
        ],
        "likes": 12500,
        "photos": [
          {
            "height": 42,
            "url": "https://example.com/page",
            "width": 1024
          }
        ],
        "reposts": 248,
        "saves": 42,
        "shares": 13,
        "soundAuthor": "Alex Rivera",
        "soundClipId": "a1b2c3d4",
        "soundTitle": "Example title",
        "soundUrl": "https://example.com/page",
        "url": "https://example.com/page",
        "videoUrl": "https://example.com/page",
        "views": 12500
      }
    ],
    "totalCount": 12500
  },
  "found": true,
  "reason": "not_found"
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-12-03 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • handlestring

    jasonderulo

    TikTok username, without the @ (e.g. "jasonderulo").

  • requireFieldsarray

    Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `expiresUtc`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a story that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

datadata

Wrapper holding the stories array, or null when there are no active stories.

  • hasMoreboolean

    True when TikTok reports more active stories than the ones returned; they cannot be fetched with another call.

  • totalCountintegerpuò richiedere

    How many active stories TikTok reports for the account, which can exceed the stories returned. Null when this source does not report it.

each storydata.stories[]

The account's active public stories, up to 20, oldest first. Populated whenever the provider has data for the entity.

  • authorHandlestring

    Author's TikTok handle, without the leading @.

  • authorImagestring

    Author's avatar image URL. Signed and short-lived, so keep the query string.

  • authorNamestring

    Author's display name.

  • authorUserIdstring

    Author's numeric TikTok user id.

  • authorVerifiedbooleanpuò richiedere

    Whether the author's account carries a TikTok verification badge. Null when this source does not report it.

  • captionstring

    Caption text; usually empty on stories.

  • commentsinteger

    Comment count.

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • durationSecondsnumber

    Video length in seconds; 0 for a photo story.

  • expiresUtcnumberpuò richiedere

    When the story stops being visible. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Null when this source does not report it.

  • idstring

    Story (video or photo post) id. Populated whenever the provider has data for the entity.

  • imagestring

    Cover image URL. Signed and short-lived, so keep the query string. Populated whenever the provider has data for the entity.

  • imageUrlsstring[]

    Photo URLs for a photo story; empty for a video story. Signed and short-lived.

  • likesinteger

    Like count.

  • repostsintegerpuò richiedere

    Repost count. Null when this source does not report it.

  • savesinteger

    Save (favorite) count.

  • sharesinteger

    Share count.

  • soundAuthorstring

    Credited author of the sound.

  • soundClipIdstring

    Id of the sound the story uses. Pass it to tiktok.song or tiktok.song_videos as clipId.

  • soundTitlestring

    Name of the sound the story uses; null when it has none.

  • soundUrlstring

    Audio file URL of the sound. Signed and short-lived, so keep the query string.

  • urlstring

    The story on tiktok.com. Populated whenever the provider has data for the entity.

  • videoUrlstring

    Playable video URL for a video story; null for a photo story. Signed and short-lived, so keep the query string.

  • viewsinteger

    Play count.

each photodata.stories[].photos[]

The photos of a photo story with their pixel dimensions; empty for a video story. Null when this source does not report dimensions; imageUrls still lists the photos.

  • heightinteger

    Photo height in pixels.

  • urlstring

    Photo URL. Signed and short-lived, so keep the query string.

  • widthinteger

    Photo width in pixels.

top level
  • foundboolean

    True when the account has active public stories; false when it has none right now or the account does not exist. Stories last 24 hours, so the same account can flip between the two.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API TikTok User stories

L'API TikTok User stories di AnyAPI restituisce dati TikTok come JSON normalizzato da una sola chiamata POST a /v1/run/tiktok.user_stories. Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts. AnyAPI instrada ogni richiesta su 2 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 1,10 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate TikTok User stories tramite AnyAPI è riuscito, con un tempo di risposta mediano di 0,8 secondi su 118 chiamate misurate.

Costa da 1,10 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate TikTok User stories tramite AnyAPI è riuscito, con un tempo di risposta mediano di 0,8 secondi su 118 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 90 chiamate TikTok User stories a 0,0011 USD ciascuna.

AnyAPI interroga la successiva delle sue 2 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/tiktok.user_stories con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.