Zur Übersicht

URL-Synopsis

   http://api.golem.de/api/video/latest/limit/?key=developerkey&format=resultformat
   http://api.golem.de/api/video/latest/?key=developerkey
  

Function

Returns a list of limit latest videos

Arguments

Name Datatype Meaning Default value
limit Integer The number of top videos to fetch. The limit must be between 1 and 50. 10
developerkey String A valid developer key Value required
resultformat String The format of the result set (Allowed values: json or xml) json

Returns

The result data is encoded in UTF-8.

Name Datatype Meaning
success Boolean Indicates, wether the request could be successfully handle (true) or not (false).
data Array The list of videos, if the request was sucessful
errorCode Integer The error code, if the request was not successful
errorMessage String The error message, if the request was not successful

Data Array

The data represents the list of videos. Each video is represented by a single record. Each record consists of:

Name Datatype Meaning
videoid Integer The video identifier of the article
title String(255) The title of the video
url String The URL of the video

Error codes

Code Meaning
1 Internal Data access error
102 Limit was not provided, or is outside the range

Test output with the single resultset as JSON

{"__className":"stdClass","data":[{"videoid":1,"url":"http://api.golem.de/","ti
tle":"Lorem ipsum dolor sit amet, consectetuer sadipscing elitr, sed diam nonum
y eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam volu
ptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd 
gubergren, no sea takima"}],"success":true}
  

Test output with the resultset as XML

<?xml version="1.0" encoding="UTF-8"?>
<golemderesult>
<success>1</success>
<data>
<record>
<videoid>1</videoid>
<url>http://api.golem.de/</url>
<title>Lorem ipsum dolor sit amet, consectetuer sadipscing elitr, sed diam nonu
my eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam vol
uptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
 gubergren, no sea takima</title>
</record>
</data>
</golemderesult>
  


Zur Übersicht