{
  "openapi": "3.0.1",
  "info": {
    "title": "Swiss Public Tenders (simap.ch) Scraper",
    "description": "Get Swiss public procurement tenders, awards and direct awards from simap.ch (official API). Filter by keyword, CPV code, canton, type and date. Deadlines, authorities, winners and award prices as clean JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "mzIbXyzT7HqMOR3Hp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swissdata~simap-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swissdata-simap-tenders",
        "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/swissdata~simap-tenders/runs": {
      "post": {
        "operationId": "runs-sync-swissdata-simap-tenders",
        "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/swissdata~simap-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-swissdata-simap-tenders",
        "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": "string",
            "description": "Full-text search across title and description (min. 3 characters), e.g. 'Software', 'Reinigung', 'nettoyage'. Leave empty to get everything matching the other filters."
          },
          "publicationTypes": {
            "title": "Publication types",
            "type": "array",
            "description": "Type of the newest publication of a project. 'tender' = open calls for tenders, 'award_tender' = award decisions (winner + price), 'direct_award' = direct awards without tender.",
            "items": {
              "type": "string",
              "enum": [
                "tender",
                "award_tender",
                "direct_award",
                "advance_notice",
                "request_for_information",
                "participant_selection",
                "selective_offering_phase",
                "competition",
                "study_contract",
                "award_competition",
                "award_study_contract",
                "abandonment",
                "revocation"
              ],
              "enumTitles": [
                "Tender (Ausschreibung)",
                "Award (Zuschlag)",
                "Direct award (Freihändige Vergabe)",
                "Advance notice (Vorankündigung)",
                "Request for information",
                "Participant selection (Präqualifikation)",
                "Selective offering phase",
                "Competition (Wettbewerb)",
                "Study contract (Studienauftrag)",
                "Award of competition",
                "Award of study contract",
                "Abandonment (Abbruch)",
                "Revocation (Widerruf)"
              ]
            },
            "default": [
              "tender"
            ]
          },
          "cpvCodes": {
            "title": "CPV codes",
            "type": "array",
            "description": "8-digit CPV codes (without check digit). Parent codes include children, e.g. '72000000' = all IT services, '45000000' = all construction work.",
            "items": {
              "type": "string"
            }
          },
          "cantons": {
            "title": "Cantons",
            "type": "array",
            "description": "Two-letter canton codes where the work/service is performed, e.g. ZH, BE, VD, GE.",
            "items": {
              "type": "string",
              "enum": [
                "AG",
                "AI",
                "AR",
                "BE",
                "BL",
                "BS",
                "FR",
                "GE",
                "GL",
                "GR",
                "JU",
                "LU",
                "NE",
                "NW",
                "OW",
                "SG",
                "SH",
                "SO",
                "SZ",
                "TG",
                "TI",
                "UR",
                "VD",
                "VS",
                "ZG",
                "ZH"
              ]
            }
          },
          "orderTypes": {
            "title": "Order types",
            "type": "array",
            "description": "Kind of contract.",
            "items": {
              "type": "string",
              "enum": [
                "construction",
                "service",
                "supply",
                "project_competition",
                "idea_competition",
                "overall_performance_competition",
                "project_study",
                "idea_study",
                "overall_performance_study",
                "request_for_information"
              ],
              "enumTitles": [
                "Construction (Bau)",
                "Service (Dienstleistung)",
                "Supply (Lieferung)",
                "Project competition",
                "Idea competition",
                "Overall performance competition",
                "Project study",
                "Idea study",
                "Overall performance study",
                "Request for information"
              ]
            }
          },
          "processTypes": {
            "title": "Procedure types",
            "type": "array",
            "description": "Procurement procedure.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "selective",
                "invitation",
                "direct",
                "no_process"
              ],
              "enumTitles": [
                "Open (offen)",
                "Selective (selektiv)",
                "Invitation (Einladung)",
                "Direct (freihändig)",
                "No procedure"
              ]
            }
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date (YYYY-MM-DD) or relative like '7 days'. Default: 7 days ago."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Latest publication date (YYYY-MM-DD). Default: today. Notices published today are only delivered from 08:00 Swiss time (simap.ch terms)."
          },
          "onlyOpenTenders": {
            "title": "Only tenders with deadline in the future",
            "type": "boolean",
            "description": "Drop tenders whose offer deadline has already passed (needs details).",
            "default": false
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Fetch each publication's details: description, CPV, deadlines, award winners and prices. Turn off for a fast list only.",
            "default": true
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "de",
              "fr",
              "it",
              "en"
            ],
            "type": "string",
            "description": "Language used for title/description; falls back to other languages if not available.",
            "default": "de"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of publications to return.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}