Skip to main content

List Tags

GET/api/v1/content/tags

Overview

Returns all tags for the resolved client site, including the number of published posts using each tag. Useful for building tag clouds, filters, and navigation.

Authentication

info

No authentication required - Client is resolved from the X-Content-Domain header, which the Cloudflare Worker sets automatically based on the request domain.

Headers

HeaderTypeRequiredDescription
X-Content-DomainstringYesThe domain used to resolve the client tenant. Automatically set by the CF Worker; set manually for external frontend integrations.

Response

tagsarray

Array of tag objects

tags[].idstring (UUID)

Unique tag identifier

tags[].namestring

Tag display name

tags[].slugstring

URL-friendly slug

tags[].descriptionstring | null

Optional tag description

tags[].post_countinteger

Number of published posts using this tag

totalinteger

Total number of tags

Example Request

curl -s "https://spideriq.ai/api/v1/content/tags" \
-H "X-Content-Domain: your-domain.com"

Example Response

{
"tags": [
{
"id": "tag-001-uuid",
"name": "SEO",
"slug": "seo",
"description": "Search engine optimization tips and tools",
"post_count": 12
},
{
"id": "tag-002-uuid",
"name": "Google Maps",
"slug": "google-maps",
"description": "Extracting data from Google Maps",
"post_count": 8
},
{
"id": "tag-003-uuid",
"name": "Email Verification",
"slug": "email-verification",
"description": null,
"post_count": 5
}
],
"total": 3
}

Status Codes

Status CodeMeaningDescription
200OKTags returned successfully