GET /sites/$site/taxonomies/$taxonomy/terms/slug:$slug
Get information about a single term.
Resource Information
Method | GET |
---|---|
URL | https://public-api.wordpress.com/rest/v1.1/sites/$site/taxonomies/$taxonomy/terms/slug:$slug |
Requires authentication? | No |
Method Parameters
Parameter | Type | Description |
---|---|---|
$site | (int|string) | Site ID or domain |
$taxonomy | (string) | Taxonomy |
$slug | (string) | Term slug |
Query Parameters
Parameter | Type | Description |
---|---|---|
context | (string) |
|
http_envelope | (bool) |
|
pretty | (bool) |
|
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. |
Response Parameters
Parameter | Type | Description |
---|---|---|
ID | (int) | The term ID. |
name | (string) | The name of the term. |
slug | (string) | The slug of the term. |
description | (string) | The description of the term. |
post_count | (int) | The number of posts using this term. |
parent | (int) | The parent ID for the term, if hierarchical. |
Resource Errors
This endpoint does not return any errors.