{
  "openapi": "3.0.1",
  "info": {
    "title": "Nutrada Scraper — Food Ingredient Suppliers & Products",
    "description": "Scrape Nutrada B2B food ingredient suppliers for procurement and private-label sourcing. Export certifications, documents, Incoterms, MOQ, origin, and product SKUs — a Nutrada scraper / API alternative.",
    "version": "0.1",
    "x-build-id": "4u4kfGDlOBfc64tXq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~nutrada-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-nutrada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/crawloop~nutrada-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-nutrada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/crawloop~nutrada-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-nutrada-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Nutrada supplier directory keyword searches (e.g. coconut, whey protein, cacao). Without login the directory returns the first page only (~10 suppliers) and gates further pages behind View More — enable scrapeAllSuppliers or pass supplier URLs for full coverage.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Nutrada URLs to scrape directly: supplier profiles (/suppliers/{slug}), directory (/suppliers?...), ingredient pages (/products/{cat}/{slug}-wholesale), or category pages (/products/{cat}).",
            "items": {
              "type": "string"
            }
          },
          "scrapeAllSuppliers": {
            "title": "Scrape all suppliers (sitemap)",
            "type": "boolean",
            "description": "Discover every public supplier URL from Nutrada company sitemaps (~1.8k) and enrich each profile up to maxItems. Recommended for full-catalog exports (directory search is login-gated after page 1).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many dataset items (listings, suppliers, products, ingredients).",
            "default": 50
          },
          "enrichSuppliers": {
            "title": "Enrich directory listings",
            "type": "boolean",
            "description": "When scraping directory search / filters / ingredient pages, also fetch full supplier profile pages (about, certs, documents, FAQ).",
            "default": true
          },
          "includeProducts": {
            "title": "Include products on supplier records",
            "type": "boolean",
            "description": "Attach the product SKU table as a `products` array on supplier records (first page nested; use emitProductRows for paginated SKU rows).",
            "default": false
          },
          "emitProductRows": {
            "title": "Emit product SKU rows",
            "type": "boolean",
            "description": "Emit each supplier catalog SKU as its own product dataset row (paginated). Charges product-result PPE events.",
            "default": false
          },
          "maxProductPages": {
            "title": "Max product table pages per supplier",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "When emitProductRows is on, paginate supplier product tables up to this many pages (10 SKUs per page).",
            "default": 20
          },
          "sortBy": {
            "title": "Directory sort",
            "enum": [
              "relevance",
              "name_asc",
              "name_desc"
            ],
            "type": "string",
            "description": "Sort order for directory search / filter results.",
            "default": "relevance"
          },
          "companyTypes": {
            "title": "Company types",
            "type": "array",
            "description": "Optional directory filters (IDs): 13 Distributor, 14 Exporter, 15 Farmer, 16 Importer, 17 Manufacturer, 18 Processor, 19 Retailer, 20 Trader, 21 Wholesaler.",
            "items": {
              "type": "string"
            }
          },
          "foodSafety": {
            "title": "Food safety certifications",
            "type": "array",
            "description": "Optional food-safety filter IDs from the Nutrada directory (e.g. 1=BRC, 5=FSSC 22000, 10=IFS, 15=HACCP).",
            "items": {
              "type": "string"
            }
          },
          "services": {
            "title": "Services",
            "type": "array",
            "description": "Optional service filter IDs (e.g. 5=Bulk, 6=Co-Packing, 10=Private Label).",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Supplier countries",
            "type": "array",
            "description": "Optional company_country_of_origin[] filter values (country names as used on Nutrada).",
            "items": {
              "type": "string"
            }
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 0,
            "maximum": 15,
            "type": "number",
            "description": "Pause between HTTP requests on the same session.",
            "default": 0.5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy. Nutrada usually works without a proxy; enable if you hit Cloudflare challenges at volume.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}