GET /read/tags/$tag/posts

Get a list of posts from a tag.

Resource URL

Type URL and Format
GET https://public-api.wordpress.com/rest/v1.1/read/tags/$tag/posts

Method Parameters

Parameter Type Description
$tag (string) The tag name

Query Parameters

Parameter Type Description
http_envelope (bool)
false:
(default)
true:
Some environments (like in-browser Javascript or Flash) block or divert responses with a non-200 HTTP status code. Setting this parameter will force the HTTP status code to always be 200. The JSON response is wrapped in an "envelope" containing the "real" HTTP status code and headers.
pretty (bool)
false:
(default)
true:
Output pretty JSON
meta (string) Optional. Loads data from the endpoints found in the 'meta' part of the response. Comma-separated list. Example: meta=site,likes
fields (string) Optional. Returns specified fields only. Comma-separated list. Example: fields=ID,title
callback (string) An optional JSONP callback function.
number (int) The number of posts to return. Limit: 40. Default: 10.
page (int) Return the Nth 1-indexed page of posts.
order (string)
DESC:
(default) Return posts in descending order. For dates, that means newest to oldest.
ASC:
Return posts in ascending order. For dates, that means oldest to newest.
after (iso 8601 datetime) Return posts dated after the specified datetime.
before (iso 8601 datetime) Return posts dated before the specified datetime.

Response Parameters

Parameter Type Description
ID (int) The post ID.
site_ID (int) The site ID.
author (object) The author of the post.
date (iso 8601 datetime) The post's creation time.
modified (iso 8601 datetime) The post's most recent update time.
title (html) context dependent.
URL (url) The full permalink URL to the post.
short_URL (url) The wp.me short URL.
content (html) context dependent.
excerpt (html) context dependent.
slug (string) The name (slug) for the post, used in URLs.
guid (string) The GUID for the post.
status (string)
publish:
The post is published.
draft:
The post is saved as a draft.
pending:
The post is pending editorial approval.
private:
The post is published privately
future:
The post is scheduled for future publishing.
trash:
The post is in the trash.
auto-draft:
The post is a placeholder for a new post.
sticky (bool) Is the post sticky?
password (string) The plaintext password protecting the post, or, more likely, the empty string if the post is not password protected.
parent (object|false) A reference to the post's parent, if it has one.
type (string) The post's post_type. Post types besides post, page and revision need to be whitelisted using the rest_api_allowed_post_types filter.
comments_open (bool) Is the post open for comments?
pings_open (bool) Is the post open for pingbacks, trackbacks?
likes_enabled (bool) Is the post open to likes?
sharing_enabled (bool) Should sharing buttons show on this post?
comment_count (int) The number of comments for this post.
like_count (int) The number of likes for this post.
i_like (bool) Does the current user like this post?
is_reblogged (bool) Did the current user reblog this post?
is_following (bool) Is the current user following this blog?
global_ID (string) A unique WordPress.com-wide representation of a post.
featured_image (url) The URL to the featured image for this post if it has one.
post_thumbnail (object) The attachment object for the featured image if it has one.
format (string)
standard:
Standard
aside:
Aside
chat:
Chat
gallery:
Gallery
link:
Link
image:
Image
quote:
Quote
status:
Status
video:
Video
audio:
Audio
geo (object|false)
menu_order (int) (Pages Only) The order pages should appear in.
publicize_URLs (array) Array of Twitter and Facebook URLs published by this post.
tags (object) Hash of tags (keyed by tag name) applied to the post.
categories (object) Hash of categories (keyed by category name) applied to the post.
attachments (object) Hash of post attachments (keyed by attachment ID).
metadata (array) Array of post metadata keys and values. All unprotected meta keys are available by default for read requests. Both unprotected and protected meta keys are available for authenticated requests with access. Protected meta keys can be made available with the rest_api_allowed_public_metadata filter.
meta (object) API result meta data
current_user_can (object) List of permissions. Note, deprecated in favor of `capabilities`
capabilities (object) List of post-specific permissions for the user; publish_post, edit_post, delete_post
date_range (object) date range covered by current results.
number (int) The number of posts brought back by current query.
posts (array) An array of post objects.

Example

cURL

curl 'https://public-api.wordpress.com/rest/v1/read/tags/wordpress/posts/?number=2&pretty=1'

PHP

<?php

$options  = array (
  'http' => 
  array (
    'ignore_errors' => true,
  ),
);

$context  = stream_context_create( $options );
$response = file_get_contents(
  'https://public-api.wordpress.com/rest/v1/read/tags/wordpress/posts/?number=2&pretty=1',
  false,
  $context
);
$response = json_decode( $response );

?>

Response Body

{
    "date_range": {
        "before": "2015-03-27T09:52:31+00:00",
        "after": "2015-03-27T09:42:31+00:00"
    },
    "number": 2,
    "posts": [
        {
            "ID": 250,
            "site_ID": 71455670,
            "author": {
                "ID": 68344269,
                "login": "raviradadia",
                "email": false,
                "name": "raviradadia",
                "nice_name": "raviradadia",
                "URL": "",
                "avatar_URL": "https:\/\/0.gravatar.com\/avatar\/65de80d280ce953e79b6eca801e91f6a?s=96&d=identicon&r=G",
                "profile_URL": "http:\/\/en.gravatar.com\/raviradadia",
                "site_ID": 71455670
            },
            "date": "2015-03-27T09:52:31+00:00",
            "modified": "2015-03-27T09:52:31+00:00",
            "title": "Submit two form by one button and redirect with jQuery Ajax",
            "URL": "https:\/\/raviradadiya.wordpress.com\/2015\/03\/27\/submit-two-form-by-one-button-and-redirect-with-jquery-ajax\/",
            "short_URL": "http:\/\/wp.me\/p4POSO-42",
            "content": "<p>&lt;form id=&#8221;ajaxform_member&#8221; action=&#8221;&#8221; method=&#8221;post&#8221;&gt;<br \/>\n&lt;table class=&#8221;signup-tbl&#8221;&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;mname&#8221;&gt;Name:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;text&#8221; required=&#8221;&#8221; id=&#8221;mname&#8221; name=&#8221;mname&#8221;&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;maddress&#8221;&gt;Address:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;maddress&#8221; id=&#8221;maddress&#8221; required&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;mphone_num&#8221;&gt;Phone Number:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;mphone_num&#8221; id=&#8221;mphone_num&#8221; required&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;memail&#8221;&gt;Email:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;email&#8221; name=&#8221;memail&#8221; id=&#8221;memail&#8221; required&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;muname&#8221;&gt;User Name:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;muname&#8221; id=&#8221;muname&#8221; required&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;&lt;label for=&#8221;mpass&#8221;&gt;Password:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td&gt;&lt;input type=&#8221;password&#8221; name=&#8221;mpass&#8221; id=&#8221;mpass&#8221; required&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<br \/>\n&lt;input\u00a0 class=&#8221;signup-tbl-btn&#8221; id=&#8221;form-ajax-submit&#8221; type=&#8221;submit&#8221; value=&#8221;Membership Register&#8221;\u00a0 name=&#8221;mregister&#8221;&gt;<br \/>\n&lt;p class=&#8221;status&#8221;&gt;&lt;\/p&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p>&lt;form action=&#8221;<a href=\"https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221\" rel=\"nofollow\">https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221<\/a>; method=&#8221;post&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;business&#8221; value=&#8221;raviradadiya.ommune-facilitator@gmail.com&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick-subscriptions&#8221; \/&gt;<br \/>\n&lt;!&#8211; Instant Payment Notification &amp; Return Page Details &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;notify_url&#8221; value=&#8221;<a href=\"http:\/\/localhost\/JobInterviewGuide\/?s2member_paypal_notify=1&#038;#8243\" rel=\"nofollow\">http:\/\/localhost\/JobInterviewGuide\/?s2member_paypal_notify=1&#038;#8243<\/a>; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;cancel_return&#8221; value=&#8221;<a href=\"http:\/\/localhost\/JobInterviewGuide\/&#038;#8221\" rel=\"nofollow\">http:\/\/localhost\/JobInterviewGuide\/&#038;#8221<\/a>; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;return&#8221; value=&#8221;<a href=\"http:\/\/localhost\/JobInterviewGuide\/?s2member_paypal_return=1&#038;#8243\" rel=\"nofollow\">http:\/\/localhost\/JobInterviewGuide\/?s2member_paypal_return=1&#038;#8243<\/a>; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;rm&#8221; value=&#8221;2&#8243; \/&gt;<br \/>\n&lt;!&#8211; Configures Basic Checkout Fields &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;lc&#8221; value=&#8221;&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;no_shipping&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;no_note&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;custom&#8221; value=&#8221;localhost&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;currency_code&#8221; value=&#8221;USD&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;page_style&#8221; value=&#8221;paypal&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;charset&#8221; value=&#8221;utf-8&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;item_name&#8221; value=&#8221;Bronze Member \/ description and pricing details here.&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;item_number&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;!&#8211; Configures s2Member&#8217;s Unique Invoice ID\/Code\u00a0 &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;invoice&#8221; value=&#8221;&lt;?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?&gt;&#8221; \/&gt;<br \/>\n&lt;!&#8211; Identifies\/Updates An Existing User\/Member (when\/if applicable)\u00a0 &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;on0&#8243; value=&#8221;&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?&gt;&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;os0&#8243; value=&#8221;&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?&gt;&#8221; \/&gt;<br \/>\n&lt;!&#8211; Identifies The Customer&#8217;s IP Address For Tracking &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;on1&#8243; value=&#8221;&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?&gt;&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;os1&#8243; value=&#8221;&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?&gt;&#8221; \/&gt;<br \/>\n&lt;!&#8211; Controls Modify Behavior At PayPal Checkout &#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;modify&#8221; value=&#8221;0&#8243; \/&gt;<br \/>\n&lt;!&#8211; Customizes Prices, Payments &amp; Billing Cycle &#8211;&gt;<br \/>\n&lt;!&#8211;&lt;input type=&#8221;hidden&#8221; name=&#8221;amount&#8221; value=&#8221;0.01&#8243; \/&gt;&#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;src&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;srt&#8221; value=&#8221;&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;sra&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;!&#8211;&lt;input type=&#8221;hidden&#8221; name=&#8221;a1&#8243; value=&#8221;0&#8243; \/&gt;&#8211;&gt;<br \/>\n&lt;!&#8211;&lt;input type=&#8221;hidden&#8221; name=&#8221;p1&#8243; value=&#8221;0&#8243; \/&gt;&#8211;&gt;<br \/>\n&lt;!&#8211;&lt;input type=&#8221;hidden&#8221; name=&#8221;t1&#8243; value=&#8221;D&#8221; \/&gt;&#8211;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;a3&#8243; value=&#8221;0.01&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;p3&#8243; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;t3&#8243; value=&#8221;M&#8221; \/&gt;<br \/>\n&lt;!&#8211; Displays The PayPal Image Button &#8211;&gt;<br \/>\n&lt;input class=&#8221;paypal&#8221;\u00a0 type=&#8221;submit&#8221; src=&#8221;<a href=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_xpressCheckout.gif&#038;#8221\" rel=\"nofollow\">https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_xpressCheckout.gif&#038;#8221<\/a>; style=&#8221;width:auto; height:auto; border:0;&#8221; alt=&#8221;PayPal&#8221; \/&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p><strong>ajax.signup.js<\/strong><\/p>\n<p>jQuery(document).ready(function($) {<br \/>\n\/\/ Perform AJAX send mail and create user on form submit<br \/>\n$(&#8216;form#ajaxform_member&#8217;).on(&#8216;submit&#8217;, function(e){<br \/>\n$(&#8216;form#ajaxform_member p.status&#8217;).show().text(ajax_signup_object.loadingmessage);<br \/>\n$.ajax({<br \/>\ntype: &#8216;POST&#8217;,<br \/>\ndataType: &#8216;json&#8217;,<br \/>\nurl: ajax_signup_object.ajaxurl,<br \/>\ndata: {<br \/>\n&#8216;action': &#8216;member&#8217;, \/\/calls wp_ajax_nopriv_ajaxsignup<br \/>\n&#8216;mname': $(&#8216;form#ajaxform_member #mname&#8217;).val(),<br \/>\n&#8216;maddress': $(&#8216;form#ajaxform_member #maddress&#8217;).val(),<br \/>\n&#8216;mphone_num': $(&#8216;form#ajaxform_member #mphone_num&#8217;).val(),<br \/>\n&#8216;memail': $(&#8216;form#ajaxform_member #memail&#8217;).val(),<br \/>\n&#8216;muname': $(&#8216;form#ajaxform_member #muname&#8217;).val(),<br \/>\n&#8216;mpass': $(&#8216;form#ajaxform_member #mpass&#8217;).val(),<br \/>\n},<br \/>\nsuccess: function (response) {<br \/>\n\/\/window.location.href=&#8217;<a href=\"http:\/\/localhost\/JobInterviewGuide\/paypal.php\" rel=\"nofollow\">http:\/\/localhost\/JobInterviewGuide\/paypal.php<\/a>';<br \/>\n}<br \/>\n});<br \/>\ne.preventDefault();<br \/>\n});<br \/>\n$(&#8220;.paypal&#8221;).click(function(){<br \/>\nalert(&#8220;The paragraph was clicked.&#8221;);<br \/>\n$(&#8220;#form-ajax-submit&#8221;).trigger(&#8220;click&#8221;);<br \/>\n\/\/$(&#8220;paypal&#8221;).trigger(&#8220;click&#8221;);<br \/>\n});<br \/>\n});<\/p>\n",
            "excerpt": "<p>&lt;form id=&#8221;ajaxform_member&#8221; action=&#8221;&#8221; method=&#8221;post&#8221;&gt; &lt;table class=&#8221;signup-tbl&#8221;&gt; &lt;tr&gt; &lt;td&gt;&lt;label for=&#8221;mname&#8221;&gt;Name:&lt;\/label&gt;&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;text&#8221; required=&#8221;&#8221; id=&#8221;mname&#8221; name=&#8221;mname&#8221;&gt;&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label for=&#8221;maddress&#8221;&gt;Address:&lt;\/label&gt;&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;maddress&#8221; id=&#8221;maddress&#8221; required&gt;&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label for=&#8221;mphone_num&#8221;&gt;Phone Number:&lt;\/label&gt;&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;mphone_num&#8221; id=&#8221;mphone_num&#8221; required&gt;&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label for=&#8221;memail&#8221;&gt;Email:&lt;\/label&gt;&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;email&#8221; name=&#8221;memail&#8221; id=&#8221;memail&#8221; required&gt;&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label for=&#8221;muname&#8221;&gt;User Name:&lt;\/label&gt;&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;muname&#8221; id=&#8221;muname&#8221; required&gt;&lt;\/td&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;label [&hellip;]<\/p>\n",
            "slug": "submit-two-form-by-one-button-and-redirect-with-jquery-ajax",
            "guid": "https:\/\/raviradadiya.wordpress.com\/?p=250",
            "status": "publish",
            "sticky": false,
            "password": "",
            "parent": false,
            "type": "post",
            "comments_open": true,
            "pings_open": true,
            "likes_enabled": true,
            "sharing_enabled": true,
            "comment_count": 0,
            "like_count": 0,
            "i_like": 0,
            "is_reblogged": 0,
            "is_following": 0,
            "global_ID": "24460f36938e6c319207d20708aeed87",
            "featured_image": "",
            "post_thumbnail": null,
            "format": "standard",
            "geo": false,
            "menu_order": 0,
            "publicize_URLs": [],
            "tags": {
                "form": {
                    "ID": 28955,
                    "name": "form",
                    "slug": "form",
                    "description": "",
                    "post_count": 6,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:form",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:form\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                },
                "paypal": {
                    "ID": 1511,
                    "name": "paypal",
                    "slug": "paypal",
                    "description": "",
                    "post_count": 2,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:paypal",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:paypal\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                }
            },
            "categories": {
                "Ajax": {
                    "ID": 141,
                    "name": "Ajax",
                    "slug": "ajax",
                    "description": "",
                    "post_count": 5,
                    "parent": 0,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:ajax",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:ajax\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                },
                "jQuery": {
                    "ID": 203308,
                    "name": "jQuery",
                    "slug": "jquery",
                    "description": "",
                    "post_count": 8,
                    "parent": 0,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:jquery",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:jquery\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                },
                "Wordpress": {
                    "ID": 33,
                    "name": "Wordpress",
                    "slug": "wordpress",
                    "description": "",
                    "post_count": 50,
                    "parent": 0,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:wordpress",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:wordpress\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                }
            },
            "attachments": {},
            "metadata": [
                {
                    "id": "1208",
                    "key": "geo_public",
                    "value": "0"
                }
            ],
            "meta": {
                "links": {
                    "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/250",
                    "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/250\/help",
                    "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670",
                    "replies": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/250\/replies\/",
                    "likes": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/250\/likes\/"
                }
            },
            "current_user_can": {
                "publish_post": false,
                "delete_post": false,
                "edit_post": false
            },
            "capabilities": {
                "publish_post": false,
                "delete_post": false,
                "edit_post": false
            },
            "pseudo_ID": "24460f36938e6c319207d20708aeed87",
            "is_external": false,
            "site_name": "Impliminted Code",
            "site_URL": "http:\/\/raviradadiya.wordpress.com",
            "site_is_private": false,
            "featured_media": {}
        },
        {
            "ID": 248,
            "site_ID": 71455670,
            "author": {
                "ID": 68344269,
                "login": "raviradadia",
                "email": false,
                "name": "raviradadia",
                "nice_name": "raviradadia",
                "URL": "",
                "avatar_URL": "https:\/\/0.gravatar.com\/avatar\/65de80d280ce953e79b6eca801e91f6a?s=96&d=identicon&r=G",
                "profile_URL": "http:\/\/en.gravatar.com\/raviradadia",
                "site_ID": 71455670
            },
            "date": "2015-03-27T09:42:31+00:00",
            "modified": "2015-03-27T09:42:31+00:00",
            "title": "Simple Paypal Integration",
            "URL": "https:\/\/raviradadiya.wordpress.com\/2015\/03\/27\/simple-paypal-integration\/",
            "short_URL": "http:\/\/wp.me\/p4POSO-40",
            "content": "<p>&lt;?php<br \/>\nif ($_SERVER[&#8220;SERVER_PORT&#8221;] != &#8220;80&#8221;)<br \/>\n{<br \/>\n$pageURL .= &#8220;<a href=\"http:\/\/&#038;#8221\" rel=\"nofollow\">http:\/\/&#038;#8221<\/a>;.$_SERVER[&#8220;SERVER_NAME&#8221;].&#8221;:&#8221;.$_SERVER[&#8220;SERVER_PORT&#8221;].$_SERVER[&#8220;REQUEST_URI&#8221;];<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\n$pageURL .= &#8220;<a href=\"http:\/\/&#038;#8221\" rel=\"nofollow\">http:\/\/&#038;#8221<\/a>;.$_SERVER[&#8220;SERVER_NAME&#8221;].$_SERVER[&#8220;REQUEST_URI&#8221;];<br \/>\n}<br \/>\n?&gt;<br \/>\n&lt;form action=&#8221;<a href=\"https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221\" rel=\"nofollow\">https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221<\/a>; method=&#8221;post&#8221; id=&#8221;point_buy&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;business&#8221; value=&#8221;saloni.ommune-facilitator@gmail.com&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;amount&#8221; id=&#8221;amount&#8221; value=&#8221;100&#8243; &gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;rm&#8221; value=&#8221;2&#8243;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;custom&#8221; value=&#8221;&#8221; id=&#8221;customval&#8221;&gt;<\/p>\n<p>&lt;input type=&#8221;hidden&#8221; name=&#8221;no_shipping&#8221; value=&#8221;0&#8243;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;no_note&#8221; value=&#8221;1&#8243;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;currency_code&#8221; value=&#8221;USD&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;lc&#8221; value=&#8221;AU&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;bn&#8221; value=&#8221;PP-BuyNowBF&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;return&#8221; value=&#8221;&lt;?php echo $pageURL ?&gt;&#8221;&gt;<\/p>\n<p>&lt;br \/&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;Pay with PayPal!&#8221;&gt;<\/p>\n<p>&lt;?php<br \/>\nif(!empty($_POST)){<br \/>\necho &#8220;&lt;pre&gt;&#8221;;<br \/>\nprint_r($_POST); }?&gt;<\/p>\n",
            "excerpt": "<p>&lt;?php if ($_SERVER[&#8220;SERVER_PORT&#8221;] != &#8220;80&#8221;) { $pageURL .= &#8220;<a href=\"http:\/\/&#038;#8221\" rel=\"nofollow\">http:\/\/&#038;#8221<\/a>;.$_SERVER[&#8220;SERVER_NAME&#8221;].&#8221;:&#8221;.$_SERVER[&#8220;SERVER_PORT&#8221;].$_SERVER[&#8220;REQUEST_URI&#8221;]; } else { $pageURL .= &#8220;<a href=\"http:\/\/&#038;#8221\" rel=\"nofollow\">http:\/\/&#038;#8221<\/a>;.$_SERVER[&#8220;SERVER_NAME&#8221;].$_SERVER[&#8220;REQUEST_URI&#8221;]; } ?&gt; &lt;form action=&#8221;<a href=\"https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221\" rel=\"nofollow\">https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr&#038;#8221<\/a>; method=&#8221;post&#8221; id=&#8221;point_buy&#8221;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick&#8221;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;business&#8221; value=&#8221;saloni.ommune-facilitator@gmail.com&#8221;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;amount&#8221; id=&#8221;amount&#8221; value=&#8221;100&#8243; &gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;rm&#8221; value=&#8221;2&#8243;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;custom&#8221; value=&#8221;&#8221; id=&#8221;customval&#8221;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;no_shipping&#8221; value=&#8221;0&#8243;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;no_note&#8221; value=&#8221;1&#8243;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;currency_code&#8221; [&hellip;]<\/p>\n",
            "slug": "simple-paypal-integration",
            "guid": "https:\/\/raviradadiya.wordpress.com\/?p=248",
            "status": "publish",
            "sticky": false,
            "password": "",
            "parent": false,
            "type": "post",
            "comments_open": true,
            "pings_open": true,
            "likes_enabled": true,
            "sharing_enabled": true,
            "comment_count": 0,
            "like_count": 0,
            "i_like": 0,
            "is_reblogged": 0,
            "is_following": 0,
            "global_ID": "88d853a388f863b0422106c7f874db89",
            "featured_image": "",
            "post_thumbnail": null,
            "format": "standard",
            "geo": false,
            "menu_order": 0,
            "publicize_URLs": [],
            "tags": {
                "paypal": {
                    "ID": 1511,
                    "name": "paypal",
                    "slug": "paypal",
                    "description": "",
                    "post_count": 2,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:paypal",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/tags\/slug:paypal\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                }
            },
            "categories": {
                "PHP": {
                    "ID": 458,
                    "name": "PHP",
                    "slug": "php",
                    "description": "",
                    "post_count": 7,
                    "parent": 0,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:php",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:php\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                },
                "Wordpress": {
                    "ID": 33,
                    "name": "Wordpress",
                    "slug": "wordpress",
                    "description": "",
                    "post_count": 50,
                    "parent": 0,
                    "meta": {
                        "links": {
                            "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:wordpress",
                            "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/categories\/slug:wordpress\/help",
                            "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670"
                        }
                    }
                }
            },
            "attachments": {},
            "metadata": [
                {
                    "id": "1196",
                    "key": "geo_public",
                    "value": "0"
                }
            ],
            "meta": {
                "links": {
                    "self": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/248",
                    "help": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/248\/help",
                    "site": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670",
                    "replies": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/248\/replies\/",
                    "likes": "https:\/\/public-api.wordpress.com\/rest\/v1\/sites\/71455670\/posts\/248\/likes\/"
                }
            },
            "current_user_can": {
                "publish_post": false,
                "delete_post": false,
                "edit_post": false
            },
            "capabilities": {
                "publish_post": false,
                "delete_post": false,
                "edit_post": false
            },
            "pseudo_ID": "88d853a388f863b0422106c7f874db89",
            "is_external": false,
            "site_name": "Impliminted Code",
            "site_URL": "http:\/\/raviradadiya.wordpress.com",
            "site_is_private": false,
            "featured_media": {}
        }
    ]
}