Live View Count API

FREEMIUM
Door anonspyde | Bijgewerkt 2 months ago | Data
Populariteit

0 / 10

Latency

2,276ms

Serviceniveau

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"
}
Volgers: 0
API maker:
A
anonspyde
anonspyde
Log in om API te beoordelen
Beoordeling: 5 - Stemmen: 1