Title: REST/JSON API not returning results
Last modified: August 24, 2016

---

# REST/JSON API not returning results

 *  Resolved [ned4spd8874](https://wordpress.org/support/users/ned4spd8874/)
 * (@ned4spd8874)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/)
 * I just found out that the REST/JSON API is not working correctly on my site. 
   If you perform a search for the word “Thor”, there are no results. However, if
   you search on my site, there are multiple results. Please help!
 * [https://public-api.wordpress.com/rest/v1.1/sites/aftercredits.com/posts?fields=title&search=thor](https://public-api.wordpress.com/rest/v1.1/sites/aftercredits.com/posts?fields=title&search=thor)
 * [http://aftercredits.com/?s=thor](http://aftercredits.com/?s=thor)
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049638)
 * I seem to get 48 results from the API:
    [http://i.wpne.ws/alAc](http://i.wpne.ws/alAc)
 * Do you still experience issues on your end? Have you managed to solve the issue
   by yourself?
 *  Thread Starter [ned4spd8874](https://wordpress.org/support/users/ned4spd8874/)
 * (@ned4spd8874)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049653)
 * No, the problem persists. As you can see in the results, none of them are for“
   thor”. Yet when you use the search from within the website, there are multiple
   accurate results shown.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049698)
 * I checked the few first posts returned by the API, and they all seem to include“
   thor”:
    - [http://aftercredits.com/2015/03/contest-the-hobbit-the-battle-of-the-five-armies-giveaway/](http://aftercredits.com/2015/03/contest-the-hobbit-the-battle-of-the-five-armies-giveaway/)–
      [http://i.wpne.ws/amC1](http://i.wpne.ws/amC1)
    - [http://aftercredits.com/2015/03/man-from-reno-2014/](http://aftercredits.com/2015/03/man-from-reno-2014/)–
      [http://i.wpne.ws/amRX](http://i.wpne.ws/amRX)
    - [http://aftercredits.com/2015/03/my-name-is-bruce-2007/](http://aftercredits.com/2015/03/my-name-is-bruce-2007/)–
      [http://i.wpne.ws/amWm](http://i.wpne.ws/amWm)
    - [http://aftercredits.com/2015/03/contest-the-hobbit-the-battle-of-the-five-armies-blu-ray-giveaway/](http://aftercredits.com/2015/03/contest-the-hobbit-the-battle-of-the-five-armies-blu-ray-giveaway/)–
      [http://i.wpne.ws/amBX](http://i.wpne.ws/amBX)
 * I hope this helps.
 *  Thread Starter [ned4spd8874](https://wordpress.org/support/users/ned4spd8874/)
 * (@ned4spd8874)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049699)
 * Good point. I didn’t catch that. However that really doesn’t help because the
   posts with the actual word “thor” in the titles aren’t returning when performing
   an api search.
 * A friend built a mobile app to query my site via the api, and has found that 
   when he queried “thor”, there were no relevant results returned.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049700)
 * The API doesn’t include any real search endpoint yet, so I’m afraid that won’t
   be possible.
 * We’re continuously working on adding new endpoints though, so I’d suggest keeping
   an eye on our Developer site:
    [https://developer.wordpress.com/](https://developer.wordpress.com/)
 * We’ll mention it here as soon as we add a search endpoint.
 *  Thread Starter [ned4spd8874](https://wordpress.org/support/users/ned4spd8874/)
 * (@ned4spd8874)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049702)
 * Thanks for the update.
 * The one thing I still don’t understand is why the api search doesn’t at least
   return the thor posts? Not only is thor in the title, but it’s also in the post
   content multiple times. Seems as though those posts should be returned in the
   api search as well.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049715)
 * The posts are there, they just don’t appear at the top like in your site’s search:
   
   [http://i.wpne.ws/amv2](http://i.wpne.ws/amv2) [http://i.wpne.ws/amuZ](http://i.wpne.ws/amuZ)
 * That’s why a proper search endpoint would be way better. We’re working on it!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘REST/JSON API not returning results’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/restjson-api-not-returning-results/#post-6049715)
 * Status: resolved