Skip to main content

List entries by content type

Log in to add to favourites

Lists entries by content type id or by passing an EntryListOptions object as an argument.

list(contentTypeIdOrOptions: string | EntryListOptions): Promise<PagedList<Entry>>

Returns

A Promise that will resolve with a PagedList that contains an array of Entry objects.

Example

JavaScript
client.entries.list({    
    contentTypeId: 'movie',
    versionStatus: 'published',
    language: 'fr-FR',
    order: ['entryTitle'],
    pageOptions: {      
      pageSize: 50
    }    
  })
  .then(result => {      
    console.log('API call result: ', result);              
  })
  .catch(error => {
    console.log('API call fetch error: ', error);      
});

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request