{
  "openapi": "3.0.1",
  "info": {
    "title": "Tradeinn Scraper | Product Prices by Country and Stock",
    "description": "Tradeinn scraper for product prices by delivery country: price, crossed-out price, discount, every size with stock and EAN barcode, brand, category, features, rating and reviews from bikeinn, runnerinn, trekkinn and more. 60 rows in 5 seconds, 39 fields each, by link, id or search. No account.",
    "version": "1.0",
    "x-build-id": "mM6aSySos4Og002wI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~tradeinn-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-tradeinn-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/silentflow~tradeinn-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-tradeinn-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/silentflow~tradeinn-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-tradeinn-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": {
          "startUrls": {
            "title": "🔗 tradeinn links",
            "type": "array",
            "description": "Links copied from any tradeinn store (bikeinn, runnerinn, trekkinn, diveinn, snowinn, smashinn, goalinn, motardinn, techinn, dressinn and the others), in any language:<ul><li>a brand in a category, <code>https://www.tradeinn.com/runnerinn/en/footwear-running-shoes/asics/10004-284/sm</code></li><li>a category, <code>https://www.tradeinn.com/trekkinn/en/clothing/3017/f</code> or <code>…/pants/11450/s</code></li><li>a brand, <code>https://www.tradeinn.com/bikeinn/en/shimano/193/m</code></li><li>a feature filter (<code>…/at</code>) or a whole store, <code>https://www.tradeinn.com/diveinn/en</code></li><li>a product page, read like a product id below</li></ul>Each category, brand or store link returns its products up to the limit below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productIds": {
            "title": "🏷️ Product ids or links",
            "type": "array",
            "description": "Products to check, one per line: the tradeinn product id (<code>142631680</code>, the number before <code>/p</code> in every product link) or the product link itself, from any store and language. Ideal for a weekly price check of your own references. Every id returns its rows whatever the limit below, sold out products included.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "🔎 Search",
            "type": "array",
            "description": "Words to search the whole tradeinn catalogue with, brand and model together work best: <code>asics gel nimbus 28</code>, <code>shimano dura ace wheel</code>, <code>scubapro mask</code>. Each search returns its best matches first, up to the limit below. A broad word like <code>running shoes</code> matches thousands of products.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "🌍 Delivery countries",
            "type": "array",
            "description": "tradeinn prices every product for the country it ships to, in that country's currency. Pick one or more countries: each product gives one row per country, so three countries give three rows. Type any other country code (<code>mx</code>, <code>mex</code>) or English name (<code>Mexico</code>) the shop delivers to.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "fr",
                "de",
                "gb",
                "es",
                "it",
                "nl",
                "be",
                "pt",
                "at",
                "ch",
                "ie",
                "se",
                "dk",
                "no",
                "fi",
                "pl",
                "cz",
                "us",
                "ca",
                "au",
                "jp",
                "mx",
                "br",
                "ae"
              ],
              "enumTitles": [
                "France",
                "Germany",
                "United Kingdom",
                "Spain",
                "Italy",
                "Netherlands",
                "Belgium",
                "Portugal",
                "Austria",
                "Switzerland",
                "Ireland",
                "Sweden",
                "Denmark",
                "Norway",
                "Finland",
                "Poland",
                "Czechia",
                "United States",
                "Canada",
                "Australia",
                "Japan",
                "Mexico",
                "Brazil",
                "United Arab Emirates"
              ]
            },
            "default": [
              "fr"
            ]
          },
          "language": {
            "title": "🗣️ Language",
            "type": "string",
            "description": "Language of product names, categories, features, descriptions and links. Prices do not depend on it.",
            "default": "en"
          },
          "maxItems": {
            "title": "🔢 Max products per search or link",
            "minimum": 1,
            "type": "integer",
            "description": "The most products returned for each search and each category, brand or store link. Each product gives one row per delivery country. Never cuts your list of product ids: every id always returns its rows.",
            "default": 50
          },
          "sort": {
            "title": "↕️ Sort",
            "enum": [
              "relevance",
              "bestSellers",
              "newest",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "The order of searches and links. <b>Recommended</b> is the best match for searches and the best sellers for links. <b>Price</b> sorts on the first delivery country.",
            "default": "relevance"
          },
          "includeDetails": {
            "title": "📝 Description, rating and reviews",
            "type": "boolean",
            "description": "Add the full description, the rating, the number of reviews, the latest reviews, the pictures of every colour and the same model's other colours. Turn off for faster price and stock checks on large catalogues: rows keep prices, sizes, stock, barcodes, category and features.",
            "default": true
          },
          "debugMode": {
            "title": "🐞 Debug mode",
            "type": "boolean",
            "description": "Write detailed progress to the log.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}