{
  "openapi": "3.0.1",
  "info": {
    "title": "Latvia Company Register & Financials Scraper - UR Open Data",
    "description": "Latvia company register scraper and API (UR open data): Latvian B2B company lists for Baltic lead generation by town, legal form and registration date, with financials. One result = one company: reg. number, name, address, status, employees, turnover, profit. $0.90 per 1,000.",
    "version": "1.0",
    "x-build-id": "gpwW6PW3OSEhNNSzI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~latvia-company-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-latvia-company-register",
        "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/rel8ble~latvia-company-register/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-latvia-company-register",
        "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/rel8ble~latvia-company-register/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-latvia-company-register",
        "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": {
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Town or municipality in the legal address, e.g. \"Rīga\", \"Liepāja\", \"Daugavpils\", \"Jelgava\", \"Mārupes nov.\". Accents optional. Each town is its own search.",
            "items": {
              "type": "string"
            }
          },
          "nameWords": {
            "title": "Name words",
            "type": "array",
            "description": "A word of the company name, e.g. \"logistics\", \"baltic\", \"koks\". Each is its own search, combined with every town.",
            "items": {
              "type": "string"
            }
          },
          "companyTypes": {
            "title": "Legal forms",
            "type": "array",
            "description": "Keep only these legal forms. SIA = limited company, AS = joint-stock company. Empty = all business and non-profit forms (person-run forms such as individual merchants are never output).",
            "items": {
              "type": "string",
              "enum": [
                "SIA",
                "AS",
                "KS",
                "PS",
                "FIL",
                "AKF",
                "PAR",
                "KB",
                "ZEM",
                "ZVJ",
                "BDR",
                "NOD",
                "PSV",
                "VU",
                "LIG",
                "PAJ",
                "PAP",
                "ARB",
                "DRZ",
                "PP",
                "SKT",
                "EVS"
              ],
              "enumTitles": [
                "SIA - Limited liability company (SIA)",
                "AS - Joint-stock company (AS)",
                "KS - Limited partnership (KS)",
                "PS - General partnership (PS)",
                "FIL - Branch (Filiāle)",
                "AKF - Branch of a foreign company",
                "PAR - Representative office",
                "KB - Cooperative society",
                "ZEM - Farm (Zemnieku saimniecība)",
                "ZVJ - Fishing farm",
                "BDR - Association (Biedrība)",
                "NOD - Foundation (Nodibinājums)",
                "PSV - Municipal enterprise",
                "VU - State enterprise",
                "LIG - Contractual partnership with full liability",
                "PAJ - Share company",
                "PAP - Company with additional liability",
                "ARB - Trade union",
                "DRZ - Congregation",
                "PP - Political party",
                "SKT - Court of arbitration",
                "EVS - European company (SE)"
              ]
            }
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Use it for newly founded companies; results run newest first and stop at this date."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "registrationNumbers": {
            "title": "Registration numbers",
            "type": "array",
            "description": "Look up exact companies by their 11-digit registration number, e.g. \"40003032949\".",
            "items": {
              "type": "string"
            }
          },
          "sortOrder": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "newest = most recently registered first (new-company leads). oldest = longest-established first (companies with annual reports and staff). The registration date window ends the search at its far end.",
            "default": "newest"
          },
          "activeOnly": {
            "title": "Active companies only",
            "type": "boolean",
            "description": "On: liquidated, reorganised and struck-off entities are left out.",
            "default": true
          },
          "includeFinancials": {
            "title": "Add financials",
            "type": "boolean",
            "description": "On: adds employees, net turnover, net income, total assets and equity from the newest annual report on file (3 extra requests per 100 companies). New companies have no report yet.",
            "default": true
          },
          "minEmployees": {
            "title": "Min employees",
            "minimum": 0,
            "type": "integer",
            "description": "Keep companies whose newest report shows at least this many employees. Others are read but not saved and not charged. 0 = no limit.",
            "default": 0
          },
          "minTurnover": {
            "title": "Min turnover (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep companies whose newest report shows at least this net turnover. 0 = no limit.",
            "default": 0
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Rows to save per search, in the chosen order. 0 = everything that matches. You pay per row saved, so start small.",
            "default": 100
          },
          "maxRequestRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per failed request.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}