{
  "openapi": "3.0.1",
  "info": {
    "title": "iPROS Scraper - Japan Products & Company Data",
    "description": "Extract public iPROS product listings, company profiles and rankings for Japan supplier research. Get available business contacts and export structured rows. Pay per delivered row plus a small start fee.",
    "version": "0.4",
    "x-build-id": "qAywrxUnfkS8lx2nX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~ipros-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-ipros-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~ipros-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-ipros-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~ipros-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-ipros-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",
              "product_search",
              "product_detail",
              "company_search",
              "company_detail",
              "company_products",
              "ranking",
              "company_ranking",
              "categories",
              "sitemap"
            ],
            "type": "string",
            "description": "Choose what to collect. Auto selects detail mode from page URLs or IDs, product search from keywords or categories, and company search from industries, regions or an overseas market; select company_products, ranking, company_ranking, categories or sitemap explicitly.",
            "default": "auto"
          },
          "market": {
            "title": "Country / market",
            "type": "string",
            "description": "Supplier country or market selector: JP (default domestic), OVERSEAS, ALL, or any of the 35 overseas supplier ISO-2 codes or country names such as US, CN, TW, KR, DE or GB. In Auto mode without a product target, an overseas country selects company_search."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "iPROS page URLs: `/product/detail/{id}/`, `/company/detail/{id}/`, `/search/product/`, `/search/company/`, `/ranking/product/`, `/ranking/company/` and `/sitemap/`. Detail URLs in one list should be of the same page type; a single search-page URL supplies its keyword and filters.",
            "items": {
              "type": "string"
            }
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Batch iPROS product or company detail page URLs (`/product/detail/{id}/` or `/company/detail/{id}/`).",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "One search phrase in English or Japanese. A keyword selects product search unless you choose company_search."
          },
          "searchQueries": {
            "title": "Batch search keywords",
            "type": "array",
            "description": "Multiple product or company search keywords in English or Japanese, each collecting up to maxResults rows.",
            "items": {
              "type": "string"
            }
          },
          "productId": {
            "title": "Product ID",
            "pattern": "^[0-9A-Za-z]*$",
            "type": "string",
            "description": "Identifier from an iPROS product detail URL. With Auto mode, this selects product_detail."
          },
          "productIds": {
            "title": "Batch product IDs",
            "type": "array",
            "description": "Multiple iPROS product identifiers to collect in product_detail mode.",
            "items": {
              "type": "string"
            }
          },
          "companyId": {
            "title": "Company ID",
            "pattern": "^[0-9A-Za-z]*$",
            "type": "string",
            "description": "Identifier from an iPROS company detail URL. With Auto mode, this selects company_detail; choose company_products to collect its products."
          },
          "companyIds": {
            "title": "Batch company IDs",
            "type": "array",
            "description": "Multiple iPROS company identifiers to collect in company_detail or company_products mode.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Product category (first level)",
            "type": "string",
            "description": "First-level product category numeric ID or English/Japanese name, such as 100113, Building Materials or Logistics Equipment."
          },
          "category2Id": {
            "title": "Product category (second level)",
            "type": "string",
            "description": "Second-level product category numeric ID or English/Japanese name, such as 100385 or Cargo Handling."
          },
          "businessClass": {
            "title": "Company industry",
            "type": "string",
            "description": "Company industry numeric ID or English/Japanese name, such as 100077 or Information and Communications. With Auto mode, this selects company_search."
          },
          "prefecture": {
            "title": "Prefecture / foreign region",
            "type": "string",
            "description": "Prefecture or overseas supplier region: numeric ID (1-47 for Japan such as 13, or overseas IDs such as 100036), English/Japanese name (such as Tokyo or 東京都) or ISO-2 country code (such as US or CN)."
          },
          "district": {
            "title": "Company region group",
            "type": "string",
            "description": "Company region-group numeric ID or English/Japanese name, such as 4 or Southern Kanto. With Auto mode, this selects company_search."
          },
          "rankingType": {
            "title": "Ranking type",
            "enum": [
              "product",
              "company"
            ],
            "type": "string",
            "description": "Weekly ranking list to collect when mode is ranking: product (`/ranking/product/`) or company (`/ranking/company/`).",
            "default": "product"
          },
          "locale": {
            "title": "Locale",
            "enum": [
              "en",
              "ja"
            ],
            "type": "string",
            "description": "Search-page language: en for English or ja for Japanese. Company lead and detail fields (address, phones, representative, capital, employees, founded) and weekly rankings always read the authoritative Japanese source page, so street numbers, building floors and corporate fields are preserved.",
            "default": "en"
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum rows per keyword, search target, ID or start URL; default 70, with larger requests collected in parts of up to 70. Your maximum charge limits the run; Free Apify plan users are limited to 200 rows per run and 10 total runs.",
            "default": 70
          },
          "enrichDetails": {
            "title": "Enrich details",
            "type": "boolean",
            "description": "Add available product details and company contacts to search rows without a separate row charge. Enabled by default; attempts up to 10 product rows or 8 company rows per search.",
            "default": true
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          },
          "incrementalMode": {
            "title": "Incremental mode",
            "enum": [
              "off",
              "emitChanged",
              "newOnly"
            ],
            "type": "string",
            "description": "Compare rows against a saved state snapshot in the named key-value store to emit only new or changed items across recurring runs.",
            "default": "off"
          },
          "stateKey": {
            "title": "Incremental state key",
            "type": "string",
            "description": "Optional identifier for the saved incremental snapshot. Leave empty to derive a stable key automatically from your target fields."
          },
          "emitUnchanged": {
            "title": "Emit unchanged rows",
            "type": "boolean",
            "description": "Also emit rows whose tracked values have not changed since the previous snapshot, marked with changeType = unchanged.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired rows",
            "type": "boolean",
            "description": "Emit expired rows (changeType = expired) for previously tracked items that are absent from the current run.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}