Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Toutiao Video Information

Docs da API
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.

Preço
$0.001USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais
100 chamadas grátis / diaAs primeiras 100 chamadas por dia são grátis (compartilhadas por organização) · Reinicia às 00:00 UTC. Depois, pagamento por chamada.

Playground

Entrada
Post ID, can be obtained from the link
SaídaExemplo
Respostaoutputs · 132 B · 10 linhas
[
  {
    "data": {
      "data": null,
      "err_no": 10400,
      "err_tips": "在这个星球中找不到",
      "message": "rpc err"
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da API

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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Toutiao$0.001 por chamadaJSON
Toutiao$0.001 por chamadaJSON
Toutiao$0.001 por chamadaJSON
Toutiao$0.001 por chamadaJSON
Toutiao$0.001 por chamadaJSON
Toutiao$0.071429 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Toutiao Video Information?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/toutiao/app/video-info com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Toutiao Video Information?

$0.001 por chamada. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.

Quais parâmetros a API Toutiao Video Information aceita?

Obrigatórios: group_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Toutiao Video Information retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Toutiao ou de uma chave de API?

Não. Toutiao Video Information funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Toutiao separadamente.