GET

Get Tag By Label


Gets a tag by the provided label.

Sub-labels can also be specified using a /. For example, you can have 'dessert/icecream' and 'dessert/pie' as two different tag labels.

Note: The full URL path following labels/ is counted as 1 label. Adding a / to a label does not create multiple labels. This means that 'dessert/icecream' is a sinlge label.

Permissions
Manage Blog
Read Blog
Read Draft Blog Posts
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/blog/v3/tags/labels/{label=**}

Query Params
labelstringRequired

Tag label.


languagestring

Tag language.

2-or-4-letter language code in IETF BCP 47 language tag format. If omitted, tags in all languages are returned.


fieldsToIncludeArray <string>deprecated - use fieldsets instead

Deprecated. Use fieldsets instead. This parameter will be removed on June 30, 2023.

List of tag fields to be included in the response.


fieldsetsArray <string>

List of additional tag fields to include in the response. For example, use the URL fieldset to retrieve the url field in the response in addition to the tag's base fields. Base fields don’t include any of the supported fieldset values. By default only the tag's base fields are returned.

Response Object
tagTag

Tag info.

Get Tag By Label Example 1
Request
cURL
curl \ 'https://www.wixapis.com/blog/v3/tags/labels/vacation' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "tag": { "id": "6d72a3bb-053c-4de5-a897-5ef6be30b1b0", "label": "vacation", "slug": "vacation", "createdDate": "2021-08-13T08:58:20.145Z", "updatedDate": "2021-08-13T08:58:20.145Z", "publicationCount": 2, "postCount": 1, "language": "en" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?