Raw schema
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "Words to match in the product name, brand, category, or tags, e.g. \"Coca-Cola Zero\" or \"tofu\".",
"maxLength": 100
},
"brand": {
"type": "string",
"description": "Brand words. PlasticList records have no separate brand field, so this also matches their product name.",
"maxLength": 60
},
"source": {
"type": "string",
"description": "Only commissioned (Laboratory.love-commissioned) or plasticlist_derived records.",
"enum": [
"commissioned",
"plasticlist_derived"
]
},
"category": {
"type": "string",
"description": "Category slug.",
"enum": [
"beverages",
"water",
"fast-food-and-restaurants",
"prepared-meals",
"baby-food-and-formula",
"produce-and-meat",
"milk-and-dairy",
"supplements-and-protein",
"pantry",
"personal-care-and-non-food"
]
},
"tag": {
"type": "string",
"description": "A PlasticList source tag such as \"sodas\" or \"baby_food\".",
"maxLength": 60
},
"analyte": {
"type": "string",
"description": "Analyte abbreviation or name from list_analytes, e.g. DEHP or BPA. Keeps only results where it was measured.",
"maxLength": 60
},
"detected": {
"type": "boolean",
"description": "With analyte: true keeps results where that analyte was detected in at least one sample; false keeps results where it was measured but never detected. Without analyte: any analyte."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
},
"cursor": {
"type": "string",
"description": "next_cursor from a previous call with the same filters.",
"maxLength": 200
},
"sort": {
"type": "string",
"description": "Defaults to relevance when q is given, otherwise tested_on_desc.",
"enum": [
"relevance",
"tested_on_desc",
"tested_on_asc",
"name_asc"
]
}
},
"additionalProperties": false
}