{
  "openapi": "3.0.1",
  "info": {
    "title": "Doffin Scraper: Norway Public Tenders (Anbud, Kunngjøringer)",
    "description": "Norwegian public tenders and procurement notices (anbud) from Doffin by keyword, notice type, status, county, buyer, CPV code and date: contract notices, awards, intentions and DPS, with buyer org number, value, deadline, contact, lots and documents link. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "8j5BSU1Gn5WfXcMU8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~doffin-norway-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-doffin-norway-tenders-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/steadyscrape~doffin-norway-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-doffin-norway-tenders-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/steadyscrape~doffin-norway-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-doffin-norway-tenders-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Each keyword is one search of Doffin, matched the way doffin.no's own search matches it, in Norwegian, across titles, descriptions and buyer names (<i>renhold</i>, <i>IT-konsulent</i>, <i>brøyting</i>). A keyword of several words finds the notices holding all of them. Empty: every notice that passes the filters below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice type",
            "type": "array",
            "description": "Grouped the way doffin.no groups them: <b>Any call for competition</b> is what suppliers bid on, <b>Any result notice</b> names who won. Empty: every type.",
            "items": {
              "type": "string",
              "enum": [
                "competition",
                "contract_notice",
                "dynamic_purchasing_scheme",
                "qualification_scheme",
                "prior_information_call",
                "planning",
                "advisory_notice",
                "buyer_profile_notice",
                "result",
                "contract_award",
                "intention_to_award",
                "cancelled_or_not_awarded",
                "contract_modification"
              ],
              "enumTitles": [
                "Any call for competition: contract notices, dynamic purchasing schemes, qualification schemes (konkurranse)",
                "Contract notice, a call for tenders (kunngjøring av konkurranse)",
                "Dynamic purchasing scheme (dynamisk innkjøpsordning)",
                "Qualification scheme (kvalifikasjonsordning)",
                "Prior information notice used as a call for competition (forhåndskunngjøring)",
                "Any planning notice: advisory notices and market dialogues (planlegging)",
                "Advisory notice or market dialogue (veiledende kunngjøring)",
                "Notice on a buyer profile (kunngjøring på kjøperprofil)",
                "Any result notice: awards, intentions, cancellations, modifications (resultat)",
                "Contract award notice (kunngjøring av kontraktsinngåelse)",
                "Intention to award, before the contract is signed (intensjonskunngjøring)",
                "Cancelled, or no contract concluded (avlysning eller manglende kontraktsinngåelse)",
                "Modification of a concluded contract (endring av inngått kontrakt)"
              ]
            },
            "default": []
          },
          "statuses": {
            "title": "Competition status",
            "type": "array",
            "description": "Doffin's status of a call for competition. <b>Active</b> is still open for tenders. Doffin gives no status to results, plans or notices from before 2023, so a status leaves those out. Empty: any.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "expired",
                "awarded",
                "cancelled"
              ],
              "enumTitles": [
                "Active: open for tenders, the deadline ahead (aktiv)",
                "Expired: the deadline passed, no award notice yet (utgått)",
                "Awarded (tildelt)",
                "Cancelled (avlyst)"
              ]
            },
            "default": []
          },
          "noticeUrls": {
            "title": "Or read notices by their links",
            "type": "array",
            "description": "Doffin notice links (<i>https://www.doffin.no/notices/2026-117915</i>) or ids (<i>2026-117915</i>), read one by one instead of a search: the filters are not used. A link to no notice gives a free <code>not_found</code> row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "County or region (place of performance)",
            "type": "array",
            "description": "Where the work is done, as the notice gives it (NUTS). A region covers its counties; a notice for the whole country may list every county. Doffin's own place filter, which also matches places a notice's lots name. Empty: anywhere.",
            "items": {
              "type": "string",
              "enum": [
                "oslo",
                "akershus",
                "buskerud",
                "ostfold",
                "innlandet",
                "vestfold",
                "telemark",
                "agder",
                "rogaland",
                "vestland",
                "more_og_romsdal",
                "trondelag",
                "nordland",
                "troms",
                "finnmark",
                "svalbard",
                "region_oslo_og_viken",
                "region_agder_og_sor_ostlandet",
                "region_vestlandet",
                "region_nord_norge",
                "anywhere"
              ],
              "enumTitles": [
                "Oslo",
                "Akershus",
                "Buskerud",
                "Østfold",
                "Innlandet",
                "Vestfold",
                "Telemark",
                "Agder",
                "Rogaland",
                "Vestland",
                "Møre og Romsdal",
                "Trøndelag",
                "Nordland",
                "Troms",
                "Finnmark",
                "Svalbard",
                "Region: Oslo og Viken (Oslo, Akershus, Buskerud, Østfold)",
                "Region: Agder og Sør-Østlandet (Agder, Telemark, Vestfold)",
                "Region: Vestlandet (Rogaland, Vestland, Møre og Romsdal)",
                "Region: Nord-Norge (Nordland, Troms, Finnmark)",
                "Not tied to a place (ikke stedbunden)"
              ]
            },
            "default": []
          },
          "contractNatures": {
            "title": "Contract type",
            "type": "array",
            "description": "Works, supplies or services: the main element of the contract. Empty: any.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "supplies",
                "services"
              ],
              "enumTitles": [
                "Works (bygg- og anlegg)",
                "Supplies (varer)",
                "Services (tjenester)"
              ]
            },
            "default": []
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "Each code matches itself and every code below it: <i>45000000</i> is all construction work, <i>72000000</i> all IT services. With or without the check digit (45000000 or 45000000-7).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "buyers": {
            "title": "Buyers (contracting authorities)",
            "type": "array",
            "description": "Buyer names as Doffin writes them, or their 9-digit organisation numbers. A name gives every buyer whose name holds it as whole words, case ignored: <i>Oslo kommune</i> gives its agencies too (<i>Oslo kommune v/ Bymiljøetaten</i>). An organisation number (<i>916879067</i>) gives just that buyer.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "strategicLabels": {
            "title": "Strategic procurement",
            "type": "array",
            "description": "Doffin's labels for procurements with environmental, social or innovation requirements. Empty: any.",
            "items": {
              "type": "string",
              "enum": [
                "environment",
                "social",
                "innovation"
              ],
              "enumTitles": [
                "Environment (miljø)",
                "Social (sosial)",
                "Innovation (innovasjon)"
              ]
            },
            "default": []
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Days in Norway, today included: 1 is today, 7 the last week. 0 for any day.",
            "default": 0
          },
          "publishedFrom": {
            "title": "Published from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>, the first day of a publication window (Doffin has notices since 2017). Empty: no first day."
          },
          "publishedTo": {
            "title": "Published until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>, the last day of the window, included. Empty: up to today."
          },
          "closingWithinDays": {
            "title": "Deadline in the next N days",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Active competitions whose deadline for tenders falls from today to N - 1 days ahead, in Norway. 0 for any deadline.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include details (CPV codes, lots, buyer contact, documents link, winners)",
            "type": "boolean",
            "description": "Reads each notice in full: its CPV codes, the contract type, the qualification deadline, the lots, the buyer's contact person, email and phone, the link to the procurement documents, the TED number, the winners and the tenders received. Charged as <b>notice with details</b>; a notice whose details did not read whole is charged as a plain notice.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 0,
            "type": "integer",
            "description": "Across all keywords. 0 for no maximum.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}