List endpoints return paginated results. Use the page and per_page query parameters:
# Page 1 (default), 20 items
curl "https://api.matcraft.ai/api/v1/materials?elements=O&per_page=20&page=1"
# Page 2
curl "https://api.matcraft.ai/api/v1/materials?elements=O&per_page=20&page=2"The response includes a meta object with pagination info:
{
"meta": {
"total": 85432,
"page": 1,
"per_page": 20,
"took_ms": 45
}
}per_page value is 100total gives the full count of matching materialsFor iterating through all results, loop through pages until page * per_page >= total.