Created
January 15, 2015 20:16
-
-
Save tommymarshall/454d8f74f27b7b80b7b3 to your computer and use it in GitHub Desktop.
wp api json output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ID":1, | |
"title":"Hello world!", | |
"status":"publish", | |
"type":"post", | |
"author":{ | |
"ID":1, | |
"username":"admin", | |
"name":"admin", | |
"first_name":"", | |
"last_name":"", | |
"nickname":"admin", | |
"slug":"admin", | |
"URL":"", | |
"avatar":"http:\/\/2.gravatar.com\/avatar\/2d228c454c0037d90d48a7ada8398aee?s=96", | |
"description":"", | |
"registered":"2015-01-15T20:03:03+00:00", | |
"meta":{ | |
"links":{ | |
"self":"http:\/\/wp-api.dev\/wordpress\/wp-json\/users\/1", | |
"archives":"http:\/\/wp-api.dev\/wordpress\/wp-json\/users\/1\/posts" | |
} | |
} | |
}, | |
"content":"<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!<\/p>\n", | |
"parent":0, | |
"link":"http:\/\/wp-api.dev\/wordpress\/hello-world\/", | |
"date":"2015-01-15T20:03:03+00:00", | |
"modified":"2015-01-15T20:03:03+00:00", | |
"format":"standard", | |
"slug":"hello-world", | |
"guid":"http:\/\/wp-api.dev\/wordpress\/?p=1", | |
"excerpt":"<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!<\/p>\n", | |
"menu_order":0, | |
"comment_status":"open", | |
"ping_status":"open", | |
"sticky":false, | |
"date_tz":"UTC", | |
"date_gmt":"2015-01-15T20:03:03+00:00", | |
"modified_tz":"UTC", | |
"modified_gmt":"2015-01-15T20:03:03+00:00", | |
"meta":{ | |
"links":{ | |
"self":"http:\/\/wp-api.dev\/wordpress\/wp-json\/posts\/1", | |
"author":"http:\/\/wp-api.dev\/wordpress\/wp-json\/users\/1", | |
"collection":"http:\/\/wp-api.dev\/wordpress\/wp-json\/posts", | |
"replies":"http:\/\/wp-api.dev\/wordpress\/wp-json\/posts\/1\/comments", | |
"version-history":"http:\/\/wp-api.dev\/wordpress\/wp-json\/posts\/1\/revisions" | |
} | |
}, | |
"featured_image":null, | |
"terms":{ | |
"category":[ | |
{ | |
"ID":1, | |
"name":"Uncategorized", | |
"slug":"uncategorized", | |
"description":"", | |
"parent":null, | |
"count":1, | |
"link":"http:\/\/wp-api.dev\/wordpress\/category\/uncategorized\/", | |
"meta":{ | |
"links":{ | |
"collection":"http:\/\/wp-api.dev\/wordpress\/wp-json\/taxonomies\/category\/terms", | |
"self":"http:\/\/wp-api.dev\/wordpress\/wp-json\/taxonomies\/category\/terms\/1" | |
} | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment