Skip to main content
All CollectionsIntegrationsREST API
The API returns zero articles
The API returns zero articles

Next.js, REST API: display articles list

Vitalik May avatar
Written by Vitalik May
Updated over a week ago

The reasons why the issue may happen:

  1. Ensure you've connected your blog in Menu -> Connect my Blog. You should see the API key.

  2. The server/client cache on your app side.

  3. Page parameter is zero-based (0 = first page, 1 = second page, etc.), but you use 1 for the first page:

const articles = await client.getArticles(page, limit);

Did this answer your question?