Product tag for labeling and categorizing items with keywords. Tags help with search, filtering, and organization. Tracks tag name, usage statistics, and visual styling.
https://api.mockly.codes/tags?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/tagsGet a collection of tags
/commerce/tags/tags/:idGet a single tag by ID
/commerce/tags/:id/tags/metaGet resource metadata and schema
/commerce/tags/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/tags?q=laptopGET https://api.mockly.codes/tags?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 tags
fetch('https://api.mockly.codes/tags?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/tags?count=10'
)
data = response.json()curl "https://api.mockly.codes/tags?count=10"fetch('https://api.mockly.codes/tags?nocache=true')idintegerUnique identifier for the tag
random_intnamestringTag name or keyword (e.g., sale, new, featured, organic, limited-edition)
wordslugstringURL-friendly version of the tag name for use in web addresses
slugdescriptionstringBrief description explaining what products this tag applies to
sentencecolorstringHex color code or color name for visual tag styling and display
colorusage_countintegerNumber of products currently tagged with this tag
random_intcreated_atstringTimestamp when the tag was created
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request