Skip to main content

The API returns zero articles

Next.js, REST API: display articles list

Vitalik May avatar
Written by Vitalik May
Updated over a month ago
  1. Ensure you've connected your blog in Menu -> Connect my Blog. You should see the API key.

  2. Ensure that at least one article has Published status.

  3. Use the Force Sync button in Menu -> Blog Sync Status to synchronize articles.

  4. Check the server/client cache on your app side.

  5. Ensure that the page parameter is zero-based (0 = first page, 1 = second page, etc.), you probably use 1 for the first page:

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

Did this answer your question?