Get Brand Models
curl --request GET \
--url https://api.legitmark.com/api/brands/{brand_uuid}/models \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/brands/{brand_uuid}/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/brands/{brand_uuid}/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/brands/{brand_uuid}/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"rc_hit": true,
"rc_key": "models:b1caaf6993d25239c475fa106f03fbee",
"message": "All the models were fetched successfully for this brand.",
"models": [
{
"uuid": "8464ae2d-f98a-410b-99c7-7824dff0138e",
"name": "Air Jordan 1 Low",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
},
{
"uuid": "697aa1c6-bebe-40c6-8594-5f76ddbeac6d",
"name": "Air Jordan 1 Mid",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
},
{
"uuid": "8694d40b-4f00-40ca-ad27-c380b5b3d4f9",
"name": "Air Jordan 1 Retro Low OG",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
}
]
}Taxonomy
Get Brand Models
Get all models within a specific brand.
GET
https://api.legitmark.com
/
api
/
brands
/
{brand_uuid}
/
models
Get Brand Models
curl --request GET \
--url https://api.legitmark.com/api/brands/{brand_uuid}/models \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/brands/{brand_uuid}/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/brands/{brand_uuid}/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/brands/{brand_uuid}/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"rc_hit": true,
"rc_key": "models:b1caaf6993d25239c475fa106f03fbee",
"message": "All the models were fetched successfully for this brand.",
"models": [
{
"uuid": "8464ae2d-f98a-410b-99c7-7824dff0138e",
"name": "Air Jordan 1 Low",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
},
{
"uuid": "697aa1c6-bebe-40c6-8594-5f76ddbeac6d",
"name": "Air Jordan 1 Mid",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
},
{
"uuid": "8694d40b-4f00-40ca-ad27-c380b5b3d4f9",
"name": "Air Jordan 1 Retro Low OG",
"brand": "03e7eb07-5e1e-465d-92a6-228dcaa6b148",
"created-at": "2023-11-12T03:54:22.000Z",
"updated-at": "2023-11-12T03:54:22.000Z"
}
]
}Authorizations
Bearer token authentication. Use your API key in the format: Bearer leo_xxxxxxxx
Path Parameters
Response
200 - application/json
Models retrieved successfully
Example:
true
Example:
"All the models were fetched successfully for this brand."
Indicates if the response was served from cache
Example:
true
Cache key used for this response
Example:
"models:abc123"
⌘I