{
  "openapi": "3.0.1",
  "info": {
    "title": "FINN.no Car Scraper",
    "description": "Scrape used and new cars from finn.no. Use the same listing filters as the site or paste a URL — the URL wins when set.",
    "version": "0.1",
    "x-build-id": "yk0ovggPzqHbkGUaU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~finn-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-finn-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/dadhalfdev~finn-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-finn-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/dadhalfdev~finn-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-finn-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": {
          "input_url": {
            "title": "Input URL",
            "type": "string",
            "description": "Paste a FINN.no car search or listing URL. Overrides every filter when set."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the FINN search box, for example Tesla Model Y. Optional."
          },
          "make": {
            "title": "Make",
            "enum": [
              "",
              "0.818",
              "0.813",
              "0.817",
              "0.8078",
              "0.749",
              "0.785",
              "0.744",
              "0.767",
              "0.777",
              "0.772",
              "0.792",
              "0.784",
              "0.771",
              "0.808",
              "0.796",
              "0.804",
              "0.795",
              "0.787",
              "0.811",
              "0.810",
              "0.757",
              "0.807",
              "0.766",
              "0.776",
              "0.781",
              "0.801",
              "0.782",
              "0.7147",
              "0.8102",
              "0.8101",
              "0.8106",
              "0.8079",
              "0.753",
              "0.775",
              "0.786",
              "0.3233",
              "0.7137",
              "0.806",
              "0.754",
              "0.764"
            ],
            "type": "string",
            "description": "Car brand, same list as the FINN make filter.",
            "default": ""
          },
          "county": {
            "title": "County",
            "enum": [
              "",
              "0.20061",
              "0.20003",
              "0.20002",
              "0.20008",
              "0.20007",
              "0.20009",
              "0.22042",
              "0.20012",
              "0.22046",
              "0.20015",
              "0.20016",
              "0.20018",
              "0.20019",
              "0.20020",
              "0.22034",
              "0.20506",
              "0.20534"
            ],
            "type": "string",
            "description": "Norwegian county (fylke), same list as the FINN location filter.",
            "default": ""
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "",
              "1",
              "2",
              "4",
              "6",
              "8",
              "1352",
              "1356",
              "5",
              "3",
              "9",
              "2441"
            ],
            "type": "string",
            "description": "Fuel type, same list as the site fuel filter.",
            "default": ""
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Manual or automatic, same as the site gearbox filter.",
            "default": ""
          },
          "body": {
            "title": "Body type",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11"
            ],
            "type": "string",
            "description": "Body style, same as the site body-type filter.",
            "default": ""
          },
          "seller": {
            "title": "Seller",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Brand dealer, other dealership, or private seller.",
            "default": ""
          },
          "price_min": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Norwegian kroner (NOK). Leave empty for no minimum."
          },
          "price_max": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Norwegian kroner (NOK). Leave empty for no maximum."
          },
          "year_min": {
            "title": "Minimum year",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Oldest model year, such as 2018. Leave empty for no minimum."
          },
          "year_max": {
            "title": "Maximum year",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Newest model year, such as 2024. Leave empty for no maximum."
          },
          "mileage_max": {
            "title": "Maximum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Highest mileage in kilometres. Leave empty for no maximum."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "PUBLISHED_DESC",
              "RELEVANCE",
              "PRICE_ASC",
              "PRICE_DESC",
              "YEAR_DESC",
              "YEAR_ASC",
              "MILEAGE_ASC",
              "MILEAGE_DESC",
              "MODEL",
              "CLOSEST"
            ],
            "type": "string",
            "description": "Listing order, same options as the FINN sort menu.",
            "default": "PUBLISHED_DESC"
          },
          "max_results": {
            "title": "Maximum number of results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many rows to return (1–2000). FINN search stops at page 50.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}