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

NameTypeRequiredDefaultDescription
pageintegerOptional1Page number for pagination
limitintegerOptional10Number of items per page (max 100)
searchstringRequiredSearch 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

NameTypeRequiredDefaultDescription
pageintegerOptional1Page number for pagination
limitintegerOptional10Number of items per page (max 100)
searchstringRequiredSearch 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"
}