Ir al contenido
GET /v1/channel

A channel's profile + recent coubs

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/coub-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/coub-api/v1/channel" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coub-api/v1/channel", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coub-api/v1/channel");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/coub-api/v1/channel",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "coubs": [
            {
                "id": 66973310,
                "url": "https://coub.com/view/13fjp1",
                "tags": [
                    "@travolta"
                ],
                "likes": 543,
                "title": "Where Is Everybody?",
                "views": 18571,
                "images": {
                    "medium": "https://attachments-cdn-s.coub.com/coub_storage/coub/simple/cw_image/b87a4177012/afcd19368695289e5f7b3/1447480709_00013.jpg"
                },
                "channel": {
                    "title": "CoubTeam",
                    "permalink": "coubteam"
                },
                "recoubs": 61,
                "permalink": "13fjp1",
                "created_at": "2018-02-15T10:33:57Z",
                "duration_sec": 3.92
            },
            {
                "id": 66973175,
                "url": "https://coub.com/view/13fjla",
                "tags": [
                    "vr",
                    "coub hq"
                ],
                "likes": 9,
                "title": "piu piu",
                "views": 551,
                "images": {
                    "medium": "https://attachments-cdn-s.coub.com/coub_storage/coub/simple/cw_image/575789ec71f/7ebb9096cd71d9219a990/1515243923_00011.jpg"
                },
                "channel": {
                    "title": "CoubTeam",
                    "permalink": "coubteam"
                },
                "recoubs": 3,
                "permalink": "13fjla",
                "created_at": "2018-02-15T10:30:52Z",
                "duration_sec": 3.36
            },
            {
                "id": 66973169,
                "url": "https://coub.com/view/13fjl4",
                "tags": [
                    "coubhq",
                    "unicycle"
                ],
                "likes": 4,
                "title": "good old wheelie back again",
                "views": 481,
                "images": {
                    "medium": "https://attachments-cdn-s.coub.com/coub_storage/coub/simple/cw_image/ba5c4909d7c/f9cb58fc24827afdf45ef/1512724556_00008.jpg"
                },
                "channel": {
                    "title": "CoubTeam",
                    "permalink": "coubteam"
                },
                "recoubs": 2,
                "permalink": "13fjl4",
                "created_at": "2018-02-15T10:30:43Z",
                "duration_sec": 2.36
            },
            {
                "id": 66973161,
                "url": "https://coub.com/view/13fjkw",
                "tags": [
                    "fuck you",
                    "mr bin",
                    "coubhq",
                    "webcam"
                ],
                "likes": 7,
                "title": "fork you",
                "views": 805,
                "images": {
                    "medium": "https://attachments-cdn-s.coub.com/coub_storage/coub/simple/cw_image/0aa80d8f2ec/537ec00f0d53fde3275c5/15
…