SpyREST

Supported by Mashape

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

GET /wp-json/wp/v2/terms/category

Description

Response Fields

Name Type Description
Array
[].id Integer
[].count Integer
[].description String
[].link String
[].name String
[].slug String
[].taxonomy String
[].parent Integer
[]._links.self Array
[]._links.self[].href String
[]._links.collection Array
[]._links.collection[].href String
Write
Preview

Examples

Shows the terms

Shows the terms

Recorded at

2015-11-22 02:10:09 UTC

Try with cURL

Request URL

GET /wp-json/wp/v2/terms/category      

Request Headers

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

Response Headers

transfer-encoding: chunked
x-amz-cf-id: ffC0WzyXDXG9zkUxe-CJnx3B0Sks9mTAEDJu-Yi-trPRhssuTfvjEQ==
via: 1.1 69ecfaf49062e67077b5f6c4aaf1881f.cloudfront.net (CloudFront)
x-cache: Miss from cloudfront
vary: Cookie
x-wp-totalpages: 6
x-wp-total: 52
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)
link: <http://demo.wp-api.org/wp-json/wp/v2/terms/category?page=2>; rel="next"
date: Sun, 22 Nov 2015 02:10:09 GMT
allow: GET
access-control-expose-headers: X-WP-Total, X-WP-TotalPages
access-control-allow-headers: Authorization
connection: close
content-length: 6131
content-type: application/json; charset=UTF-8
      

Response Body

Shortened for readability

[
  {
    "id": 4,
    "count": 1,
    "description": "Sunt distinctio asperiores dolores quae odit necessitatibus dolor dolore quo doloremque nam incidunt molestiae facilis quisquam voluptatem voluptas et voluptas sapiente laudantium fugiat",
    "link": "http://demo.wp-api.org/category/ab-iusto/",
    "name": "Ab iusto",
    "slug": "ab-iusto",
    "taxonomy": "category",
    "parent": 0,
    "_links": {
      "self": [
        {
          "href": "http://demo.wp-api.org/wp-json/wp/v2/terms/category/4"
        }
      ],
      "collection": [
        {
          "href": "http://demo.wp-api.org/wp-json/wp/v2/terms/category"
        }
      ]
    }
  },
  {
    "id": 70,
    "count": 0,
    "description": "Occaecati placeat et dolores tempore unde est laudantium ipsam tempora accusamus culpa sequi aut aut dolore minus pariatur fugit ut ipsa et distinctio minus amet ut id molestiae assumenda aliquam vel qui quibusdam",
    "link": "http://demo.wp-api.org/category/accusantium-nulla-omnis-quos/",
    "name": "Accusantium nulla omnis quos",
    "slug": "accusantium-nulla-omnis-quos",
    "taxonomy": "category",
    "parent": 0,
    "_links": {
      "self": [
        {
          "href": "http://demo.wp-api.org/wp-json/wp/v2/terms/category/70"
        }
      ],
      "collection": [
        {
          "href": "http://demo.wp-api.org/wp-json/wp/v2/terms/category"
        }
      ]
    }
  }
]