Warning. This API is no longer supported and will be disabled on Feb 1, 2021.
Coub web API allows you to search among coubs and channels. The API provides several methods to perform search among all the data, among channels or coub data, among coub tags.
This method makes a search among all available data.
Resource endpoint:
GET /api/v2/search
Request parameters:
likes_count
, views_count
, newest
, oldest
, newest_popular
;Request example:
GET /api/v2/search?q=best coub ever&order_by=newest_popular
Response parameters:
The Coub server responses with a JSON that contains following data:
Response example
{
"channels": [channel big JSONs],
"coubs": [coub big JSONs],
"page": 1,
"total_pages": 14,
"per_page": 10
}
This method makes a search among channels data.
Resource endpoint:
GET /api/v2/search/channels
Request parameters:
newest
, followers_count
;Request example:
GET /api/v2/search/channels?q=best coub ever&order_by=newest
Response parameters:
The Coub server responses with a JSON, contains following data:
Response example:
{
"channels": [channel big JSONs],
"page": 1,
"total_pages": 14,
"per_page": 10
}
This method makes a search among coubs data.
Resource endpoint:
GET /api/v2/search/coubs
Request parameters:
likes_count
, views_count
, newest,oldest
, newest_popular
.Request example:
GET /api/v2/search/coubs?q=best coub ever&order_by=likes_count
Response parameters:
The Coub server responses with a JSON, contains following data:
Response example:
{
"coubs": [coub big JSONs],
"page": 1,
"total_pages": 14,
"per_page": 10
}
This method makes a search among tags.
Resource endpoint:
GET /api/v2/tags/search
Request parameters:
Request example:
GET /api/v2/tags/search?title=myTagName
Response parameters:
The Coub server responses with an array of JSONs that contain following fields:
Response example:
[
{
id: 1201,
title: "myTagName",
value: "myTagName"
},
{
id: 25333,
title: "myTagName",
value: "myTagName"
}
]