Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Toutiao Video Information

API-Dokumentation
https://api.sandbase.ai/v1/api/toutiao/app/video-info

Returns detailed information for a specified Toutiao video using its post identifier. Useful for retrieving metadata and content status from Toutiao posts.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional
100 kostenlose Aufrufe / TagDie ersten 100 Aufrufe pro Tag kostenlos (organisationsweit geteilt) · Zurücksetzung um 00:00 UTC. Danach Abrechnung pro Aufruf.

Playground

Eingabe
Post ID, can be obtained from the link
AusgabeBeispiel
Antwortoutputs · 132 B · 10 Zeilen
[
  {
    "data": {
      "data": null,
      "err_no": 10400,
      "err_tips": "在这个星球中找不到",
      "message": "rpc err"
    }
  }
]

Beispiele

Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.

API-README

Toutiao Video Information API

Returns information for one Toutiao video post. You send the post ID as group_id. The response holds a data object for the video, plus an error code and message.

Use cases

  • Check whether a Toutiao video link still resolves to a post.
  • Pull video metadata for a post ID taken from a Toutiao link.
  • Validate a list of group_id values before you call comment or article APIs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/video-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group_id": "7431543350882206242"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
group_idstringYesPost ID, can be obtained from the link

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": null,
  "err_no": 10400,
  "err_tips": "在这个星球中找不到",
  "message": "rpc err"
}

Response fields

FieldMeaning
dataHolds the video information when the lookup works. It is null when the post is not found, as in the sample call for 7431543350882206242.
err_noNumeric error code. The sample call returned 10400, which came with data set to null.
err_tipsShort error text for the failed lookup. The sample call returned 在这个星球中找不到.
messageStatus message for the call. The sample call returned rpc err.

Notes

  • Take group_id from the Toutiao video link. It is a long numeric string, for example 7431543350882206242.
  • Check err_no and whether data is null before you read any video fields.
  • To read comments on the same post, call Toutiao Post Comments.
  • If this lookup fails, try Toutiao Specified Video Details with the same post.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Toutiao$0.001 pro AufrufJSON
Toutiao$0.001 pro AufrufJSON
Toutiao$0.001 pro AufrufJSON
Toutiao$0.001 pro AufrufJSON
Toutiao$0.001 pro AufrufJSON
Toutiao$0.071429 pro AufrufJSON

Fragen

FAQ

Wie verwende ich die Toutiao Video Information API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/toutiao/app/video-info mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Toutiao Video Information API?

$0.001 pro Aufruf. Jede Organisation erhält 100 kostenlose Aufrufe pro UTC-Tag, gemeinsam über alle berechtigten SandBase APIs einschließlich dieser hier; danach wird jeder Aufruf zu diesem Preis von Ihrem SandBase-Guthaben abgerechnet. Es gibt kein Abo.

Welche Parameter akzeptiert die Toutiao Video Information API?

Erforderlich: group_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Toutiao Video Information API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Toutiao-Entwicklerkonto oder einen API-Schlüssel?

Nein. Toutiao Video Information läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Toutiao API beantragen.