{
  "openapi": "3.0.1",
  "info": {
    "title": "CV.lv Job Scraper",
    "description": "Extract structured job listings from CV.lv — Latvia's #1 job board. Filter by keyword, city, job category, and work schedule. Salary data (monthly/hourly), full descriptions, and dedup support included.",
    "version": "0.0",
    "x-build-id": "tL4ihKPy0XEdpIiGp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unfenced-group~cv-lv-job-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unfenced-group-cv-lv-job-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/unfenced-group~cv-lv-job-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unfenced-group-cv-lv-job-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/unfenced-group~cv-lv-job-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unfenced-group-cv-lv-job-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": {
          "searchQuery": {
            "title": "Search keywords",
            "type": "string",
            "description": "Job title or keyword. Supports Latvian, Russian, and English. Example: 'programmētājs', 'vadītājs', 'developer', 'бухгалтер'.",
            "default": ""
          },
          "towns": {
            "title": "Cities / Towns",
            "type": "array",
            "description": "Filter by Latvian city name(s) or city ID(s). Accepts: 'Riga', 'Daugavpils', 'Jelgava', 'Liepaja', 'Jurmala', 'Valmiera', 'Ventspils', 'Marupe'. Case-insensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Job categories",
            "type": "array",
            "description": "Filter by one or more job categories.",
            "items": {
              "type": "string",
              "enum": [
                "INFORMATION_TECHNOLOGY",
                "SALES",
                "ADMINISTRATION",
                "FINANCE_ACCOUNTING",
                "BANKING_INSURANCE",
                "PRODUCTION_MANUFACTURING",
                "LOGISTICS_TRANSPORT",
                "TECHNICAL_ENGINEERING",
                "SERVICE_INDUSTRY",
                "TRADE",
                "CONSTRUCTION_REAL_ESTATE",
                "HEALTH_SOCIAL_CARE",
                "HUMAN_RESOURCES",
                "MARKETING_ADVERTISING",
                "ORGANISATION_MANAGEMENT",
                "LAW_LEGAL",
                "EDUCATION_SCIENCE",
                "ELECTRONICS_TELECOM",
                "ENERGETICS_ELECTRICITY",
                "QUALITY_ASSURANCE",
                "AGRICULTURE_ENVIRONMENTAL",
                "PHARMACY",
                "SECURITY_RESCUE_DEFENCE",
                "MEDIA_PR",
                "TOURISM_HOTELS_CATERING",
                "STATE_PUBLIC_ADMIN",
                "FOREST_WOODCUTTING",
                "CULTURE_ENTERTAINMENT",
                "SEASONAL",
                "INTERNSHIP",
                "OTHER"
              ],
              "enumTitles": [
                "IT & Telecommunications",
                "Sales",
                "Administration",
                "Finance & Accounting",
                "Banking & Insurance",
                "Production & Manufacturing",
                "Logistics & Transport",
                "Technical Engineering",
                "Customer Service",
                "Trade",
                "Construction & Real Estate",
                "Health & Social Care",
                "Human Resources",
                "Marketing & Advertising",
                "Organisation Management",
                "Law & Legal",
                "Education & Science",
                "Electronics & Telecom",
                "Energy & Electricity",
                "Quality Assurance",
                "Agriculture & Environmental",
                "Pharmacy",
                "Security, Rescue & Defence",
                "Media & PR",
                "Tourism, Hotels & Catering",
                "State & Public Admin",
                "Forestry & Woodworking",
                "Culture & Entertainment",
                "Seasonal & Temporary",
                "Internship",
                "Other"
              ]
            },
            "default": []
          },
          "workTimes": {
            "title": "Work time",
            "type": "array",
            "description": "Filter by work time type.",
            "items": {
              "type": "string",
              "enum": [
                "FULL_TIME",
                "PART_TIME",
                "PRACTICE",
                "FREELANCE",
                "FIXED_TERM",
                "FULL_TIME_WITH_SHIFTS"
              ],
              "enumTitles": [
                "Full-time",
                "Part-time",
                "Practice / Internship",
                "Freelance",
                "Fixed-term",
                "Full-time with shifts"
              ]
            },
            "default": []
          },
          "isRemoteWork": {
            "title": "Remote work only",
            "type": "boolean",
            "description": "Only return remote or hybrid work positions.",
            "default": false
          },
          "salaryFrom": {
            "title": "Minimum salary (EUR/month)",
            "minimum": 1,
            "type": "integer",
            "description": "Filter to jobs offering at least this gross monthly salary in EUR."
          },
          "daysOld": {
            "title": "Max age (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only return jobs published within this many days. Leave empty to return all."
          },
          "skipReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Skip jobs that have been renewed/reposted (renewedDate differs from publishDate). Cross-run deduplication with 90-day memory is always active.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of jobs to extract. Default: 100.",
            "default": 100
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional list of direct vacancy URLs to scrape. When provided, the search filters above are ignored.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "fetchDetails": {
            "title": "Fetch detail pages",
            "type": "boolean",
            "description": "Fetch full job details from individual listing pages (richer description and categories).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}