{
  "openapi": "3.0.1",
  "info": {
    "title": "Tipmoto Scraper",
    "description": "TipMoto.com motorcycle scraper with power (kW) and STK validity filtering. \nExtracts complete listing data: price, specs, photos, descriptions, seller \ncontact. Region-specific search. Built for dealers, researchers, and market \nintelligence platforms.",
    "version": "0.1",
    "x-build-id": "9yVoONviwNUlL5AJE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gearshift-data~tipmoto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gearshift-data-tipmoto-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/gearshift-data~tipmoto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gearshift-data-tipmoto-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/gearshift-data~tipmoto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gearshift-data-tipmoto-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": {
          "ingestMode": {
            "title": "Ingest mode",
            "enum": [
              "full",
              "incremental"
            ],
            "type": "string",
            "description": "• Full — scrape search results and fetch details for every listing.\n• Incremental — only fully scrape listings that weren't seen in previous runs. The actor remembers IDs in its key-value store and skips already-known listings. Summary records (title, price, url, year) are still produced for every listing so you can detect price changes across runs.",
            "default": "full"
          },
          "customUrl": {
            "title": "Custom URL (optional)",
            "type": "string",
            "description": "Paste a search URL copied from your browser on tipmoto.com (e.g. https://www.tipmoto.com/hledat.php?...). Overrides all filter fields below. Leave empty to use the filter fields instead."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Search text (e.g. \"Honda Africa Twin\")"
          },
          "keywordsloc": {
            "title": "Search in",
            "enum": [
              "nazev",
              "popis",
              "vse"
            ],
            "type": "string",
            "description": "Where to search for keywords",
            "default": "nazev"
          },
          "kategorie": {
            "title": "Brand (Kategorie)",
            "type": "string",
            "description": "Brand name, e.g. \"Honda\", \"BMW\", \"Yamaha\""
          },
          "zarazeni": {
            "title": "Type (Zařazení)",
            "enum": [
              "",
              "čtyřkolka",
              "dětské moto",
              "chopper",
              "klasická",
              "moped / skútr",
              "motokros",
              "nakedbike",
              "silniční cestovní",
              "silniční enduro",
              "silniční sportovní",
              "skútr",
              "snowmobil",
              "supermoto",
              "terénní (cross)",
              "tříkolka",
              "trial",
              "veterán",
              "vodní skútr"
            ],
            "type": "string",
            "description": "Motorcycle type/category",
            "default": ""
          },
          "minYear": {
            "title": "Year from",
            "type": "integer",
            "description": "Minimum year of manufacture"
          },
          "maxYear": {
            "title": "Year to",
            "type": "integer",
            "description": "Maximum year of manufacture"
          },
          "minPrice": {
            "title": "Price from (CZK)",
            "type": "integer",
            "description": "Minimum price in CZK"
          },
          "maxPrice": {
            "title": "Price to (CZK)",
            "type": "integer",
            "description": "Maximum price in CZK"
          },
          "minMileage": {
            "title": "Mileage from (km)",
            "type": "integer",
            "description": "Minimum mileage in km"
          },
          "maxMileage": {
            "title": "Mileage to (km)",
            "type": "integer",
            "description": "Maximum mileage in km"
          },
          "minEngineCcm": {
            "title": "Engine from (ccm)",
            "type": "integer",
            "description": "Minimum engine displacement in ccm"
          },
          "maxEngineCcm": {
            "title": "Engine to (ccm)",
            "type": "integer",
            "description": "Maximum engine displacement in ccm"
          },
          "minPowerKw": {
            "title": "Power from (kW)",
            "type": "integer",
            "description": "Minimum power in kW"
          },
          "maxPowerKw": {
            "title": "Power to (kW)",
            "type": "integer",
            "description": "Maximum power in kW"
          },
          "stav": {
            "title": "Condition (Stav)",
            "enum": [
              "",
              "ojetá",
              "nová",
              "předváděcí",
              "bouraná",
              "veterán"
            ],
            "type": "string",
            "description": "Listing condition filter",
            "default": ""
          },
          "kraj": {
            "title": "Region (Kraj)",
            "enum": [
              "",
              "Jihočeský",
              "Jihomoravský",
              "Karlovarský",
              "Kraj Vysočina",
              "Královéhradecký",
              "Liberecký",
              "Moravskoslezský",
              "Olomoucký",
              "Pardubický",
              "Plzeňský",
              "Praha",
              "Středočeský",
              "Ústecký",
              "Zlínský",
              "Slovenská republika"
            ],
            "type": "string",
            "description": "Czech region filter",
            "default": ""
          },
          "dph": {
            "title": "VAT deductible only",
            "type": "boolean",
            "description": "Show only listings with VAT deductible (odpočet DPH)",
            "default": false
          },
          "sorting": {
            "title": "Sorting",
            "enum": [
              "cenaa",
              "cenad",
              "datud"
            ],
            "type": "string",
            "description": "How to sort the results",
            "default": "cenaa"
          },
          "listingsPerPage": {
            "title": "Listings per page",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "How many listings to load per search page (10, 20, 30, 50, or 100). Higher values mean fewer requests.",
            "default": 20
          },
          "scrapePhotos": {
            "title": "Scrape photos",
            "type": "boolean",
            "description": "Extract full-size photo URLs from each listing's detail page.",
            "default": true
          },
          "scrapeDescription": {
            "title": "Scrape description",
            "type": "boolean",
            "description": "Extract the seller's full description text from each listing's detail page.",
            "default": true
          },
          "scrapePhone": {
            "title": "Scrape phone number",
            "type": "boolean",
            "description": "Extract the seller's phone number from each listing's detail page.",
            "default": false
          },
          "scrapeEmail": {
            "title": "Scrape email",
            "type": "boolean",
            "description": "Extract the seller's email address from each listing's detail page.",
            "default": false
          },
          "maxPagesPerCrawl": {
            "title": "Max search pages",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of search result pages to crawl. Set to 0 for unlimited.",
            "default": 10
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total number of listings to scrape. Set to 0 for unlimited. Useful for quick samples or cost control.",
            "default": 0
          },
          "archivePhotos": {
            "title": "Archive photos to Cloudflare R2",
            "type": "boolean",
            "description": "Download each listing's gallery photos, resize them to WebP, and upload to a Cloudflare R2 bucket. Protects against photo loss when source listings end. Adds `photosArchived[]` to the output. Requires the R2 fields below.",
            "default": false
          },
          "r2AccountId": {
            "title": "R2 Account ID",
            "type": "string",
            "description": "Cloudflare account id — the subdomain of your R2 S3 endpoint."
          },
          "r2BucketName": {
            "title": "R2 Bucket name",
            "type": "string",
            "description": "Target R2 bucket.",
            "default": "gearshift-moto-photos"
          },
          "r2AccessKeyId": {
            "title": "R2 Access Key ID",
            "type": "string",
            "description": "R2 API token access key id. Use Apify secrets."
          },
          "r2SecretAccessKey": {
            "title": "R2 Secret Access Key",
            "type": "string",
            "description": "R2 API token secret. Use Apify secrets."
          },
          "r2PublicBaseUrl": {
            "title": "R2 Public base URL",
            "type": "string",
            "description": "Public URL prefix for archived photos, e.g. https://pub-abc123.r2.dev"
          },
          "r2MaxDimension": {
            "title": "Max dimension (px)",
            "minimum": 200,
            "maximum": 4000,
            "type": "integer",
            "description": "Resize each photo so its longer edge fits within this many pixels.",
            "default": 1200
          },
          "r2Quality": {
            "title": "WebP quality (1-100)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "WebP encoder quality.",
            "default": 80
          },
          "datasetName": {
            "title": "Dataset name",
            "type": "string",
            "description": "Name of the dataset to store results in. Leave empty to use the default dataset."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of parallel requests",
            "default": 10
          },
          "timeoutSecs": {
            "title": "Timeout (seconds)",
            "type": "integer",
            "description": "Per-page timeout in seconds",
            "default": 120
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "type": "integer",
            "description": "How many times to retry a failed request",
            "default": 3
          },
          "debugLog": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Enable verbose debug logging",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings for requests"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}