Title: API endpoint not returning data
Last modified: January 10, 2023

---

# API endpoint not returning data

 *  [calypso88](https://wordpress.org/support/users/calypso88/)
 * (@calypso88)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data/)
 * Hi, I’ve exported my live DB and copied it to a staging environment and my local
   environment. I can see the popular posts on my live and local sites but not the
   staging one. When I visit the endpoint “/wp-json/top-10/v1/popular-posts/” on
   the staging site I get an empty page (as opposed to live and local where I get
   data). I can’t figure out what is preventing it on running on my staging environment(
   staging is a LAMP server, live is LEMP, local is on a Mac). Any ideas?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data/#post-16397944)
 * Are you able to see if any errors generated in your error log?
 * Also by any chance does your staging site have endpoints disabled?

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: [3 years, 4 months ago](https://wordpress.org/support/topic/api-endpoint-not-returning-data/#post-16397944)
 * Status: not resolved