{
  "openapi": "3.0.1",
  "info": {
    "title": "Finn.no Marketplace Scraper",
    "description": "Find and collect classified ads from Finn.no Torget. Records include ad IDs and URLs, titles, prices, currency, locations, seller types, business names, brands, trade types, image URLs, coordinates and publish dates.",
    "version": "0.1",
    "x-build-id": "ShoNsdeSMLy5sKcaM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axiomworks~finn-no-ads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axiomworks-finn-no-ads-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/axiomworks~finn-no-ads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axiomworks-finn-no-ads-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/axiomworks~finn-no-ads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axiomworks-finn-no-ads-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": {
          "searchQueries": {
            "title": "Torget keywords, e.g. sykkel",
            "type": "array",
            "description": "Keywords for separate FINN Torget searches, e.g. [\"sykkel\", \"sofa\"]. Norwegian works best. Supply searchQueries, startUrls or category; no search runs if all are empty. Keyword searches use the separate category, price and sort settings. maxItems is shared across all searches.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Torget search URLs with filters",
            "type": "array",
            "description": "FINN Torget search URLs as strings or {\"url\":\"https://www.finn.no/recommerce/forsale/search?q=sofa\"} objects. Preserves category, price, location, condition, trade_type, brand, bikes_type, shipping_types, dealer_segment, published, for_rent and map filters. URL sort overrides sort; separate filters apply only to keyword/category searches. Use search URLs, not ad URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "category": {
            "title": "FINN category ID, e.g. 0.76",
            "type": "string",
            "description": "FINN category ID, e.g. \"0.76\" or \"1.76.5177\". Applies to keyword searches; with no keywords or URLs it runs a category-only search. Empty string means no category restriction. Does not override category filters in startUrls.",
            "default": ""
          },
          "locations": {
            "title": "FINN location IDs",
            "type": "array",
            "description": "Restrict keyword/category searches to FINN location IDs, e.g. [\"0.20061\"] for Oslo. Default [] searches all locations. Multiple IDs are passed as repeated location filters. Does not override startUrls.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "FINN brand IDs",
            "type": "array",
            "description": "Restrict keyword/category searches to FINN brand IDs copied from a search URL, e.g. [\"20\"] for Zanussi. Default [] includes every brand. Multiple IDs use repeated brand parameters. Does not override brand filters in startUrls.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "shippingType": {
            "title": "Fiks ferdig shipping filter",
            "enum": [
              "",
              "0",
              "1"
            ],
            "type": "string",
            "description": "Restrict keyword/category searches to Fiks ferdig (0) or its free-shipping option (1). Default empty includes ads regardless of shipping. Does not override shipping_types in startUrls. FINN applies this filter before pagination; sparse searches can return fewer than maxItems.",
            "default": ""
          },
          "condition": {
            "title": "Item condition filter",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Filter keyword/category searches by FINN condition: 1 unopened, 2 like new, 3 good, 4 visibly used, 5 needs repair. Default empty keeps all conditions. Does not override startUrls; output condition remains a detail-page field.",
            "default": ""
          },
          "tradeType": {
            "title": "Ad trade type filter",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Select FINN ad type for keyword/category searches: 1 for sale, 2 given away, 3 wanted. Default empty keeps all types. Does not override startUrls. Output tradeType keeps the original Norwegian label.",
            "default": ""
          },
          "publishedToday": {
            "title": "Only ads published today",
            "type": "boolean",
            "description": "Limit keyword/category searches to FINN ads published today. Default false includes older ads. Uses FINN published=1 filter; does not override startUrls. Sparse searches may return fewer than maxItems.",
            "default": false
          },
          "priceFrom": {
            "title": "Minimum asking price in NOK",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in NOK for keyword/category searches, e.g. 500. Default 0 leaves the lower bound unset. Does not override price_from in startUrls. Set priceTo at or above this amount to avoid an empty price range.",
            "default": 0
          },
          "priceTo": {
            "title": "Maximum asking price in NOK",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in NOK for keyword/category searches, e.g. 5000. Default 0 leaves the upper bound unset. Does not override price_to in startUrls. Set at or above priceFrom when both bounds are used.",
            "default": 0
          },
          "sort": {
            "title": "Search order, e.g. PRICE_ASC",
            "enum": [
              "RELEVANCE",
              "PRICE_ASC",
              "PRICE_DESC",
              "PUBLISHED_DESC"
            ],
            "type": "string",
            "description": "Order each search using RELEVANCE (default), PRICE_ASC (lowest asking price), PRICE_DESC (highest asking price), or PUBLISHED_DESC (newest first). Example: \"PRICE_ASC\". A supported sort parameter in startUrls overrides this setting.",
            "default": "RELEVANCE"
          },
          "sellerType": {
            "title": "Seller filter: private or retailer",
            "enum": [
              "",
              "private",
              "retailer"
            ],
            "type": "string",
            "description": "Keep ads whose returned sellerType equals \"private\" or \"retailer\", e.g. \"private\". Default empty string keeps all sellers. Applied after fetching to every search. Rare types may return fewer than maxItems; clear this filter if no ads match.",
            "default": ""
          },
          "includeDetails": {
            "title": "Fetch ad descriptions and details",
            "type": "boolean",
            "description": "Open each returned ad page to add description, condition, categoryPath, attributes and availability. Example: true. Default false returns search fields only and is faster. Adds about one request per ad; unavailable detail pages produce null detail fields.",
            "default": false
          },
          "maxItems": {
            "title": "Total ads across all searches",
            "minimum": 1,
            "maximum": 2650,
            "type": "integer",
            "description": "Maximum unique ads saved across all keywords and URLs combined, e.g. 30. 1-2650, default 50. Stops at this shared limit or the spending limit; may return fewer if searches are empty, blocked or seller-filtered. FINN caps each search at 50 pages; split broad searches using category or price filters.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy settings for FINN requests",
            "type": "object",
            "description": "Apify Proxy configuration, e.g. {\"useApifyProxy\":false} (default: direct requests). Set useApifyProxy to true to use Apify Proxy from the first request. Repeated direct failures trigger automatic Apify datacenter proxy recovery when available. A blocked search returns no placeholder records; try another target or configured proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}