{
  "openapi": "3.1.0",
  "info": {
    "title": "Employ IR openbare API",
    "version": "1.0.0",
    "description": "Read-only API met de actuele openbare vacatures en contactgegevens van Employ International Recruitment (Employ IR B.V.). Zonder sleutel. Dezelfde gegevens zijn beschikbaar via de MCP-server op https://www.employir.com/mcp. Solliciteren en inschrijven gaan niet via deze API maar via de vacaturepagina op de site.",
    "contact": {
      "name": "Employ IR",
      "email": "info@employir.com",
      "url": "https://www.employir.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://www.employir.com"
    }
  ],
  "paths": {
    "/api/v1/vacatures": {
      "get": {
        "operationId": "zoekVacatures",
        "summary": "Zoek actuele vacatures, of haal één vacature op met slug",
        "description": "Zonder slug: zoekt in de actuele openbare technische vacatures in Nederland (maximaal twintig resultaten). Met slug: geeft de volledige openbare inhoud van één vacature.",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 160,
              "pattern": "^[a-z0-9-]+$"
            },
            "description": "Vacatureslug uit een zoekresultaat; geeft één vacature terug."
          },
          {
            "name": "zoekterm",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Functietitel, vakgebied of andere zoekterm."
          },
          {
            "name": "plaats",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            },
            "description": "Plaats in Nederland."
          },
          {
            "name": "sector",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            },
            "description": "Sector of branche."
          },
          {
            "name": "uren",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "fulltime",
                "parttime"
              ]
            },
            "description": "Gewenste omvang van het dienstverband."
          },
          {
            "name": "minimumSalaris",
            "in": "query",
            "schema": {
              "type": "number",
              "minimum": 0
            },
            "description": "Gewenst minimumsalaris per maand."
          },
          {
            "name": "limiet",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            },
            "description": "Maximumaantal resultaten."
          },
          {
            "name": "taal",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "nl",
                "en",
                "af"
              ],
              "default": "nl"
            },
            "description": "Taal van titels, teksten en links."
          }
        ],
        "responses": {
          "200": {
            "description": "Zoekresultaat, of één vacature als slug is meegegeven.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "required": [
                        "aantal",
                        "getoond",
                        "vacatures"
                      ],
                      "properties": {
                        "aantal": {
                          "type": "integer"
                        },
                        "getoond": {
                          "type": "integer"
                        },
                        "vacatures": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Vacature"
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/VacatureDetails"
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Vacature met deze slug niet gevonden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fout"
                }
              }
            }
          },
          "405": {
            "description": "Alleen GET is toegestaan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fout"
                }
              }
            }
          },
          "503": {
            "description": "De vacaturebron is tijdelijk niet bereikbaar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fout"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vestigingen": {
      "get": {
        "operationId": "vestigingen",
        "summary": "Vestigings- en contactgegevens",
        "responses": {
          "200": {
            "description": "De vestigingen van Employ IR.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "vestigingen"
                  ],
                  "properties": {
                    "vestigingen": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Vestiging"
                      }
                    }
                  }
                }
              }
            }
          },
          "405": {
            "description": "Alleen GET is toegestaan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fout"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Vacature": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Vacatureslug, bruikbaar als parameter slug."
          },
          "titel": {
            "type": "string"
          },
          "plaats": {
            "type": "string"
          },
          "uren": {
            "type": "string"
          },
          "dienstverband": {
            "type": "string"
          },
          "sector": {
            "type": "string"
          },
          "salaris": {
            "type": "string"
          },
          "samenvatting": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Officiële vacaturepagina; solliciteren gaat altijd via deze pagina."
          }
        }
      },
      "VacatureDetails": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Vacature"
          },
          {
            "type": "object",
            "properties": {
              "beschrijving": {
                "type": "string"
              },
              "contactpersoon": {
                "type": "string"
              },
              "contact": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "telefoon": {
                    "type": "string"
                  }
                }
              },
              "solliciteren": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        ]
      },
      "Vestiging": {
        "type": "object",
        "properties": {
          "naam": {
            "type": "string"
          },
          "straat": {
            "type": "string"
          },
          "postcode": {
            "type": "string"
          },
          "plaats": {
            "type": "string"
          },
          "land": {
            "type": "string"
          },
          "telefoon": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "website": {
            "type": "string"
          }
        }
      },
      "Fout": {
        "type": "object",
        "required": [
          "fout"
        ],
        "properties": {
          "fout": {
            "type": "string",
            "description": "Foutmelding in het Nederlands."
          }
        }
      }
    }
  }
}
