SpyREST

Supported by Mashape

Home » demo.wp-api.org Versions » v2 Resources » types » GET /wp-json/wp/v2/types

GET /wp-json/wp/v2/types

Description

Response Fields

Name Type Description
post.description String
post.hierarchical Boolean
post.labels.name String
post.labels.singular_name String
post.labels.add_new String
post.labels.add_new_item String
post.labels.edit_item String
post.labels.new_item String
post.labels.view_item String
post.labels.search_items String
post.labels.not_found String
post.labels.not_found_in_trash String
post.labels.parent_item_colon
post.labels.all_items String
post.labels.archives String
post.labels.insert_into_item String
post.labels.uploaded_to_this_item String
post.labels.featured_image String
post.labels.set_featured_image String
post.labels.remove_featured_image String
post.labels.use_featured_image String
post.labels.filter_items_list String
post.labels.items_list_navigation String
post.labels.items_list String
post.labels.menu_name String
post.labels.name_admin_bar String
post.name String
post.slug String
page.description String
page.hierarchical Boolean
page.labels.name String
page.labels.singular_name String
page.labels.add_new String
page.labels.add_new_item String
page.labels.edit_item String
page.labels.new_item String
page.labels.view_item String
page.labels.search_items String
page.labels.not_found String
page.labels.not_found_in_trash String
page.labels.parent_item_colon String
page.labels.all_items String
page.labels.archives String
page.labels.insert_into_item String
page.labels.uploaded_to_this_item String
page.labels.featured_image String
page.labels.set_featured_image String
page.labels.remove_featured_image String
page.labels.use_featured_image String
page.labels.filter_items_list String
page.labels.items_list_navigation String
page.labels.items_list String
page.labels.menu_name String
page.labels.name_admin_bar String
page.name String
page.slug String
attachment.description String
attachment.hierarchical Boolean
attachment.labels.name String
attachment.labels.singular_name String
attachment.labels.add_new String
attachment.labels.add_new_item String
attachment.labels.edit_item String
attachment.labels.new_item String
attachment.labels.view_item String
attachment.labels.search_items String
attachment.labels.not_found String
attachment.labels.not_found_in_trash String
attachment.labels.parent_item_colon
attachment.labels.all_items String
attachment.labels.archives String
attachment.labels.insert_into_item String
attachment.labels.uploaded_to_this_item String
attachment.labels.featured_image String
attachment.labels.set_featured_image String
attachment.labels.remove_featured_image String
attachment.labels.use_featured_image String
attachment.labels.filter_items_list String
attachment.labels.items_list_navigation String
attachment.labels.items_list String
attachment.labels.menu_name String
attachment.labels.name_admin_bar String
attachment.name String
attachment.slug String
Write
Preview

Examples

Gets a list of post types

Gets a list of post types

Recorded at

2015-11-24 05:05:30 UTC

Try with cURL

Request URL

GET /wp-json/wp/v2/types      

Request Headers

proxy-connection: Keep-Alive
accept: */*
user-agent: curl/7.37.1
      

Response Headers

x-amz-cf-id: 8ukcO7zGyqI8awZVm6wE4_SWjUfQNx8RHDA0evZOOfoMx_sgUgUeuw==
via: 1.1 92395999160e5db472fad7071eb4fc42.cloudfront.net (CloudFront)
x-cache: Hit from cloudfront
vary: Cookie
age: 202
x-powered-by: PHP/5.5.9-1ubuntu4.9
x-ec2-instance-id: i-1789a8bd
x-content-type-options: nosniff
x-cached: EXPIRED
x-batcache: HIT
server: nginx/1.4.6 (Ubuntu)
date: Tue, 24 Nov 2015 05:02:07 GMT
allow: GET
access-control-expose-headers: X-WP-Total, X-WP-TotalPages
access-control-allow-headers: Authorization
connection: close
transfer-encoding: chunked
content-type: application/json; charset=UTF-8
      

Response Body

Shortened for readability

{
  "post": {
    "description": "",
    "hierarchical": false,
    "labels": {
      "name": "Posts",
      "singular_name": "Post",
      "add_new": "Add New",
      "add_new_item": "Add New Post",
      "edit_item": "Edit Post",
      "new_item": "New Post",
      "view_item": "View Post",
      "search_items": "Search Posts",
      "not_found": "No posts found.",
      "not_found_in_trash": "No posts found in Trash.",
      "parent_item_colon": null,
      "all_items": "All Posts",
      "archives": "Post Archives",
      "insert_into_item": "Insert into post",
      "uploaded_to_this_item": "Uploaded to this post",
      "featured_image": "Featured Image",
      "set_featured_image": "Set featured image",
      "remove_featured_image": "Remove featured image",
      "use_featured_image": "Use as featured image",
      "filter_items_list": "Filter posts list",
      "items_list_navigation": "Posts list navigation",
      "items_list": "Posts list",
      "menu_name": "Posts",
      "name_admin_bar": "Post"
    },
    "name": "Posts",
    "slug": "post"
  },
  "page": {
    "description": "",
    "hierarchical": true,
    "labels": {
      "name": "Pages",
      "singular_name": "Page",
      "add_new": "Add New",
      "add_new_item": "Add New Page",
      "edit_item": "Edit Page",
      "new_item": "New Page",
      "view_item": "View Page",
      "search_items": "Search Pages",
      "not_found": "No pages found.",
      "not_found_in_trash": "No pages found in Trash.",
      "parent_item_colon": "Parent Page:",
      "all_items": "All Pages",
      "archives": "Page Archives",
      "insert_into_item": "Insert into page",
      "uploaded_to_this_item": "Uploaded to this page",
      "featured_image": "Featured Image",
      "set_featured_image": "Set featured image",
      "remove_featured_image": "Remove featured image",
      "use_featured_image": "Use as featured image",
      "filter_items_list": "Filter pages list",
      "items_list_navigation": "Pages list navigation",
      "items_list": "Pages list",
      "menu_name": "Pages",
      "name_admin_bar": "Page"
    },
    "name": "Pages",
    "slug": "page"
  },
  "attachment": {
    "description": "",
    "hierarchical": false,
    "labels": {
      "name": "Media",
      "singular_name": "Media",
      "add_new": "Add New",
      "add_new_item": "Add New Post",
      "edit_item": "Edit Media",
      "new_item": "New Post",
      "view_item": "View Attachment Page",
      "search_items": "Search Posts",
      "not_found": "No posts found.",
      "not_found_in_trash": "No posts found in Trash.",
      "parent_item_colon": null,
      "all_items": "Media",
      "archives": "Media",
      "insert_into_item": "Insert into post",
      "uploaded_to_this_item": "Uploaded to this post",
      "featured_image": "Featured Image",
      "set_featured_image": "Set featured image",
      "remove_featured_image": "Remove featured image",
      "use_featured_image": "Use as featured image",
      "filter_items_list": "Filter posts list",
      "items_list_navigation": "Posts list navigation",
      "items_list": "Posts list",
      "menu_name": "Media",
      "name_admin_bar": "Media"
    },
    "name": "Media",
    "slug": "attachment"
  }
}