{"id":29235,"date":"2015-10-30T15:14:53","date_gmt":"2015-10-30T09:44:53","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=29235"},"modified":"2016-01-19T13:28:40","modified_gmt":"2016-01-19T07:58:40","slug":"wordpress-to-json-api","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/","title":{"rendered":"WordPress to JSON Api"},"content":{"rendered":"<p>There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs.<\/p>\n<p>As a solution to this problem there is good plugin called WordPress REST Api plugin. It makes the task of conversion the wordpress data to json very easily. You can find the plugin at :<\/p>\n<p>https:\/\/wordpress.org\/plugins\/json-rest-api\/<\/p>\n<p>This plugin provides an easy to use REST API, available via HTTP. Grab your site&#8217;s data in simple JSON format, including users, posts, taxonomies and more. Retrieving or updating data is as simple as sending a HTTP request.<\/p>\n<p><strong>Steps for JSON Parsing from WordPress<\/strong><\/p>\n<ol>\n<li>\u00a0Download and Install the JSON API Plugin to your WordPress\u00a0site (Copy the plugin into plugins folder for offline users).<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29289\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/addPlugin.png\" alt=\"addPlugin\" width=\"1285\" height=\"687\" \/><\/p>\n<p>2.\u00a0Go to JSON API Settings:<br \/>\nSettings =&gt; JSON API<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29290\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/settingJSON.png\" alt=\"settingJSON\" width=\"1288\" height=\"721\" \/><\/p>\n<p>3.\u00a0Methods in JSON API :<\/p>\n<ul>\n<li>Core<\/li>\n<li>Widget<\/li>\n<li>Respond<\/li>\n<li>Post<\/li>\n<\/ul>\n<p>4.\u00a0Create Base API Url :<\/p>\n<p>You can find the base API url at the bottom of settings page Named as <strong>API BASE <\/strong>you can even change it as per requirement.<\/p>\n<p>5.\u00a0Call GET\u00a0API Methods<\/p>\n<p>http:\/\/&lt;BASE URL&gt;\/&lt;method name&gt;\/<\/p>\n<p>6.\u00a0Call POST API Methods<\/p>\n<ul>\n<li>Get nonce\n<ul>\n<li>http:\/\/&lt;BASE URL&gt;\/get_nonce\/?controller=posts&amp;method=&lt;method name&gt;<\/li>\n<\/ul>\n<\/li>\n<li>Use nonce in method calling\n<ul>\n<li>http:\/\/&lt;BASE URL&gt;\/create_post\/?nonce=46c26394d6&amp;title=mypost2&amp;status=publish<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Note: Parameters can be added as per post structure<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called WordPress REST Api plugin. It makes the task of [&hellip;]<\/p>\n","protected":false},"author":302,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":16,"footnotes":""},"categories":[518,1400,1772],"tags":[2710,2709],"class_list":["post-29235","post","type-post","status-publish","format-standard","hentry","category-android","category-ios","category-mobility","tag-wordpress-json","tag-wordpress-rest-api"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ankit Kumar Jain\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"WordPress to JSON Api | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"WordPress to JSON Api | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#article\",\"name\":\"WordPress to JSON Api | TO THE NEW Blog\",\"headline\":\"WordPress to JSON Api\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2015\\\/10\\\/addPlugin.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#articleImage\"},\"datePublished\":\"2015-10-30T15:14:53+05:30\",\"dateModified\":\"2016-01-19T13:28:40+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#webpage\"},\"articleSection\":\"Android, iOS, Mobility, wordpress JSON, wordpress rest API\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"position\":2,\"name\":\"Android\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#listItem\",\"name\":\"WordPress to JSON Api\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#listItem\",\"position\":3,\"name\":\"WordPress to JSON Api\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/android\\\/#listItem\",\"name\":\"Android\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/\",\"name\":\"Ankit Kumar Jain\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/29eb82b2-1e10-4559-910a-99810d2cd441_ankit.jain@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Ankit Kumar Jain\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/\",\"name\":\"WordPress to JSON Api | TO THE NEW Blog\",\"description\":\"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/wordpress-to-json-api\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"datePublished\":\"2015-10-30T15:14:53+05:30\",\"dateModified\":\"2016-01-19T13:28:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WordPress to JSON Api | TO THE NEW Blog","description":"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of","canonical_url":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#article","name":"WordPress to JSON Api | TO THE NEW Blog","headline":"WordPress to JSON Api","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/ankit\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/addPlugin.png","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#articleImage"},"datePublished":"2015-10-30T15:14:53+05:30","dateModified":"2016-01-19T13:28:40+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#webpage"},"articleSection":"Android, iOS, Mobility, wordpress JSON, wordpress rest API"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/android\/#listItem","name":"Android"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/android\/#listItem","position":2,"name":"Android","item":"https:\/\/2thenew.today\/blog\/category\/android\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#listItem","name":"WordPress to JSON Api"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#listItem","position":3,"name":"WordPress to JSON Api","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/android\/#listItem","name":"Android"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/ankit\/#author","url":"https:\/\/2thenew.today\/blog\/author\/ankit\/","name":"Ankit Kumar Jain","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/29eb82b2-1e10-4559-910a-99810d2cd441_ankit.jain@tothenew.com.jpg","width":96,"height":96,"caption":"Ankit Kumar Jain"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#webpage","url":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/","name":"WordPress to JSON Api | TO THE NEW Blog","description":"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/ankit\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/ankit\/#author"},"datePublished":"2015-10-30T15:14:53+05:30","dateModified":"2016-01-19T13:28:40+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"WordPress to JSON Api | TO THE NEW Blog","og:description":"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of","og:url":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"WordPress to JSON Api | TO THE NEW Blog","twitter:description":"There are many websites which are currently running on wordpress. What if those websites need there data to use for mobile application. It is very tedious task to use the wordpress data for REST APIs. As a solution to this problem there is good plugin called Wordpress REST Api plugin. It makes the task of","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"29235","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 13:42:57","updated":"2024-02-29 08:49:13","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/android\/\" title=\"Android\">Android<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWordPress to JSON Api\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Android","link":"https:\/\/2thenew.today\/blog\/category\/android\/"},{"label":"WordPress to JSON Api","link":"https:\/\/2thenew.today\/blog\/wordpress-to-json-api\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/29235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/302"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=29235"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/29235\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=29235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=29235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=29235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}