{
  "openapi": "3.0.1",
  "info": {
    "title": "Italian Tenders Scraper: ANAC Bandi di Gara & Appalti",
    "description": "Italian public tenders from ANAC's legal publicity platform: bandi di gara, esiti, affidamenti diretti and contract changes, with authority, CIG, value, deadline, winners and tender documents link. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "AKrWvfXx4OhPY4ONb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~italian-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-italian-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~italian-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-italian-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~italian-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-italian-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": {
          "noticeTypes": {
            "title": "Kinds of notice",
            "minItems": 1,
            "type": "array",
            "description": "Which notices of ANAC's platform to get. <b>Tender notices</b> (charged as <code>tender-notice</code>) are the ones a supplier can still answer: calls for tender (bandi di gara), prior information, market consultations (indagini di mercato), qualification systems and supplier lists. <b>Award notices</b> (charged as <code>award-notice</code>) tell who got a contract: award results (esiti), direct awards (affidamenti diretti, about 85 % of everything published), in-house awards, direct award pre-notices and contract modifications. Every row says its kind in <code>noticeType</code>.",
            "items": {
              "type": "string",
              "enum": [
                "calls_for_tender",
                "prior_information",
                "market_consultations",
                "qualification_systems",
                "supplier_lists",
                "award_results",
                "direct_awards",
                "in_house_awards",
                "direct_award_prenotices",
                "contract_modifications"
              ],
              "enumTitles": [
                "Calls for tender (bandi di gara)",
                "Prior information notices (avvisi di preinformazione)",
                "Market consultations (indagini di mercato)",
                "Qualification systems (sistemi di qualificazione)",
                "Supplier lists (elenchi di operatori economici)",
                "Award results (esiti di gara)",
                "Direct awards (affidamenti diretti)",
                "In-house awards (affidamenti in house)",
                "Direct award pre-notices (trasparenza preventiva)",
                "Contract modifications (modifiche contrattuali)"
              ]
            },
            "default": [
              "calls_for_tender"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Each keyword is one search of the platform, which matches it as a phrase, upper or lower case alike, inside the notice's title or description, or its contracting authority's name or codice fiscale (not inside each lot's own description). A word stem finds every ending: <code>pulizi</code> finds \"pulizia\" and \"pulizie\". Examples: <code>manutenzione</code>, <code>servizi di pulizia</code>, <code>software</code>, <code>comune di milano</code>. Leave empty for every notice that meets the filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "authorityFiscalCodes": {
            "title": "Contracting authorities (codice fiscale)",
            "type": "array",
            "description": "Only notices of these contracting authorities (stazioni appaltanti), by their codice fiscale or partita IVA, 11 digits: <code>02438750586</code> is Roma Capitale. Each one is its own search; with keywords, every keyword is searched for every authority. A code that is not valid is a free row and is not searched.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Only notices with at least one lot of these types (natura principale). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "works",
                "supplies",
                "services"
              ],
              "enumTitles": [
                "Works (lavori)",
                "Supplies (forniture)",
                "Services (servizi)"
              ]
            },
            "default": []
          },
          "minValue": {
            "title": "Minimum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices worth at least this much: the awarded amount of an award notice, the estimated amount of a tender notice. Notices without an amount (in-house awards, most supplier lists) are left out when a value is set."
          },
          "maxValue": {
            "title": "Maximum value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices worth at most this much, the same amount as the minimum."
          },
          "openOnly": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Leave out tender notices whose deadline has passed. Notices without a deadline, and award notices, are kept.",
            "default": false
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Notices published from N days ago to today (Rome time). The platform publishes once each working day at 08:00. 0 means every day since the platform began in January 2024. Ignored when a first or last publication day is set.",
            "default": 7
          },
          "publishedFrom": {
            "title": "First publication day",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Notices published on this day or later (YYYY-MM-DD). Wins over the last N days."
          },
          "publishedTo": {
            "title": "Last publication day",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Notices published on this day or earlier (YYYY-MM-DD)."
          },
          "onlyNew": {
            "title": "Only notices not delivered before",
            "type": "boolean",
            "description": "For scheduled runs: leave out every notice an earlier run with the same filters already delivered (kept in your account's key-value store <code>steadyscrape-italian-tenders-scraper-state</code>), so each run brings only what is new.",
            "default": false
          },
          "maxResultsPerSearch": {
            "title": "Maximum notices per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each keyword or authority's search after this many notices. 0 means no limit.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum notices in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the run after this many notices. 0 means no limit (a week of every kind of notice is about 25,000).",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}