Get the filters
Every value the search endpoints filter by, with how many videos or entries carry it: video categories (with titles and descriptions), models, colours and types; each directory section's filters, categories and sorts; and the move families.
GEThttps://motionvideo.xyz/api/catalog/facets
请求示例
curl -X GET 'https://motionvideo.xyz/api/catalog/facets'响应
200
The filter values.
响应头
Cache-ControlstringBrowsers reuse a response for 5 minutes and shared caches for an hour, then may serve it stale for up to a day while they revalidate.
可选值:
public, max-age=300, s-maxage=3600, stale-while-revalidate=86400
响应正文application/json
videosobject必填显示字段
totalinteger必填creatorsinteger必填How many creators have videos.
categoriesobject[]必填显示字段
idstring必填可选值:
product-uiphonechartsdiagramskinetic-typeshapesparticlescharactersphotosmusiccodecountinteger必填titlestring必填descriptionstring必填urlstringuri必填
modelsobject[]必填显示字段
idstring必填可选值:
Opus 5.5Fable 5Fable 5.1Fable 5.2Fable 5.5Mythos 5Mythos 5.2GPT-6 AstraGemini 4 ArgonGemini 4 CarbonGemini 4 Neoncountinteger必填fullNamestring必填familystring必填
colorsobject[]必填显示字段
idstring必填可选值:
redorangeyellowgreentealbluepurplepinkbrownblackwhitegraycountinteger必填hexstring必填
typesFacetCount[]必填显示字段
idstring必填countinteger必填
sortsstring[]必填可选值:
newestoldest
directoriesobject[]必填显示字段
sectionstring必填可选值:
toolsskillscreativesextrastotalinteger必填filtersFacetCount[]必填显示字段
idstring必填countinteger必填
categoriesFacetCount[]必填显示字段
idstring必填countinteger必填
sortsstring[]必填可选值:
addedstarsupdatednewestoldest
movesobject必填显示字段
totalinteger必填familiesobject[]必填显示字段
idstring必填可选值:
timingtypetransitionsuivectorgenerativecameratexturedatasoundcountinteger必填
示例
{
"videos": {
"total": 0,
"creators": 0,
"categories": [
{
"id": "product-ui",
"count": 0,
"title": "string",
"description": "string",
"url": "http://example.com"
}
],
"models": [
{
"id": "Opus 5.5",
"count": 0,
"fullName": "string",
"family": "string"
}
],
"colors": [
{
"id": "red",
"count": 0,
"hex": "string"
}
],
"types": [
{
"id": "string",
"count": 0
}
],
"sorts": [
"newest"
]
},
"directories": [
{
"section": "tools",
"total": 0,
"filters": [
{
"id": "string",
"count": 0
}
],
"categories": [
{
"id": "string",
"count": 0
}
],
"sorts": [
"added"
]
}
],
"moves": {
"total": 0,
"families": [
{
"id": "timing",
"count": 0
}
]
}
}400
A parameter is unknown or has a value it can't take.
响应正文application/json
errorstring必填可选值:
invalid_parameterparameterstring必填messagestring必填allowedstring[]The values the parameter can take, when it has a fixed set.
示例
{
"error": "invalid_parameter",
"parameter": "string",
"message": "string",
"allowed": [
"string"
]
}