Title: rest API v2 returns empty posts
Last modified: June 27, 2017

---

# rest API v2 returns empty posts

 *  [raulsr](https://wordpress.org/support/users/raulsr/)
 * (@raulsr)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/)
 * Hi,
 * I’m getting an empty result with wp-json/wp/v2/posts but wp-json/wp/v2/users,
   for example, works correctly
 * Posts are published and public, already tried to disable all plugins but I can’t
   find where the problem is.
 * Any clue?
 * Thank you so much
 * Raul

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

 *  [Joshua Clinton](https://wordpress.org/support/users/hostsonny/)
 * (@hostsonny)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9265269)
 * There’s probably some kind of mistake in your code. Could you please show us 
   the part of your code which should get the posts?
 *  Thread Starter [raulsr](https://wordpress.org/support/users/raulsr/)
 * (@raulsr)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9265303)
 * I’m accesing to the URL with a browser:
 * [http://myurl/wp-json/wp/v2/posts](http://myurl/wp-json/wp/v2/posts) returns 
   empty
    [http://myurl/wp-json/wp/v2/users](http://myurl/wp-json/wp/v2/users) returns
   correct data
 *  Thread Starter [raulsr](https://wordpress.org/support/users/raulsr/)
 * (@raulsr)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9266757)
 * The problem appears when Photo Gallery 1.3.46 plugin is activated.
 * Any idea about how to solve it?
 * Thanks
 *  [bl44ck](https://wordpress.org/support/users/bl44ck/)
 * (@bl44ck)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9269829)
 * I am having the same problem and I am not having Photo Gallery plugin.
 * I am running 4.8 version
    -  This reply was modified 8 years, 11 months ago by [bl44ck](https://wordpress.org/support/users/bl44ck/).
 *  [bl44ck](https://wordpress.org/support/users/bl44ck/)
 * (@bl44ck)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9269988)
 * I have figured out that I don’t have any posts, but actually I have only pages.
 * Accessing …/wp-json/wp/v2/pages has shown the required data.

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

The topic ‘rest API v2 returns empty posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [bl44ck](https://wordpress.org/support/users/bl44ck/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/rest-api-v2-returns-empty-posts/#post-9269988)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
