{
  "openapi": "3.1.0",
  "info": {
    "title": "Varosyan API",
    "version": "1.1.0",
    "summary": "Companies from official registers, public tenders and dated buying signals.",
    "description": "Company records from national registers and government procurement portals in 9 countries, each with its source and check date. A free key gives 200 calls a day and 30 a minute; paid plans from $19 a month. Every call counts as one; a 400 is free.",
    "contact": {
      "name": "Varosyan",
      "url": "https://varosyanllc.com/contact?topic=api"
    },
    "termsOfService": "https://varosyanllc.com/terms"
  },
  "externalDocs": {
    "description": "Documentation",
    "url": "https://varosyanllc.com/docs"
  },
  "servers": [
    {
      "url": "https://varosyanllc.com/api/public/v1"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "paths": {
    "/companies": {
      "get": {
        "operationId": "searchCompanies",
        "summary": "Search companies",
        "tags": [
          "Companies"
        ],
        "description": "By name or registration number, in one country or every live country, 25 a page, up to page 200.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Company name or registration number",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "A live country code, e.g. au, bh, br. Leave out for every live country.",
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "check",
                "closed",
                "unknown",
                "all"
              ]
            }
          },
          {
            "name": "industry",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "company",
                "sole_trader",
                "all"
              ]
            }
          },
          {
            "name": "branches",
            "in": "query",
            "description": "1 also returns branches",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching companies",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/companies/{country}/{slug}": {
      "get": {
        "operationId": "getCompany",
        "summary": "One company",
        "tags": [
          "Companies"
        ],
        "description": "Registrations, sites, contacts and tenders; people, signals and figures on paid plans. Register-country records also carry annual figures, events, flags, owners, branches and licence lines.",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The last part of the company's page address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "proof: the source and check date of every value",
            "schema": {
              "type": "string",
              "enum": [
                "proof"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The company",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No company at that address (not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/countries": {
      "get": {
        "operationId": "listCountries",
        "summary": "Countries covered",
        "tags": [
          "Countries"
        ],
        "responses": {
          "200": {
            "description": "Live and next countries with their counts",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountryList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/signals": {
      "get": {
        "operationId": "listSignals",
        "summary": "Dated buying signals",
        "tags": [
          "Signals"
        ],
        "description": "Newest first, 50 at most. Types: tender_won (Won a public contract); tender_bid (Bid for a public contract (Qatar and Bahrain)); open_tender (A tender opened (Qatar and Bahrain)); contract_ending (A public contract ends within 12 months: likely re-tender); newly_registered (Newly registered or licensed (Qatar and Bahrain)); new_branch (A new branch); moved_office (Moved its registered office); hiring (Hiring (Qatar and Bahrain)); announcement (Announcement or disclosure (Qatar and Bahrain)); growing (Turnover or staff up year on year); shrinking (Turnover or staff down year on year); leadership_change (A director, chief executive, chair or board member joined or left); ownership_change (A shareholder or owner joined or left); new_product (A new trade mark, patent or design); financial_risk (Insolvency, liquidation, Gazette notice, new charge, tax prohibition, suspension or strike-off); hiring_now (Open vacancies posted in the last 60 days (Latvia, Norway)); public_funding (State aid or a grant received); capital_raised (Share capital raised); acquisition (Took over or merged with another company, bought a business, or a new parent company).",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "tender_won",
                "tender_bid",
                "open_tender",
                "contract_ending",
                "newly_registered",
                "new_branch",
                "moved_office",
                "hiring",
                "announcement",
                "growing",
                "shrinking",
                "leadership_change",
                "ownership_change",
                "new_product",
                "financial_risk",
                "hiring_now",
                "public_funding",
                "capital_raised",
                "acquisition"
              ]
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "A live country code, e.g. au, bh, br. Leave out for every live country.",
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Signals",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignalList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tenders": {
      "get": {
        "operationId": "listTenders",
        "summary": "Open or awarded government tenders",
        "tags": [
          "Tenders"
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "awarded"
              ],
              "default": "open"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "A live country code, e.g. au, bh, br. Leave out for every live country.",
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Keywords in the title or reference",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tenders",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenderList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/retenders": {
      "get": {
        "operationId": "listRetenders",
        "summary": "Contracts ending soon (the re-tender radar)",
        "tags": [
          "Tenders"
        ],
        "description": "Public contracts whose award notice gives an end date 3 to 18 months from today, soonest end first, 50 a page. The incumbent and the value are on paid plans.",
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "description": "A live country code, e.g. au, bh, br. Leave out for every live country.",
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "months_from",
            "in": "query",
            "description": "Start of the window, in whole months from today",
            "schema": {
              "type": "integer",
              "minimum": 3,
              "maximum": 18,
              "default": 3
            }
          },
          {
            "name": "months_to",
            "in": "query",
            "description": "End of the window, in whole months from today; more than months_from",
            "schema": {
              "type": "integer",
              "minimum": 3,
              "maximum": 18,
              "default": 18
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Words in the contract title or the buyer's name; every word must match",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Contracts ending in the window",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetenderList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/triggers/{event}": {
      "get": {
        "operationId": "pollTrigger",
        "summary": "Polling trigger for Zapier, n8n and similar tools (Pro and above)",
        "tags": [
          "Triggers"
        ],
        "description": "The newest items first, up to 50, each with an id that never changes: poll it, and keep the ids you haven't seen. new_signals takes the signals parameters (type, country, since); new_retenders lists contracts that came into the re-tender radar's 18-month window in the last 30 days (country, q); alert_matches lists what your own alert rules found in the last 30 days (rule_id). Each poll is one call.",
        "parameters": [
          {
            "name": "event",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "new_signals",
                "new_retenders",
                "alert_matches"
              ]
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "A live country code, e.g. au, bh, br. Leave out for every live country.",
            "schema": {
              "type": "string",
              "enum": [
                "au",
                "bh",
                "br",
                "ee",
                "fr",
                "lv",
                "no",
                "qa",
                "gb"
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "new_signals: a signal type, as on /signals",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "new_retenders: words in the contract title or the buyer's name",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "rule_id",
            "in": "query",
            "description": "alert_matches: one of your alert rules",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Newest items first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "oneOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "integer"
                              }
                            ]
                          }
                        },
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's plan doesn't include triggers (plan_required), or its email isn't confirmed (email_unconfirmed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/tenders/{id}/bidders": {
      "get": {
        "operationId": "listBidders",
        "summary": "Every bidder on a Qatar or Bahrain tender (paid plans)",
        "tags": [
          "Tenders"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Bidders, with the winner and values",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a day on this plan"
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls left today"
              },
              "X-RateLimit-Limit-Minute": {
                "schema": {
                  "type": "integer"
                },
                "description": "Calls a minute on this plan"
              },
              "X-RateLimit-Reset": {
                "schema": {
                  "type": "integer"
                },
                "description": "Unix time when the daily allowance resets (midnight UTC)"
              },
              "X-Plan": {
                "schema": {
                  "type": "string"
                },
                "description": "The key's plan"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BidderList"
                }
              }
            }
          },
          "400": {
            "description": "A parameter the API can't use (invalid_parameter). Not counted against your limits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not valid (missing_key, invalid_key).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The key's account must confirm its email first (email_unconfirmed), or the data needs a paid plan (plan_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No tender with that id (not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Over the minute, daily or monthly limit (rate_limited). Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side (server_error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your API key, created free from the dashboard"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "docs": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "CompanySummary": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "check",
              "closed",
              "unknown"
            ]
          },
          "status_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "registry_no": {
            "type": [
              "string",
              "null"
            ]
          },
          "legal_form": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "is_branch": {
            "type": "boolean"
          },
          "branch_count": {
            "type": "integer"
          },
          "municipality": {
            "type": [
              "string",
              "null"
            ]
          },
          "area": {
            "type": [
              "string",
              "null"
            ]
          },
          "registers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "completeness": {
            "type": "number"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The company's page: cite it with its check date"
          }
        }
      },
      "CompanyList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanySummary"
            }
          }
        },
        "additionalProperties": true
      },
      "Company": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "The full record; fields vary by country and plan (see the docs)."
          }
        }
      },
      "CountryList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "live",
                    "next"
                  ]
                },
                "companies": {
                  "type": "integer"
                },
                "active": {
                  "type": "integer"
                },
                "sole_traders": {
                  "type": "integer"
                },
                "on_file": {
                  "type": "integer"
                },
                "branches": {
                  "type": "integer"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "SignalList": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "TenderList": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "id": {
                  "type": [
                    "integer",
                    "string"
                  ]
                },
                "country_code": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "buyer": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "value_amount": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Money is a string, to keep its exact value"
                },
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "The portal's own page, on every plan"
                }
              }
            }
          }
        }
      },
      "RetenderList": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "total": {
            "type": "integer"
          },
          "plan_note": {
            "type": "string"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {
                "id": {
                  "type": "string"
                },
                "country_code": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "buyer": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "awarded_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "contract_end": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "months_left": {
                  "type": "integer"
                },
                "value_amount": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Paid plans; money is a string"
                },
                "value_note": {
                  "type": "string"
                },
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "licence": {
                  "type": "string"
                },
                "incumbent": {
                  "type": "object",
                  "description": "Paid plans",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "BidderList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "result": {
                  "type": "string",
                  "enum": [
                    "won",
                    "bid"
                  ]
                },
                "value": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uri"
                }
              }
            }
          }
        }
      }
    }
  }
}