Live View Count API

부분 유료
분류별 anonspyde | 업데이트됨 a month ago | Data
인기

7 / 10

지연 시간

1,411ms

서비스 수준

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
Rate API에 로그인
등급: 5 - 투표: 1