cURL
curl --request GET \
--url https://daffodil-staging.getmeadow.com/api/v1/products/tags \
--header 'X-Client-Key: <api-key>' \
--header 'X-Consumer-Key: <api-key>'import requests
url = "https://daffodil-staging.getmeadow.com/api/v1/products/tags"
headers = {
"X-Consumer-Key": "<api-key>",
"X-Client-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Consumer-Key': '<api-key>', 'X-Client-Key': '<api-key>'}
};
fetch('https://daffodil-staging.getmeadow.com/api/v1/products/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://daffodil-staging.getmeadow.com/api/v1/products/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Client-Key: <api-key>",
"X-Consumer-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://daffodil-staging.getmeadow.com/api/v1/products/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Consumer-Key", "<api-key>")
req.Header.Add("X-Client-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://daffodil-staging.getmeadow.com/api/v1/products/tags")
.header("X-Consumer-Key", "<api-key>")
.header("X-Client-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://daffodil-staging.getmeadow.com/api/v1/products/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Consumer-Key"] = '<api-key>'
request["X-Client-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 8,
"name": "Top shelf",
"description": "Only the dankest nugs get this designation",
"productIds": [
86,
123,
126,
224,
675,
9543,
9748
]
},
{
"id": 9,
"name": "Monday Deals",
"description": null,
"productIds": [
9839
]
},
{
"id": 10,
"name": "Tuesday Deals",
"description": null,
"productIds": [
9594,
9845
]
},
{
"id": 23,
"name": "Indoor",
"description": null,
"productIds": null
}
]
}{
"error": {
"message": "A description of the error code",
"code": "CODE_OF_ERROR_WILL_BE_HERE"
}
}Endpoints: Menu
List tags
Fetch all of the product tags for an organziation
GET
/
api
/
v1
/
products
/
tags
cURL
curl --request GET \
--url https://daffodil-staging.getmeadow.com/api/v1/products/tags \
--header 'X-Client-Key: <api-key>' \
--header 'X-Consumer-Key: <api-key>'import requests
url = "https://daffodil-staging.getmeadow.com/api/v1/products/tags"
headers = {
"X-Consumer-Key": "<api-key>",
"X-Client-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Consumer-Key': '<api-key>', 'X-Client-Key': '<api-key>'}
};
fetch('https://daffodil-staging.getmeadow.com/api/v1/products/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://daffodil-staging.getmeadow.com/api/v1/products/tags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Client-Key: <api-key>",
"X-Consumer-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://daffodil-staging.getmeadow.com/api/v1/products/tags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Consumer-Key", "<api-key>")
req.Header.Add("X-Client-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://daffodil-staging.getmeadow.com/api/v1/products/tags")
.header("X-Consumer-Key", "<api-key>")
.header("X-Client-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://daffodil-staging.getmeadow.com/api/v1/products/tags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Consumer-Key"] = '<api-key>'
request["X-Client-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 8,
"name": "Top shelf",
"description": "Only the dankest nugs get this designation",
"productIds": [
86,
123,
126,
224,
675,
9543,
9748
]
},
{
"id": 9,
"name": "Monday Deals",
"description": null,
"productIds": [
9839
]
},
{
"id": 10,
"name": "Tuesday Deals",
"description": null,
"productIds": [
9594,
9845
]
},
{
"id": 23,
"name": "Indoor",
"description": null,
"productIds": null
}
]
}{
"error": {
"message": "A description of the error code",
"code": "CODE_OF_ERROR_WILL_BE_HERE"
}
}This endpoint needs to be retrieved using
Example URL:
daffodil.getmeadow.com or daffodil-staging.getmeadow.com (staging sandbox) instead of the api subdomain.Example URL:
https://daffodil.getmeadow.com/api/v1/products/tagsThis endpoint will return all tags. No pagination is necessary
Authorizations
The key assigned to your company and provided via Meadow
The key generated and provided by our mutual client
Response
Tags response
The name of the tag
The description of the tag
An array of IDs that will correspond to the id property of each product from the Retrieve Menu endpoint. This value can be null if it does not have any products associated with it.
⌘I

