Zur Übersicht

URL-Synopsis

   http://api.golem.de/api/article/meta/article_identifier/?key=developerkey&format=resultformat
   http://api.golem.de/api/article/meta/article_identifier/?key=developerkey
  

Function

Returns the meta information of an article.

Arguments

Name Datatype Meaning Default value
article_identifier Integer The identifier of the article to retrieve the meta data for. Value required
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 meta information of the article, 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 meta data of an article.

Name Datatype Meaning
articleid Integer The article identifier of the article
headline String(60) The headline of the article
subheadline String(90) The sub headline of the article
abstract String The abstract text of the article
date Integer The publishing date of the article as unix timestamp
url String The URL of the article
pages Integer The number of article pages
images Integer The number of an images associated with the article.
leadimg Array Headline image data of the article
    url String URL of the headline image
    width Integer The image width
    height Integer The image height

Error codes

Code Meaning
1 Internal Data access error
32 Article identifier is missing or invalid
33 Article identifier does not refer to an article

Test output with a single resultset as JSON

{"__className":"stdClass","data":{"articleid":123456,"headline":"Lorem ipsum 
dolor sit amet consectetuer sadipscing elitr sed","subheadline":"Lorem ipsum 
dolor sit amet consectetuer sadipscing elitr sed diam nonumy eirmod tempor i
nv","abstracttext":"Lorem ipsum dolor sit amet, consectetuer sadipscing elit
r, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam 
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea r
ebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dol
or sit amet.","date":1234567890,"url":"http://api.golem.de/","pages":1,"lead
img":{"url":"http://www.golem.de/api/img/golemapi_logo.png","height":90,"wid
th":120},"images":5},"success":true}
  

Test output with a single resultset as XML

<?xml version="1.0" encoding="UTF-8"?>
<golemderesult>
<success>1</success>
<data>
<articleid>123456</articleid>
<headline>Lorem ipsum dolor sit amet consectetuer sadipscing elitr sed</headline>
<subheadline>Lorem ipsum dolor sit amet consectetuer sadipscing elitr sed 
diam nonumy eirmod tempor inv</subheadline>
<abstracttext>Lorem ipsum dolor sit amet, consectetuer sadipscing elitr, 
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, 
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet 
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</abstracttext>
<date>1234567890</date>
<url>http://api.golem.de/</url>
<pages>1</pages>
<leadimg>
<url>http://www.golem.de/api/img/golemapi_logo.png</url>
<height>90</height>
<width>120</width>
</leadimg>
<images>5</images>
</data>
</golemderesult>
  


Zur Übersicht