API: Collections
Collections
Curated collections of media.
GET List collections
GET
/v1/collections Returns all public collections available for the given country.
Requires
Authorization: Bearer header Parameters
country query required ISO 3166-1 alpha-2 country code
Responses
200 Collections list
400 Missing required parameter
Response schema 200
countrystringrequiredcollectionsobject[]requiredidstringrequirednamestringrequiredslugstringrequireddescriptionstringrequirednullablecountrystringrequirednullablelanguagestringrequirednullable Try it
curl -X GET 'https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections?country=US' \
-H 'Authorization: Bearer YOUR_API_KEY' const res = await fetch('https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections?country=US', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const data = await res.json(); import requests
res = requests.get('https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections?country=US',
headers={'Authorization': 'Bearer YOUR_API_KEY'})
data = res.json() // Example response
{
"country": "string",
"collections": [
{
"id": "string",
"name": "string",
"slug": "string",
"description": "string",
"country": "string",
"language": "string"
}
]
} GET Collection detail
GET
/v1/collections/{slug} Returns a collection with its media items. Supports pagination for large collections.
Requires
Authorization: Bearer header Parameters
slug path required Collection slug
country query required ISO 3166-1 alpha-2 country code
limit query offset query Responses
200 Collection detail
404 Collection not found
Response schema 200
resultsobject[]requiredidstringrequiredslugstringrequiredtitlestringrequiredoriginal_titlestringrequirednullableyearintegerrequirednullablekindmovie | tv_showrequiredposterstringrequirednullablebackdropstringrequirednullablegenresstring[]requiredpopularitynumberrequiredtmdb_ratingnumberrequirednullablepositionintegerrequirednullabletotalintegerrequiredTotal number of items (before pagination)
limitintegerrequiredoffsetintegerrequiredidstringrequirednamestringrequiredslugstringrequireddescriptionstringrequirednullablecountrystringrequirednullablelanguagestringrequirednullable Try it
curl -X GET 'https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections/fresh-blood?country=US&limit=50' \
-H 'Authorization: Bearer YOUR_API_KEY' const res = await fetch('https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections/fresh-blood?country=US&limit=50', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const data = await res.json(); import requests
res = requests.get('https://popcorntime-api-production.wicked-f82.workers.dev/v1/collections/fresh-blood?country=US&limit=50',
headers={'Authorization': 'Bearer YOUR_API_KEY'})
data = res.json() // Example response
null