GET

Get Tag By Slug


Gets a tag with the provided slug.

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

Path Params
slugstringRequired

Slug of the tag to retrieve.

Query Params
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.


languagestring

2-or-4-letter language code in IETF BCP 47 language tag format. Language of the tag to retrieve.

Response Object
tagTag

Tag info.

Get Tag By Slug Example 1
Request
cURL
curl \ 'https://www.wixapis.com/blog/v3/tags/slugs/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?