Content
Retrieve content information by content_id
This method retrieve returns the content information
Method: GET
URL: /api/v3/content/contentId/:id?access_token=
Required Params:
access_token (string)
Response example:
{
"content_id": 811055,
"content_type": "video",
"sharing_url": null,
"name": "new clip",
"pid": 18,
"gid": 7,
"duration": 5000,
"audio": false,
"geoblock": null,
"plays": 3,
"impressions": 4,
"preroll": 2,
"midroll": 0,
"postroll": 0,
"referrer": null,
"created_by": "Genoa Clipping",
"created_at": "2019-09-13 19:22:09",
"transcoder": "Amazon - Elastic Transcoder",
"status": "enabled",
"description": null,
"live_url": null,
"comscore": [],
"tags": [],
"m3u8": "https://api.vodgc.net/player/custom/manifest/publisherId/18/content_id/811055?default_quality=240P",
"qualities": [
{
"quality": "720P",
"thumb": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_720P.jpg",
"preview": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_720P.mp4",
"mp4": "https://vod.vodgc.net/gid7/vod/vodgc/vodgc/28/13878-18-bCW9wb1568413314303_720P.mp4",
"resolution": "1280x720"
},
{
"quality": "240p",
"thumb": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_240p.jpg",
"preview": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_240p.mp4",
"mp4": "https://vod.vodgc.net/gid7/vod/vodgc/vodgc/28/13878-18-bCW9wb1568413314303_240p.mp4",
"resolution": "320x180"
},
{
"quality": "360p",
"thumb": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_360p.jpg",
"preview": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_360p.mp4",
"mp4": "https://vod.vodgc.net/gid7/vod/vodgc/vodgc/28/13878-18-bCW9wb1568413314303_360p.mp4",
"resolution": "640x360"
},
{
"quality": "480P",
"thumb": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_480P.jpg",
"preview": "https://thumbs.vodgc.net/13878-18-bCW9wb1568413314303_480P.mp4",
"mp4": "https://vod.vodgc.net/gid7/vod/vodgc/vodgc/28/13878-18-bCW9wb1568413314303_480P.mp4",
"resolution": "854x480"
}
],
"resolution": "854x480",
"categories": [
13878
]
}
Update content information by content_id
This method update the content information via API
Method: PUT
URL: /api/v3/content/contentId/:id
Complete Example Params Request: (JSON)
{
"access_token" : "8191afae55187f8b1931641bcffbf95910f695836762ead1d5008b6113e7848420171213261133",
"description" : "Test API by JSON",
"name" : "Prueba",
"status" : "enabled",
"tags" : [
{
"name": "test1"
},
{
"name": "test2"
}
],
"comscore" : [
{
"key": "ns_st_st",
"value": "TEST API 2"
}
],
"geoblock": "IT",
"sharing_url": "test123"
}
Response example:
{
"content": {
"comscore": [
{
"key": "ns_st_st",
"value": "TEST API 2"
}
],
"description": "Test API by JSON",
"geoblock": "IT",
"name": "Prueba",
"sharing_url": "test123",
"status": "enabled",
"tags": [
{
"name": "test1"
},
{
"name": "test2"
}
]
},
"message": "Updated info."
}
Update content thumbnail
This method update the thumbnail of the content via API
Method: POST
URL: /api/v3/content/thumb/contentId/:id
Required Params:
access_token (form-data file)
file (form-data file)
Response example:
{
"ContentType": "image/jpeg",
"Filename": "1-44-1-MH82KY1516200439-1561990605.jpg",
"RealFormat": "jpeg",
"Resolution": "5120x2880",
"Size": 16591111,
"Status": "Successfully uploaded"
}
Search Contents By Pid
This method will search items in content by tag, name, description. You can get more items moving the from value. default limit is 50 maximum 100 items per request
Method: GET
URL: /api/v3/content/search
Required Params:
access_token (string required)
pid (int required)
query (string required)
from (int optional)
limit (int optional maximum 100, default 50)
Response example:
[
{
"name": "Video: le robaron 20 mil dólares a una jubilada en San Telmo",
"description": "<p> El testimonio de Carolina, la hija de la víctima.</p>\n",
"content_id": 787789,
"status": "disabled",
"gid": 2,
"group_name": "AGEA",
"publisher_id": 3,
"publisher_name": "Clarin",
"created_at": "2019-08-01T10:42:55Z",
"created_by": "Jpsorroche",
"content_type": "video",
"external_id": "3-245-UV-8Erkah-1nWlDT1564666974277",
"plays": null,
"impressions": null
},
{
"name": "Escalofriante: El momento en que un policía asesina a un afroestadounidense en Mineápolis",
"description": "<p>Una semana después de la muerte de Thurman Blevins en manos de la Policía, se conoció el video que grabó la cámara que llevaba uno de los agentes. Según los efectivos, el hombre de 31 años estaba armado y había hecho disparos al aire, anque hay testigos que desmienten esa versión.</p>\n",
"content_id": 616520,
"status": "disabled",
"gid": 2,
"group_name": "AGEA",
"publisher_id": 3,
"publisher_name": "Clarin",
"created_at": "2018-07-30T13:42:04Z",
"created_by": "0",
"content_type": "video",
"external_id": "3-245-API-S1qh163NX-TC27GD1532968892",
"plays": null,
"impressions": null
}
]
Get Recents Contents By Pid
This method fetch recents items in content by publisher id. You can get more items moving the from value. default limit is 50 maximum 100 items per request
Method: GET
URL: /api/v3/content/recents
Required Params:
access_token (string required)
pid (int required)
from (int optional)
limit (int optional maximum 100, default 50)
Response example:
[
{
"name": "25 años final",
"description": "",
"content_id": 847983,
"status": "enabled",
"gid": 7,
"group_name": "vodgc",
"publisher_id": 18,
"publisher_name": "vodgc",
"created_at": "2019-11-24T22:10:19Z",
"created_by": "Matias Lopez",
"content_type": "video",
"external_id": "18-13890-nm8bvu1574644217834",
"plays": null,
"impressions": null
},
{
"name": "Telenoche en Bariloche",
"description": "",
"content_id": 846493,
"status": "enabled",
"gid": 7,
"group_name": "vodgc",
"publisher_id": 18,
"publisher_name": "vodgc",
"created_at": "2019-11-21T16:37:24Z",
"created_by": "Matias Lopez",
"content_type": "video",
"external_id": "18-13890-2f3jCQ1574365043423",
"plays": 19,
"impressions": 24
}
]
Get Most Played Contents By Pid
This method fetch most played items in content by publisher id.You can get more items moving the from value. default limit is 50 maximum 100 items per request
Method: GET
URL: /api/v3/content/most_played
Required Params:
access_token (string required)
pid (int required)
from (int optional)
limit (int optional maximum 100, default 50)
Response example:
[
{
"name": "gran robot",
"description": "Change the description",
"content_id": 660,
"status": "enabled",
"gid": 7,
"group_name": "vodgc",
"publisher_id": 18,
"publisher_name": "vodgc",
"created_at": "2017-08-03T17:26:20Z",
"created_by": "jonathan brenman",
"content_type": "video",
"external_id": "18-40-1-25T76Q1501791967",
"plays": 500,
"impressions": 550
},
{
"name": "0123456789AABBCCDDEEFFGG_Small",
"description": "Change the description",
"content_id": 629651,
"status": "enabled",
"gid": 7,
"group_name": "vodgc",
"publisher_id": 18,
"publisher_name": "vodgc",
"created_at": "2018-08-28T17:07:28Z",
"created_by": "carlos miranda",
"content_type": "video",
"external_id": "18-446-3-R532141535486840",
"plays": 444,
"impressions": 450
}
]
Change Youtube content URL (youtube id)
This method change the youtube link and thumb in a youtube content
Method: PUT
URL: /api/v3/content/:id/youtube
Required Params: (JSON)
access_token (string required)
yt_id (string required)
Response example:
{
"message": "Updated info."
}
No Comments