Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Toutiao Video Information

เอกสาร 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.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
Post ID, can be obtained from the link
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 132 B · 10 บรรทัด
[
  {
    "data": {
      "data": null,
      "err_no": 10400,
      "err_tips": "在这个星球中找不到",
      "message": "rpc err"
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Toutiao$0.001 ต่อการเรียกJSON
Toutiao$0.001 ต่อการเรียกJSON
Toutiao$0.001 ต่อการเรียกJSON
Toutiao$0.001 ต่อการเรียกJSON
Toutiao$0.001 ต่อการเรียกJSON
Toutiao$0.071429 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Toutiao Video Information API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/toutiao/app/video-info โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Toutiao Video Information API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

Toutiao Video Information API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: group_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Toutiao Video Information API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Toutiao ไหม?

ไม่จำเป็น Toutiao Video Information ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Toutiao API แยกต่างหาก