Vous êtes ici:   Sommaire / Outils Pour Les Developpeurs / Content Api / Content Api Documentation

Return structure & values

Response of the Content API

Each response of the Content API is designed to not generate more calls. The returned items are always full.

Except for the Facebook and Soundcloud sources, which are very specific cases, the items returned for a call will always have the same type.

The responses of the GoodBarber Content API are always done in JSON, and have always the same structure :

{
    "generated_in" : "...",
    "items" : [...],
    "next_page" : "...",
    "stat" : "...",
    "title" : "...",
    "url" : "..."
}


1

Keys

NameTypeDescription
generated_inStringGeneration time of the response
itemsArray of ItemsArray of items to be returned
next_pageStringURL of the next_page to call (calculated with the page and per_page args)
statStringStatus of the response ("ok" is everything is fine, "error" otherwise)
titleStringTitle of the source
urlStringURL of the source