Sei qui:   Contenuto / Strumenti Per Sviluppatori / Api Di Contenuto / Documentazione Api Di Contenuto

Endpoints List

The Content API endpoints allow you to access the content synced in your GoodBarber backend.

Some sources allow only basic endpoints. To get the precise list of available endpoints for each source, have a look to the list of sources of your app.


1

/getLastItems

The /getLastItems endpoint returns a list of items from the source plugged in the section "section_id", in a reverse chronological order, and using the page and per_page parameters.

Args :
- page_id : the page id of the section connected to the source
page : page to call, calculated using per_page
per_page : number of items to return for this page

Call structure :
/getLastItems/[page_id]/[page]/[per_page]/


2

/getPopularItems

The /getPopularItems endpoint returns a list of items from the source plugged in the section "section_id", in a popularity order, and using the page and per_page parameters.

Args :
page_id : the page id of the section connected to the source
page : page to call, calculated using per_page
per_page : number of items to return for this page

Call structure :
/getPopularItems/[page_id]/[page]/[per_page]/


3

The /search endpoint returns a list of items from the source plugged in the section "section_id", filtered using the keyword arg, and using the page and per_page parameters.

Args :
page_id : the page id of the section connected to the source
keyword : keyword to search (has to be url encoded)
page : page to call, calculated using per_page
per_page : number of items to return for this page

Call structure :
/search/[page_id]/[keyword]/[page]/[per_page]/


4

/getItem

The /getItem endpoint returns the item having the id item_id on the connected source of the page page_id.

Args :
page_id : the page id of the section connected to the source
item_id : id of the item to return

Call structure :
/getItem/[page_id]/[item_id]/


5

/getItemByUrl

The /getItemByUrl endpoint returns the item having the url item_url on the connected source of the page page_id.

Args :
page_id : the page id of the section connected to the source
item_url : URL of the item to return

Call structure :
/getItemByUrl/[page_id]/[item_url]/


6

/getCategories

The /getCategories endpoint returns the list of categories of the connected source of the page page_id, using the page and per_page parameters.

Args :
page_id : the page id of the section connected to the source
page : page to call, calculated using per_page
per_page : number of items to return for this page

Call structure :
/getCategories/[page_id]/[page]/[per_page]/


7

/getItemsByCategorie

The /getItemsByCategorie endpoint returns a list of items from the source plugged in the section "page_id", filtered using the category_id arg, and using the page and per_page parameters.

Arguments :
page_id : the page id of the page connected to the source
category_id : id of the category
page : page to call, calculated using per_page
per_page : number of items to return for this page

Call structure :
/getItemsByCategorie/[page_id]/[category_id]/[page]/[per_page]/