Title: API endpoint not returning data
Last modified: December 11, 2023

---

# API endpoint not returning data

 *  [calypso88](https://wordpress.org/support/users/calypso88/)
 * (@calypso88)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data-2/)
 * Hi, I’ve submitted this before but never saw the reply and gave up. However I
   still have this issue.
 * My live site shows the popular posts without issue. However both my local (mac
   os) and dev/staging environments (LAMP) are not showing any posts. When I visit
   the endpoint “/wp-json/top-10/v1/popular-posts/” on the local/dev/staging sites
   I get an empty page (as opposed to live where I get data). I don’t see anything
   in the error logs and I don’t have endpoints disabled, I get data for this endpoint/
   wp-json/wp/v2/posts/

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data-2/#post-17267018)
 * If I understand correctly, the API works on your live site and not staging/local?
   Could there be anything in there breaking it, e.g. permalinks? Also do other 
   end points work except this one?

Viewing 1 replies (of 1 total)

The topic ‘API endpoint not returning data’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data-2/#post-17267018)
 * Status: not resolved