{
  "data": {
    "id": "3GZlxh9uBqMeouWtY",
    "actId": "Q2Cry45LvEff1ekVp",
    "userId": "IYgBDiXtHOijAaUel",
    "startedAt": "2026-11-25T04:27:39.110Z",
    "finishedAt": "2026-11-25T04:27:50.506Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "stats": {
      "durationMillis": 11313,
      "runTimeSecs": 11.313,
      "computeUnits": 0.01257,
      "imageSizeBytes": 319129600
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "QYo53EZkJk0prePWY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Open Food Facts Brazil Scraper Input\",\n  \"description\": \"Search Brazilian food products from Open Food Facts Brazil by keyword, category, or brand.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to scrape.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"byBarcode\",\n        \"byCategory\",\n        \"byBrand\"\n      ],\n      \"enumTitles\": [\n        \"Search products by keyword\",\n        \"Lookup products by barcode (EAN)\",\n        \"Browse by category\",\n        \"Browse by brand\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query\",\n      \"type\": \"string\",\n      \"description\": \"Free-text search term (mode=search). Examples: 'arroz', 'feijão', 'biscoito', 'iogurte'.\",\n      \"editor\": \"textfield\",\n      \"default\": \"arroz\",\n      \"prefill\": \"arroz\"\n    },\n    \"barcodes\": {\n      \"title\": \"Barcodes / EANs (mode=byBarcode)\",\n      \"type\": \"array\",\n      \"description\": \"List of EAN-13 or EAN-8 barcodes to look up.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"categoryTag\": {\n      \"title\": \"Category tag (mode=byCategory)\",\n      \"type\": \"string\",\n      \"description\": \"Open Food Facts category tag, e.g. 'cereais', 'biscoitos', 'iogurtes', 'sucos', 'massas'. Use lowercase with hyphens.\",\n      \"editor\": \"textfield\"\n    },\n    \"brandName\": {\n      \"title\": \"Brand name (mode=byBrand)\",\n      \"type\": \"string\",\n      \"description\": \"Brand to filter by, e.g. 'Nestlé', 'Sadia', 'Vigor', 'Camil'.\",\n      \"editor\": \"textfield\"\n    },\n    \"nutritionGradeFilter\": {\n      \"title\": \"Nutrition grade filter\",\n      \"type\": \"string\",\n      \"description\": \"Only return products with this Nutri-Score grade or better. 'a' = best, 'e' = worst.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"a\",\n        \"b\",\n        \"c\",\n        \"d\",\n        \"e\"\n      ],\n      \"enumTitles\": [\n        \"No filter\",\n        \"A (best)\",\n        \"B\",\n        \"C\",\n        \"D\",\n        \"E (worst)\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum number of products to return.\",\n      \"minimum\": 1,\n      \"maximum\": 500,\n      \"default\": 50,\n      \"prefill\": 50\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# Open Food Facts Brazil Scraper\n\nPull packaged-food product data for the Brazilian market from [Open Food Facts Brazil](https://br.openfoodfacts.org), the community-maintained, open database covering products sold in Brazil. Search by keyword, browse a category or brand, or look up exact products by EAN barcode — every record carries Nutri-Score, NOVA processing group, Eco-Score, and per-100g nutrition facts where the community has entered them.\n\n## What this actor does\n\n- **Four modes:** `search` (keyword), `byBarcode` (exact EAN-13/EAN-8 lookup), `byCategory`, `byBrand`\n- **Three Open Food Facts scores per product:** Nutri-Score (A–E nutrition grade), NOVA group (1–4 processing level), and Eco-Score (A–E environmental grade)\n- **Full nutrition panel** — calories, fat, saturated fat, carbohydrates, sugars, proteins, salt, and fiber per 100g\n- **Nutri-Score floor filter** — drop products below a chosen grade in any mode\n- **Empty fields are omitted** — a product only carries the facts contributors actually entered for it\n\n## Output per product\n\n- `barcode` — EAN-13/EAN-8\n- `productName` — usually in Portuguese\n- `brand` — primary brand; `brands[]` lists every brand on the label when there's more than one\n- `categories[]` — up to 10 category tags\n- `nutritionGrade` — Nutri-Score, `a` (best) to `e` (worst)\n- `novaGroup` — 1 (minimally processed) to 4 (ultra-processed)\n- `ecoscoreGrade` — Eco-Score, `a` to `e`\n- `calories`, `fat`, `saturatedFat`, `carbohydrates`, `sugars`, `proteins`, `salt`, `fiber` — all per 100g\n- `ingredientsText` — full ingredients list, as entered\n- `allergens[]`, `labels[]` — up to 10 labels (organic, fair-trade, etc.)\n- `quantity`, `packaging`\n- `countries[]` — up to 5 countries where the product is sold\n- `imageUrl` — front-of-pack photo\n- `productUrl` — the product's Open Food Facts page\n- `sourceUrl` — the Open Food Facts endpoint the actor queried for this run\n- `recordType: \"food_product\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` / `byBarcode` / `byCategory` / `byBrand` |\n| `searchQuery` | string | `arroz` | Keyword to search (mode=search) |\n| `barcodes` | array | `[]` | EAN-13/EAN-8 codes to look up (mode=byBarcode) |\n| `categoryTag` | string | – | Category tag, e.g. `cereais`, `biscoitos` (mode=byCategory) |\n| `brandName` | string | – | Brand name, e.g. `Camil`, `Nestlé` (mode=byBrand) |\n| `nutritionGradeFilter` | string | – (none) | Keep only products at this Nutri-Score grade or better |\n| `maxItems` | int | `50` | Hard cap on emitted records (1–500) |\n\n### Example: search for a staple food\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQuery\": \"feijão\",\n  \"maxItems\": 40\n}\n```\n\n### Example: a brand's catalog, A/B grade only\n\n```json\n{\n  \"mode\": \"byBrand\",\n  \"brandName\": \"Camil\",\n  \"nutritionGradeFilter\": \"b\",\n  \"maxItems\": 100\n}\n```\n\n### Example: look up specific barcodes\n\n```json\n{\n  \"mode\": \"byBarcode\",\n  \"barcodes\": [\"7891000055120\", \"7896004001254\"]\n}\n```\n\n## Use cases\n\n- **Nutrition research** — compare Nutri-Score and NOVA processing level across a food category\n- **Private-label benchmarking** — pull every product from a competing Brazilian brand\n- **Barcode enrichment** — attach nutrition facts to an internal product catalog by EAN\n- **Regulatory/labeling audits** — check allergen and label declarations across a brand's range\n- **Sustainability screening** — filter or sort by Eco-Score for a category\n\n## FAQ\n\n**Do I need an account or API key?**\nNo. Open Food Facts is a free, community-maintained database with no registration required.\n\n**Why is a field missing on some products?**\nOpen Food Facts is crowd-sourced — a product only has the fields a contributor filled in. Nothing is guessed or filled with a placeholder; the field is simply left out.\n\n**What does the NOVA group mean?**\nIt's a 1–4 food-processing classification: 1 = unprocessed/minimally processed, 2 = processed culinary ingredients, 3 = processed foods, 4 = ultra-processed foods.\n\n**What language are product names and ingredients in?**\nMostly Portuguese, since this dataset targets products sold in Brazil, though some entries carry English or multilingual text if that's how a contributor entered them.\n\n**Can I combine `nutritionGradeFilter` with keyword search?**\nYes — it applies on top of `search`, `byCategory`, and `byBrand` alike, keeping only products at or above the chosen grade.\n\n**How current is the data?**\nLive at request time. Open Food Facts is edited continuously by its contributor community, so a product's score or nutrition facts can change between runs.\n\n**Is this affiliated with Open Food Facts?**\nNo. This actor reads Open Food Facts' own free public data; it is not affiliated with or endorsed by the Open Food Facts association.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "open-food-facts-brazil-scraper",
      "title": "Open Food Facts Brazil Scraper",
      "description": "Scrape Brazilian food products from Open Food Facts Brazil (br.openfoodfacts.org) — search by name, category, or brand. Returns product names, ingredients, nutrition facts, Nutri-Score, barcodes, packaging, and more. No API key required.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "./Dockerfile",
      "readme": "# Open Food Facts Brazil Scraper\n\nPull packaged-food product data for the Brazilian market from [Open Food Facts Brazil](https://br.openfoodfacts.org), the community-maintained, open database covering products sold in Brazil. Search by keyword, browse a category or brand, or look up exact products by EAN barcode — every record carries Nutri-Score, NOVA processing group, Eco-Score, and per-100g nutrition facts where the community has entered them.\n\n## What this actor does\n\n- **Four modes:** `search` (keyword), `byBarcode` (exact EAN-13/EAN-8 lookup), `byCategory`, `byBrand`\n- **Three Open Food Facts scores per product:** Nutri-Score (A–E nutrition grade), NOVA group (1–4 processing level), and Eco-Score (A–E environmental grade)\n- **Full nutrition panel** — calories, fat, saturated fat, carbohydrates, sugars, proteins, salt, and fiber per 100g\n- **Nutri-Score floor filter** — drop products below a chosen grade in any mode\n- **Empty fields are omitted** — a product only carries the facts contributors actually entered for it\n\n## Output per product\n\n- `barcode` — EAN-13/EAN-8\n- `productName` — usually in Portuguese\n- `brand` — primary brand; `brands[]` lists every brand on the label when there's more than one\n- `categories[]` — up to 10 category tags\n- `nutritionGrade` — Nutri-Score, `a` (best) to `e` (worst)\n- `novaGroup` — 1 (minimally processed) to 4 (ultra-processed)\n- `ecoscoreGrade` — Eco-Score, `a` to `e`\n- `calories`, `fat`, `saturatedFat`, `carbohydrates`, `sugars`, `proteins`, `salt`, `fiber` — all per 100g\n- `ingredientsText` — full ingredients list, as entered\n- `allergens[]`, `labels[]` — up to 10 labels (organic, fair-trade, etc.)\n- `quantity`, `packaging`\n- `countries[]` — up to 5 countries where the product is sold\n- `imageUrl` — front-of-pack photo\n- `productUrl` — the product's Open Food Facts page\n- `sourceUrl` — the Open Food Facts endpoint the actor queried for this run\n- `recordType: \"food_product\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `search` | `search` / `byBarcode` / `byCategory` / `byBrand` |\n| `searchQuery` | string | `arroz` | Keyword to search (mode=search) |\n| `barcodes` | array | `[]` | EAN-13/EAN-8 codes to look up (mode=byBarcode) |\n| `categoryTag` | string | – | Category tag, e.g. `cereais`, `biscoitos` (mode=byCategory) |\n| `brandName` | string | – | Brand name, e.g. `Camil`, `Nestlé` (mode=byBrand) |\n| `nutritionGradeFilter` | string | – (none) | Keep only products at this Nutri-Score grade or better |\n| `maxItems` | int | `50` | Hard cap on emitted records (1–500) |\n\n### Example: search for a staple food\n\n```json\n{\n  \"mode\": \"search\",\n  \"searchQuery\": \"feijão\",\n  \"maxItems\": 40\n}\n```\n\n### Example: a brand's catalog, A/B grade only\n\n```json\n{\n  \"mode\": \"byBrand\",\n  \"brandName\": \"Camil\",\n  \"nutritionGradeFilter\": \"b\",\n  \"maxItems\": 100\n}\n```\n\n### Example: look up specific barcodes\n\n```json\n{\n  \"mode\": \"byBarcode\",\n  \"barcodes\": [\"7891000055120\", \"7896004001254\"]\n}\n```\n\n## Use cases\n\n- **Nutrition research** — compare Nutri-Score and NOVA processing level across a food category\n- **Private-label benchmarking** — pull every product from a competing Brazilian brand\n- **Barcode enrichment** — attach nutrition facts to an internal product catalog by EAN\n- **Regulatory/labeling audits** — check allergen and label declarations across a brand's range\n- **Sustainability screening** — filter or sort by Eco-Score for a category\n\n## FAQ\n\n**Do I need an account or API key?**\nNo. Open Food Facts is a free, community-maintained database with no registration required.\n\n**Why is a field missing on some products?**\nOpen Food Facts is crowd-sourced — a product only has the fields a contributor filled in. Nothing is guessed or filled with a placeholder; the field is simply left out.\n\n**What does the NOVA group mean?**\nIt's a 1–4 food-processing classification: 1 = unprocessed/minimally processed, 2 = processed culinary ingredients, 3 = processed foods, 4 = ultra-processed foods.\n\n**What language are product names and ingredients in?**\nMostly Portuguese, since this dataset targets products sold in Brazil, though some entries carry English or multilingual text if that's how a contributor entered them.\n\n**Can I combine `nutritionGradeFilter` with keyword search?**\nYes — it applies on top of `search`, `byCategory`, and `byBrand` alike, keeping only products at or above the chosen grade.\n\n**How current is the data?**\nLive at request time. Open Food Facts is edited continuously by its contributor community, so a product's score or nutrition facts can change between runs.\n\n**Is this affiliated with Open Food Facts?**\nNo. This actor reads Open Food Facts' own free public data; it is not affiliated with or endorsed by the Open Food Facts association.\n",
      "input": {
        "title": "Open Food Facts Brazil Scraper Input",
        "description": "Search Brazilian food products from Open Food Facts Brazil by keyword, category, or brand.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to scrape.",
            "editor": "select",
            "enum": [
              "search",
              "byBarcode",
              "byCategory",
              "byBrand"
            ],
            "enumTitles": [
              "Search products by keyword",
              "Lookup products by barcode (EAN)",
              "Browse by category",
              "Browse by brand"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text search term (mode=search). Examples: 'arroz', 'feijão', 'biscoito', 'iogurte'.",
            "editor": "textfield",
            "default": "arroz",
            "prefill": "arroz"
          },
          "barcodes": {
            "title": "Barcodes / EANs (mode=byBarcode)",
            "type": "array",
            "description": "List of EAN-13 or EAN-8 barcodes to look up.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "categoryTag": {
            "title": "Category tag (mode=byCategory)",
            "type": "string",
            "description": "Open Food Facts category tag, e.g. 'cereais', 'biscoitos', 'iogurtes', 'sucos', 'massas'. Use lowercase with hyphens.",
            "editor": "textfield"
          },
          "brandName": {
            "title": "Brand name (mode=byBrand)",
            "type": "string",
            "description": "Brand to filter by, e.g. 'Nestlé', 'Sadia', 'Vigor', 'Camil'.",
            "editor": "textfield"
          },
          "nutritionGradeFilter": {
            "title": "Nutrition grade filter",
            "type": "string",
            "description": "Only return products with this Nutri-Score grade or better. 'a' = best, 'e' = worst.",
            "editor": "select",
            "enum": [
              "",
              "a",
              "b",
              "c",
              "d",
              "e"
            ],
            "enumTitles": [
              "No filter",
              "A (best)",
              "B",
              "C",
              "D",
              "E (worst)"
            ],
            "default": "",
            "prefill": ""
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Maximum number of products to return.",
            "minimum": 1,
            "maximum": 500,
            "default": 50,
            "prefill": 50
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Open Food Facts Brazil Scraper Output",
        "description": "Brazilian food products from Open Food Facts Brazil — product names, barcodes, brands, categories, ingredients, nutrition facts, Nutri-Score, and packaging data.",
        "properties": {
          "products": {
            "type": "string",
            "title": "Brazilian Food Products",
            "description": "Dataset containing all scraped food product records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Brazilian Food Products",
              "transformation": {
                "fields": [
                  "barcode",
                  "productName",
                  "brand",
                  "categories",
                  "nutritionGrade",
                  "calories",
                  "productUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.1",
    "imageDigest": "6a4bec1bf546d5e464e367f87fff3bd5a9480ce0b2eeaa79a75be10d19447e9a",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.01257
    }
  }
}