Video Views

Video Views API Endpoint

Endpoint

GET /api/v/{slug}/views

Description

Returns the view count for a specific video. This is a public endpoint that does not require authentication.

Parameters

Parameter
Type
Location
Description

slug

string

URL path

The unique video identifier

Example

curl https://app.vidzflow.com/api/v/abc123/views

Response

A successful response will include the video slug and the number of views:

{
  "slug": "abc123",
  "views": 1542
}

Error Responses

  • 404 Not Found: Returned when the video is not found.

  • 429 Too Many Requests: Returned when exceeding the rate limit.

Rate Limiting

  • 600 requests per minute per IP address.

  • Exceeding the limit returns a 429 Too Many Requests response.

Caching

Responses are cached for 60 seconds. View counts may not reflect real-time data.

Last updated