{
  "openapi": "3.0.1",
  "info": {
    "title": "Goobike Scraper: Japan Used Motorcycles, Prices & Shops",
    "description": "Scrape goobike.com, Japan's used motorcycle marketplace: price in yen, make, model, year, mileage, engine size, inspection, condition grades and shop. Filter by prefecture, make, model, price or year. Export CSV, Excel, JSON or XML.",
    "version": "0.1",
    "x-build-id": "LwVFCGNQ0iCUHNZFA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~goobike-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-goobike-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/recordsdata~goobike-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-goobike-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/recordsdata~goobike-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-goobike-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": "What do you want to do?",
            "enum": [
              "search",
              "urls"
            ],
            "type": "string",
            "description": "Search motorcycles with the fields below, or paste goobike.com addresses (ads, shops, result pages) in the addresses section.",
            "default": "search"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows (all row types together). Free plan: 10 rows per run. Example: 50.",
            "default": 50
          },
          "prefectures": {
            "title": "Prefectures",
            "type": "array",
            "description": "Where the shop is: Tokyo, Osaka, Hokkaido, 東京都 or code 13. Empty means all of Japan.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Honda, Yamaha, Suzuki, Kawasaki, Ducati, Harley-Davidson, BMW or Japanese names (ホンダ). Empty means every make.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models (needs exactly one make)",
            "type": "array",
            "description": "Models of that make, for example CB400, Rebel 250 or Hornet. A partial name searches every model containing it (up to 24).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "genres": {
            "title": "Bike styles",
            "type": "array",
            "description": "Style as the site sorts them, for example Naked or Sport.",
            "items": {
              "type": "string",
              "enum": [
                "naked",
                "sport",
                "street",
                "offroad",
                "tourer",
                "american",
                "minibike",
                "moped-scooter",
                "scooter",
                "import",
                "old-look",
                "competition",
                "electric",
                "trike",
                "adventure",
                "scrambler"
              ],
              "enumTitles": [
                "Naked",
                "Sport / replica",
                "Street",
                "Off-road",
                "Tourer",
                "American cruiser",
                "Minibike",
                "Moped scooter (50 cc)",
                "Scooter (over 50 cc)",
                "Imported bike",
                "Old look",
                "Competition",
                "Electric",
                "Trike",
                "Adventure",
                "Scrambler"
              ]
            },
            "default": []
          },
          "engineClass": {
            "title": "Engine size (cc)",
            "enum": [
              "any",
              "up-to-50cc",
              "51-125cc",
              "126-250cc",
              "251-400cc",
              "401-750cc",
              "over-750cc",
              "unknown"
            ],
            "type": "string",
            "description": "Engine size class of the site, for example 251 to 400 cc.",
            "default": "any"
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Used, new in stock or new built to order. Empty means used and new together.",
            "items": {
              "type": "string",
              "enum": [
                "used",
                "new-in-stock",
                "new-to-order"
              ],
              "enumTitles": [
                "Used",
                "New, in stock",
                "New, built to order"
              ]
            },
            "default": []
          },
          "features": {
            "title": "Must have",
            "type": "array",
            "description": "Keeps bikes with all ticked features, for example One owner or ETC.",
            "items": {
              "type": "string",
              "enum": [
                "oneOwner",
                "etc",
                "navigation",
                "securitySystem",
                "unmodified",
                "mailOrder"
              ],
              "enumTitles": [
                "One owner",
                "ETC device",
                "Navigation",
                "Security system",
                "Unmodified (normal) bike",
                "Mail order possible"
              ]
            },
            "default": []
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "any",
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Manual (MT) or automatic (AT, scooters).",
            "default": "any"
          },
          "fuelSystem": {
            "title": "Fuel system",
            "enum": [
              "any",
              "carburetor",
              "injection"
            ],
            "type": "string",
            "description": "Carburettor or fuel injection (FI).",
            "default": "any"
          },
          "priceMin": {
            "title": "Min price (JPY)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Bikes at or above this price in yen, for example 500000."
          },
          "priceMax": {
            "title": "Max price (JPY)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Bikes at or below this price in yen, for example 1500000."
          },
          "yearFrom": {
            "title": "First registered from (year)",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Gregorian year, for example 2018. Returns used bikes only because new bikes have no registration year."
          },
          "yearTo": {
            "title": "First registered up to (year)",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "For example 2023. Same rules as the from year."
          },
          "mileageMin": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Bikes with at least this odometer reading, for example 5000."
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Bikes with at most this reading, for example 30000. Bikes with no mileage are left out when set."
          },
          "sort": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "price-low",
              "price-high",
              "total-price-low",
              "total-price-high",
              "year-newest",
              "year-oldest",
              "mileage-low",
              "mileage-high"
            ],
            "type": "string",
            "description": "Order of the results, for example Price, lowest first. The year and mileage minimums choose their own order.",
            "default": "relevance"
          },
          "startUrls": {
            "title": "goobike.com addresses",
            "type": "array",
            "description": "An ad (https://www.goobike.com/spread/12345/index.html), a shop (https://www.goobike.com/shop/client_123/) or a search result page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "scrapeDetails": {
            "title": "Add ad details",
            "type": "boolean",
            "description": "Opens each ad: exact price, model code, condition report, description and shop details. Adds one request (about 30 KB) per bike.",
            "default": false
          },
          "includeDealerRecords": {
            "title": "Add one row per shop",
            "type": "boolean",
            "description": "Reads each shop page once: hours, founded year, staff, ratings, stock counts. Adds one request per shop; shop rows are charged like others.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Include shop address and phone",
            "type": "boolean",
            "description": "Adds the shop street address, postal code, phone, fax and website (business data only). Off keeps only prefecture and city.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Skips bikes delivered by earlier runs of the same search; skipped rows are not charged.",
            "default": false
          },
          "reportPriceChanges": {
            "title": "Report price changes",
            "type": "boolean",
            "description": "With Only new ads: a bike seen before whose price changed comes back as a price change row with the old price and difference.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Label to keep several monitors of the same search apart, for example tokyo-honda.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget the seen list",
            "type": "boolean",
            "description": "Clears what earlier runs delivered and starts again.",
            "default": false
          },
          "maxResidentialMB": {
            "title": "Download limit (MB)",
            "minimum": 0.5,
            "maximum": 2000,
            "type": "number",
            "description": "Safety cap on traffic. The run stops cleanly when reached. About 40 KB per result page of 50 bikes. Example: 10.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Parallel requests (1 to 3)",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "How many ad detail pages are read at once. Requests are also spaced at least 0.4 seconds apart.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}