{
  "openapi": "3.0.1",
  "info": {
    "title": "MonotaRO Scraper | Japan MRO Products & Prices",
    "description": "Extract MonotaRO Japan products, public prices, SKU details, reviews and category or brand data. Export rows as CSV, Excel or JSON; pay per delivered row plus a start fee. Unofficial tool.",
    "version": "0.1",
    "x-build-id": "GNHxHv69ddHn7Epgc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~monotaro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-monotaro-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/lentic_clockss~monotaro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-monotaro-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/lentic_clockss~monotaro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-monotaro-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "category",
              "brand",
              "group",
              "sku",
              "review",
              "categories",
              "catalog",
              "delivery-companies",
              "promos",
              "corporate-leads"
            ],
            "type": "string",
            "description": "Leave on Auto to select a mode from your target fields. Choose categories, catalog, delivery-companies, promos or corporate-leads explicitly to run without a target.",
            "default": "auto"
          },
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Search term for search mode. When searchQueries is also filled, this keyword is added first and duplicates are removed."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "List of search terms. Each query returns up to maxResults rows; a filled keyword is added first and duplicate queries are removed.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "MonotaRO page URLs. In Auto, the first URL selects group (/g/), SKU (/p/), category (/s/c-), brand (/s/b-), review (/review/product/) or search mode; use one page type per run.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Numeric category ID from a /s/c-<id>/ page. Use category index mode to find IDs."
          },
          "brandId": {
            "title": "Brand ID",
            "type": "string",
            "description": "Numeric brand ID from a /s/b-<id>/ page. Selects brand listings on Auto."
          },
          "productCode": {
            "title": "Product group code",
            "type": "string",
            "description": "Product group code, padded to eight digits. Selects group mode on Auto; choose review explicitly for reviews."
          },
          "monotaroNo": {
            "title": "MonotaRO SKU number",
            "type": "string",
            "description": "SKU ordering code from a /p/<4>/<4>/ page. Selects SKU mode on Auto."
          },
          "corporateUrl": {
            "title": "Corporate overview URL",
            "pattern": "^https?://([A-Za-z0-9-]+\\.)*monotaro\\.com(/.*)?$",
            "type": "string",
            "description": "Company overview page for corporate-leads mode. If omitted in that mode, uses https://corp.monotaro.com/overview.html."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum delivered and billed rows per query, URL or scalar target. Default 70; larger requests are collected in parts of up to 70, subject to the maximum run cost and the free-plan cap of 200 total rows.",
            "default": 70
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Starting listing or review page, numbered from 1.",
            "default": 1
          },
          "priceMin": {
            "title": "Minimum price (JPY, excluding tax)",
            "type": "number",
            "description": "Minimum listing price in Japanese yen, excluding tax."
          },
          "priceMax": {
            "title": "Maximum price (JPY, excluding tax)",
            "type": "number",
            "description": "Maximum listing price in Japanese yen, excluding tax."
          },
          "reviewMin": {
            "title": "Min review rank",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Minimum listing review rank, from 1 to 4."
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Listing sort code from the target page. Leave empty for the default ordering."
          },
          "stockIndicator": {
            "title": "Stock indicator (si)",
            "type": "string",
            "description": "Stock filter code from the target listing page. Leave empty if you do not know which code applies."
          },
          "attrs": {
            "title": "Attribute facets",
            "type": "object",
            "description": "Attribute filters as an object, using attribute IDs from the target listing page. Keys can include the attr_f prefix or just the facet ID."
          },
          "enrichDetails": {
            "title": "Add group and SKU details",
            "type": "boolean",
            "description": "Add available group and SKU details to search, category and brand listings. Off by default; only a limited number of listings are enriched.",
            "default": false
          },
          "expandVariants": {
            "title": "Add separate SKU rows",
            "type": "boolean",
            "description": "Add one separately billed row for each available SKU variant, within maxResults. Off by default; product rows retain counts and price ranges rather than an embedded SKU list.",
            "default": false
          },
          "poolPages": {
            "title": "Pages per catalog category",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum pages to browse per category in catalog mode. Zero allows up to 100 pages per category; a small number spreads the search across categories.",
            "default": 0
          },
          "proxyCountry": {
            "title": "Catalog country",
            "type": "string",
            "description": "Leave as JP for the Japan catalog. This does not select an overseas MonotaRO catalog.",
            "default": "JP"
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}