{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Used Truck Prices — By Mileage, Not Just Year",
    "description": "Pick a truck maker and model and see what it costs used in Japan today, split by how far it has run. You get the typical price and range in yen for each mileage band, how many trucks that is, and the year mix. $0.02 per model, no results = no charge. Unofficial.",
    "version": "0.1",
    "x-build-id": "SwqxYXmDbR9kvn1V8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~truckbank-japan-used-truck-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-truckbank-japan-used-truck-checker",
        "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/jpmarketdata~truckbank-japan-used-truck-checker/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-truckbank-japan-used-truck-checker",
        "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/jpmarketdata~truckbank-japan-used-truck-checker/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-truckbank-japan-used-truck-checker",
        "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",
        "required": [
          "maker",
          "model"
        ],
        "properties": {
          "maker": {
            "title": "Truck maker",
            "enum": [
              "HINO",
              "ISUZU",
              "MITSUBISHI FUSO",
              "UD TRUCKS",
              "TOYOTA",
              "NISSAN",
              "HONDA",
              "MITSUBISHI",
              "MAZDA",
              "SUZUKI",
              "SUBARU",
              "DAIHATSU",
              "OTHER JAPANESE",
              "MERCEDES-BENZ",
              "VOLVO",
              "OTHER IMPORTED"
            ],
            "type": "string",
            "description": "Which maker's trucks to price. Everything in the run is measured over this maker's stock on Truck Bank, so the count, the typical price and the split by distance run all cover one maker and one model. It does not change what you are charged: one run is one model at a flat $0.02.",
            "default": "ISUZU"
          },
          "model": {
            "title": "Truck model",
            "enum": [
              "DUTRO",
              "DUTRO HYBRID",
              "RANGER",
              "RANGER 2",
              "PROFIA",
              "SUPER DOLPHIN",
              "SCANIA",
              "LIESSE",
              "SELEGA",
              "BLUE RIBBON",
              "RAINBOW",
              "MELPHA",
              "PONCHO",
              "ELF",
              "FORWARD JUSTON",
              "COMO",
              "FARGO",
              "FORWARD",
              "GIGA",
              "810",
              "JOURNEY",
              "ERGA",
              "GALA",
              "GALA MIO",
              "CANTER",
              "CANTER HYBRID",
              "CANTER GUTS",
              "FIGHTER",
              "FIGHTER MIGNON",
              "SUPER GREAT",
              "THE GREAT",
              "ROSA",
              "AERO MIDI",
              "AERO STAR",
              "AERO QUEEN",
              "AERO ACE",
              "KAZET",
              "CONDOR",
              "CONDOR S",
              "QUON",
              "BIG THUMB",
              "SPACE WING",
              "SPACE ARROW",
              "SPACE RUNNER",
              "DYNA",
              "TOWNACE",
              "TOYOACE",
              "HIACE",
              "LITEACE",
              "COASTER",
              "ATLAS",
              "CARAVAN",
              "CLIPPER",
              "VANETTE",
              "CIVILIAN",
              "ACTY",
              "DELICA",
              "MINICAB",
              "SCRUM",
              "TITAN",
              "BONGO",
              "EVERY",
              "CARRY",
              "SAMBAR",
              "DELTA",
              "HIJET",
              "GRANMAX",
              "OTHER JAPANESE",
              "ANCHIKO",
              "KYOKUTO",
              "KODAIRA",
              "SHOWA",
              "SHINMAYWA",
              "TOKYU",
              "TOYO",
              "TRAILMOBILE",
              "TREX",
              "TOHO",
              "NISSHA",
              "NITTSU",
              "HAMANA",
              "HINO BODY",
              "FRUEHAUF",
              "YUSOKI",
              "ACTROS",
              "VOLVO FM",
              "VOLVO FH",
              "OTHER IMPORTED"
            ],
            "type": "string",
            "description": "Which model of that maker to price — `ELF`, `CANTER`, `PROFIA`, `RANGER`. It has to be a model the maker above actually builds: Truck Bank answers a maker and model that do not go together with an empty page and no error at all, so a mismatched pair stops the run and prints that maker's own model list instead of returning nothing. It does not change what you are charged.",
            "default": "ELF"
          },
          "yearFrom": {
            "title": "Oldest year to include",
            "minimum": 1990,
            "maximum": 2035,
            "type": "integer",
            "description": "Leave empty to cover every year on the site, which runs from 1996 to next year's models. Setting it drops everything older, so the count, the typical price and the split by distance run all cover the years you kept — and a truck's year moves its price more than anything else except how far it has run. It does not change what you are charged."
          },
          "yearTo": {
            "title": "Newest year to include",
            "minimum": 1990,
            "maximum": 2035,
            "type": "integer",
            "description": "Leave empty to cover every year. Setting it drops everything newer. The two year boxes can be filled in either order — if the newer one arrives first they are swapped, because Truck Bank itself answers a reversed pair with an empty page and no error. It does not change what you are charged."
          },
          "includeListings": {
            "title": "Also list every truck read",
            "type": "boolean",
            "description": "Off by default: a run costs a flat $0.02 for the summary. Turn it on to also get one row per truck — year, distance run in km, vehicle price and total payable in yen, body shape, the prefecture it stands in and a link — at +$0.002 per row. The rows are the ones already read for the summary, at most 220 of them, so this adds rows, not waiting. No dealer name and no phone number is returned.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}