Warning. This API is no longer supported and will be disabled on Feb 1, 2021.
You can get any user or channel feed via this API.
All methods for getting feeds have same optional request parameters:
The Coub server responses to a request with a JSON that contains following fields:
Response example:
{
page: 1,
total_pages: 1,
per_page: 10,
coubs: [
{
Coub big JSON,
suggestions: [],
position_on_page: 1
}
]
}
The timeline displays user's coubs and coubs from channels he or she follow, in a chronological order.
Resource endpoint:
GET /api/v2/timeline
This endpoint ignores order_by
parameter.
Request example:
GET /api/v2/timeline?page=1&per_page=10
Returns coubs of the specified channel in a chronological order.
Resource endpoint:
GET /api/v2/timeline/channel/:channel_id
This endpoint accepts following order_by
values: likes_count
, views_count
, newest_popular
.
Request example:
GET /api/v2/timeline/channel/55?page=1&per_page=10?order_by=views_count
Displays all coubs tagged with the required tag.
Resource endpoint:
GET /api/v2/timeline/tag/:tag_name
This endpoint accepts following order_by
values: likes_count
, views_count
, newest_popular
, oldest
.
Request example:
GET /api/v2/timeline/tag/1341?page=1&per_page=10?order_by=oldest
Returns coubs which are most popular by now.
Resource endpoint:
GET /api/v2/timeline/hot
This endpoint accepts following order_by
values: likes_count
, views_count
, newest_popular
, oldest
.
Request example:
GET /api/v2/timeline/hot?page=1&per_page=10&order_by=oldest
Returns coubs which are presented in the Explore section.
Resource endpoint:
GET api/v2/timeline/explore/:category_id
This methods returns a timelines of Explore categories; an accepted categories identifiers are following: random
, newest
, coub_of_the_day
This endpoint ignores order_by
parameter.
Request example:
GET api/v2/timeline/explore/coub_of_the_day?page=1&per_page=10
Returns coubs that you liked.
Resource endpoint:
GET /api/v2/timeline/likes
This endpoint ignores order_by
parameter.
Request example:
GET /api/v2/timeline/likes/?page=1&per_page=10