Live View Count API

免费增值
通过 anonspyde | 已更新 a month ago | Data
人气

7.4 / 10

延迟

1,652ms

服务等级

100%

Health Check

N/A

README

Live View Count API

Overview

Welcome to the LiveViewCountAPI! This API provides real-time viewership statistics for YouTube live videos. By supplying the video ID as input, you can retrieve up-to-the-minute data on the number of viewers currently tuned into your live stream.

  • Endpoint

    • POST /snipe
  • Request Body

    • video_id(string, required) - The unique identifier of the YouTube video

image

  • Request
POST https://live-view-count-api.p.rapidapi.com/snipe
Body: { "video_id": "jfKfPfyJRdk" }
  • Response
{
    "watchCount": "13793",
    "streamingFrom": "Started streaming on Jul 12, 2022",
    "title": "lofi hip hop radio 📚 - beats to relax/study to",
    "description": "🎼 | Listen on Spotify, Apple music and more\n→  https://fanlink.to/lofigirl-music\n\n🌎 | Lofi Girl on all social media\n→  https://fanlink.to/lofigirl-social\n\n👕 | Lofi Girl merch\n→  https://bit.ly/Iofigirl-shop\n\n🎭 | Create your lofi avatar now\n→  https://lofigirl.com/generator/\n\n💬 | Join the Lofi Girl community\n→   https://bit.ly/lofigirl-discord\n→   https://bit.ly/lofigirl-reddit\n\n🎶 | Radio tracklist\n→  https://bit.ly/lofi-tracklist\n\n🎨 | Art by Lofi Studio (full list of artists here)\n→  https://www.instagram.com/p/CuChqFXs08M/\n\n📝 | Submit your music / art\n→  https://bit.ly/lofi-submission\n\n🤗 Thank you for listening, I hope you will have a good time here"
}

Error Handling

In the event of an error, the API will return an appropriate HTTP status code along with a JSON response containing an error message.

For example, if the video_id is not currently live streaming:

{
    "message": "Video isn't streaming"
}
  • Response Codes:
    • 200 OK - Successful request, returns live video data.
    • 400 Bad Request - Provide video_id, Video isn’t streaming.

Usage Example

curl --request POST \
	--url https://live-view-count-api.p.rapidapi.com/snipe \
	--header 'X-RapidAPI-Host: live-view-count-api.p.rapidapi.com' \
	--header 'X-RapidAPI-Key: <RAPID_API_KEY>' \
	--header 'content-type: application/json' \
	--data '{
    "video_id": "jfKfPfyJRdk"
}
关注者:0
API 创建者:
A
anonspyde
anonspyde
登录并给 API 打分
打分:5 - 投票:1