API de plataforma digital: servicio de género
Use el servicio género de solo lectura para ver qué géneros de contenido de vídeo están registrados en el sistema Xandr. Los campos de contenido de vídeo se pueden agregar al elemento de línea o al destino del elemento de línea de negocio.
API de REST
Http (método) | Endpoint | Description |
---|---|---|
GET |
https://api.appnexus.com/video-content-genre |
Para ver todos los géneros definidos |
GET |
https://api.appnexus.com/video-content-genre?id=<id value> |
Para ver un género definido |
Campos JSON
Campo | Tipo | Description |
---|---|---|
id |
Entero | Identificador referencial de Xandr asociado al género |
name |
string | Valor referencial de taxonomía de vídeo Obligatorio activado: POST /PUT |
last_modified |
Timestamp | Hora de la última modificación |
Ejemplo
Para recuperar todos los géneros definidos
curl -b cookies -c cookies "https://api.appnexus.com/video-content-genre"
{
"response": {
"status": "OK",
"start_element": 0,
"num_elements": 100,
"video-content-genres": [
{
"id": 1,
"name": "Horror",
"last_modified": "2020-09-21 13:59:38"
},
{
"id": 2,
"name": "Crime",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 3,
"name": "Game-show",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 4,
"name": "Documentary",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 5,
"name": "Romance",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 6,
"name": "Other-sport",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 7,
"name": "Talk",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 8,
"name": "Drama",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 9,
"name": "Fantasy",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 10,
"name": "Music",
"last_modified": "2020-09-21 13:59:39"
},
{
"id": 11,
"name": "Shopping",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 12,
"name": "Other",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 13,
"name": "Action",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 14,
"name": "Thriller",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 15,
"name": "News",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 17,
"name": "Reality",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 18,
"name": "Comedy",
"last_modified": "2020-09-21 13:59:40"
},
{
"id": 19,
"name": "Business",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 20,
"name": "Cooking",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 21,
"name": "Sitcom",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 22,
"name": "Adventure",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 23,
"name": "Sci-fi",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 25,
"name": "Football",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 26,
"name": "Animation",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 27,
"name": "Baseball",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 28,
"name": "Basketball",
"last_modified": "2020-09-21 13:59:41"
},
{
"id": 29,
"name": "Biography",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 30,
"name": "History",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 31,
"name": "Musical",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 32,
"name": "Mystery",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 33,
"name": "Soccer",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 34,
"name": "War",
"last_modified": "2020-09-21 13:59:42"
},
{
"id": 35,
"name": "Western",
"last_modified": "2020-09-21 13:59:42"
}
],
"count": 33,
"dbg_info": {
"warnings": [],
"version": "1.0.194",
"output_term": "video-content-genres"
}
}
}