Naar de inhoud
GET /v1/filter

Filter by a nutrient range

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/fruit-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/fruit-api/v1/filter" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fruit-api/v1/filter", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fruit-api/v1/filter");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/fruit-api/v1/filter",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "max": 5,
        "min": 0,
        "count": 16,
        "fruits": [
            {
                "id": 69,
                "name": "Gooseberry",
                "genus": "Ribes",
                "order": "Saxifragales",
                "family": "Grossulariaceae",
                "nutritions": {
                    "fat": 0.6,
                    "sugar": 0,
                    "protein": 0.9,
                    "calories": 44,
                    "carbohydrates": 10
                }
            },
            {
                "id": 95,
                "name": "Horned Melon",
                "genus": "Cucumis",
                "order": "Cucurbitales",
                "family": "Cucurbitaceae",
                "nutritions": {
                    "fat": 1.26,
                    "sugar": 0.5,
                    "protein": 1.78,
                    "calories": 44,
                    "carbohydrates": 7.56
                }
            },
            {
                "id": 84,
                "name": "Avocado",
                "genus": "Persea",
                "order": "Laurales",
                "family": "Lauraceae",
                "nutritions": {
                    "fat": 14.66,
                    "sugar": 0.66,
                    "protein": 2,
                    "calories": 160,
                    "carbohydrates": 8.53
                }
            },
            {
                "id": 44,
                "name": "Lime",
                "genus": "Citrus",
                "order": "Sapindales",
                "family": "Rutaceae",
                "nutritions": {
                    "fat": 0.1,
                    "sugar": 1.7,
                    "protein": 0.3,
                    "calories": 25,
                    "carbohydrates": 8.4
                }
            },
            {
                "id": 26,
                "name": "Lemon",
                "genus": "Citrus",
                "order": "Sapindales",
                "family": "Rutaceae",
                "nutritions": {
                    "fat": 0.3,
                    "sugar": 2.5,
                    "protein": 1.1,
                    "calories": 29,
                    "carbohydrates": 9
                }
            },
            {
                "id": 5,
                "name": "Tomato",
                "genus": "Solanum",
                "order": "Solanales",
                "family": "Solanaceae",
                "nutritions": {
                    "fat": 0.2,
                    "sugar": 2.6,
                    "protein": 0.9,
                    "calories": 74,
                    "carbohydrates": 3.9
                }
            },
            {
                "id": 78,
                "name": "Pitahaya",
                "genus": "Cactaceae",
                "order": "Caryophyllales",
                "family": "Cactaceae",
                "nutritions": {
                    "fat": 0.4,
                    "sugar": 3,
          
…