API Documentation
Complete reference for our REST API. All endpoints return JSON responses.
Authentication
All API requests require authentication using X-API-KEY Authorization header.
GET
/v1/validate
Validate API Key
Validate api key is valid and can retrieve responses.
Parameters
No parameters required for this endpoint.
Example Request
curl -X POST \
-H "X-API-KEY: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
https://api.cinema-watch.com/v1/validate
Responses
200Successful response
json
{
"success": true
}
401Bad request
json
{
"success": false,
"error": "Unauthorized API Key"
}
Endpoints
GET
/v1/movie/search
Search Movie
Retrieve a list of movies in the system based on search query.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
page | integer | Optional | 1 | Page number for pagination |
limit | integer | Optional | 10 | Number of items per page (max 100) |
search | string | Required | Search term to filter movies |
Example Request
curl -X GET \
-H "X-API-KEY: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
https://api.cinema-watch.com/v1/movie/search
Responses
200Successful response
json
{
"success": true,
"data": [],
"pagination": {
"page": 1,
"limit": 10,
"total": 2
}
}
401Bad request
json
{
"success": false,
"error": "Unauthorized API Key"
}
GET
/v1/tv/search
Search Tv
Retrieve a list of tv shows in the system based on search query.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
page | integer | Optional | 1 | Page number for pagination |
limit | integer | Optional | 10 | Number of items per page (max 100) |
search | string | Required | Search term to filter tv shows |
Example Request
curl -X GET \
-H "X-API-KEY: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
https://api.cinema-watch.com/v1/tv/search
Responses
200Successful response
json
{
"success": true,
"data": [],
"pagination": {
"page": 1,
"limit": 10,
"total": 2
}
}
401Bad request
json
{
"success": false,
"error": "Unauthorized API Key"
}