Title: Json API fetch selected columns from wp_posts table
Last modified: August 30, 2016

---

# Json API fetch selected columns from wp_posts table

 *  [deepak.ghayal](https://wordpress.org/support/users/deepakghayal/)
 * (@deepakghayal)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/json-api-fetch-selected-columns-from-wp_posts-table/)
 * This plugin is just awesome!
 * I want to fetch only post title, date, guid, content etc. ( [http://example.com/forum/?json=get_recent_posts&dev=1&count=6&status=published](http://example.com/forum/?json=get_recent_posts&dev=1&count=6&status=published)).
   Is it possible to fetch only selected columns or only wp_posts table content.
   Because now it takes lot of time to fetch post and fetching all comment also.
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/json-api-fetch-selected-columns-from-wp_posts-table/#post-6455428)
 * Hi there,
 * Yes that is possible! There’s an `include` argument that lets you narrow which
   information gets included. For example:
 * [http://example.com/forum/?json=get_recent_posts&dev=1&count=6&status=published&include=title,url,content,date](http://example.com/forum/?json=get_recent_posts&dev=1&count=6&status=published&include=title,url,content,date)
 * Hope that helps!
    Dan

Viewing 1 replies (of 1 total)

The topic ‘Json API fetch selected columns from wp_posts table’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/json-api-fetch-selected-columns-from-wp_posts-table/#post-6455428)
 * Status: not resolved