{
  "openapi": "3.0.1",
  "info": {
    "title": "Greek Government Decisions Search (Diavgeia)",
    "description": "Search official Greek government decisions, public contract awards and tenders from Diavgeia. Returns structured data with amounts, contractors and PDF links.",
    "version": "0.1",
    "x-build-id": "v9DDcfPAtAgUzeBd5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jimkarageo~greek-diavgeia-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jimkarageo-greek-diavgeia-search",
        "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/jimkarageo~greek-diavgeia-search/runs": {
      "post": {
        "operationId": "runs-sync-jimkarageo-greek-diavgeia-search",
        "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/jimkarageo~greek-diavgeia-search/run-sync": {
      "post": {
        "operationId": "run-sync-jimkarageo-greek-diavgeia-search",
        "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 / Λέξεις-κλειδιά",
            "uniqueItems": true,
            "type": "array",
            "description": "Words to search for in the decision subject. IMPORTANT: Diavgeia matches the EXACT word form with no stemming, so use the form that appears in Greek documents (e.g. 'προμηθεία', 'υπολογιστών'). A multi-word entry is treated as an exact phrase. Each entry runs as a separate search and results are merged. | Λέξεις για αναζήτηση στο θέμα της απόφασης. ΠΡΟΣΟΧΗ: η Διαύγεια κάνει ακριβές ταίριασμα λέξης χωρίς λημματοποίηση, γι' αυτό γράψε τη λέξη όπως εμφανίζεται στα έγγραφα. Πολλές λέξεις μαζί = ακριβής φράση.",
            "items": {
              "type": "string"
            }
          },
          "organization": {
            "title": "Organization / Φορέας",
            "type": "string",
            "description": "Public body name, Diavgeia code or 9-digit VAT number (ΑΦΜ) of the organization. Names are matched against the official Diavgeia catalogue, accent- and case-insensitive (e.g. 'Δήμος Αθηναίων' resolves to code 6013). Leave empty to search all bodies. | Όνομα φορέα, κωδικός Διαύγειας ή ΑΦΜ φορέα. Τα ονόματα αντιστοιχίζονται στον επίσημο κατάλογο, χωρίς να μετράνε τόνοι και κεφαλαία."
          },
          "decisionTypes": {
            "title": "Decision types / Τύποι πράξεων",
            "uniqueItems": true,
            "type": "array",
            "description": "Which kinds of decisions to return. Each selected type runs as a separate search and results are merged. Leave empty for all types. | Ποιους τύπους πράξεων να επιστρέψει. Κενό = όλοι οι τύποι.",
            "items": {
              "type": "string",
              "enum": [
                "awards",
                "tenders",
                "contract_awards",
                "contracts",
                "payments",
                "expense_approvals",
                "commitments",
                "grants",
                "investment_approvals",
                "regulatory",
                "circulars",
                "appointments",
                "job_postings"
              ],
              "enumTitles": [
                "Awards of works/supplies/services (Δ.1 Αναθέσεις)",
                "Tender notices (Δ.2.1 Διακηρύξεις)",
                "Contract awards (Δ.2.2 Κατακυρώσεις)",
                "Contracts (Γ.3.4 Συμβάσεις)",
                "Finalised payments (Β.2.2 Οριστικοποίηση πληρωμής)",
                "Expense approvals (Β.2.1 Έγκριση δαπάνης)",
                "Budget commitments (Β.1.3 Ανάληψη υποχρέωσης)",
                "Grants & subsidies (Β.4 Δωρεά - Επιχορήγηση)",
                "Investment law approvals (Ε.1 Πράξη υπαγωγής επενδύσεων)",
                "Regulatory acts (Α.2 Κανονιστική πράξη)",
                "Circulars (Α.3 Εγκύκλιοι)",
                "Appointments (Γ.3.3 Διορισμοί)",
                "Job postings (Γ.3.1 Προκηρύξεις θέσεων)"
              ]
            }
          },
          "dateFrom": {
            "title": "Date from / Ημερομηνία από",
            "type": "string",
            "description": "Earliest decision issue date, format YYYY-MM-DD. Defaults to 6 months before 'Date to'. | Παλαιότερη ημερομηνία έκδοσης, μορφή YYYY-MM-DD. Προεπιλογή: 6 μήνες πριν το 'Ημερομηνία έως'."
          },
          "dateTo": {
            "title": "Date to / Ημερομηνία έως",
            "type": "string",
            "description": "Latest decision issue date, format YYYY-MM-DD. Defaults to today. | Νεότερη ημερομηνία έκδοσης, μορφή YYYY-MM-DD. Προεπιλογή: σήμερα."
          },
          "minAmount": {
            "title": "Minimum amount (EUR) / Ελάχιστο ποσό (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return decisions whose award amount is at least this value. Decisions with no amount in their metadata are excluded when this is set. Diavgeia has no server-side amount filter, so this is applied after fetching. | Επιστρέφει μόνο αποφάσεις με ποσό τουλάχιστον αυτό. Αποφάσεις χωρίς ποσό εξαιρούνται όταν οριστεί."
          },
          "maxResults": {
            "title": "Maximum results / Μέγιστα αποτελέσματα",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of decisions 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}