The Content API endpoints allow you to access the content synced in your Apollo Apps 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 :
- section_id : the section 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/[section_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 :
- section_id : the section 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/[section_id]/[page]/[per_page]/

3. /search

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 :
- section_id : the section 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/[section_id]/[keyword]/[page]/[per_page]/

4. /getItem

The /getItem endpoint returns the item having the id item_id on the connected source of the section section_id.

Args :
- section_id : the section id of the section connected to the source
- item_id : id of the item to return

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

5. /getItemByUrl

The /getItemByUrl endpoint returns the item having the url item_url on the connected source of the section section_id.

Args :
- section_id : the section id of the section connected to the source
- item_url : URL of the item to return

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

6. /getCategories

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

Args :
- section_id : the section 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/[section_id]/[page]/[per_page]/

7. /getItemsByCategorie

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

Arguments : 

  • section_id : the section id of the section 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/[section_id]/[category_id]/[page]/[per_page]/

Did this answer your question?