{
  "openapi": "3.0.1",
  "info": {
    "title": "Pracuj.pl Job Alerts: New Offers to Slack, Telegram, Webhook",
    "description": "Watch pracuj.pl searches and get only new, changed or expired job offers, with salary and link, in one alert per run to Slack, Telegram or a webhook.",
    "version": "0.1",
    "x-build-id": "P4NNrdwUzwqzCbWpt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/v0iddo~pracuj-pl-job-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-v0iddo-pracuj-pl-job-alerts",
        "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/v0iddo~pracuj-pl-job-alerts/runs": {
      "post": {
        "operationId": "runs-sync-v0iddo-pracuj-pl-job-alerts",
        "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/v0iddo~pracuj-pl-job-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-v0iddo-pracuj-pl-job-alerts",
        "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": "Search terms",
            "type": "array",
            "description": "Job titles or words such as księgowa, kierowca or Java developer. One search per term, all watched together; leave empty with a city to watch every offer there.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "City",
            "type": "string",
            "description": "Optional city or town such as Warszawa, Kraków or Gdańsk. Applies to every search term."
          },
          "distanceKm": {
            "title": "Distance (km)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How far from the city postings may be. pracuj.pl uses 0, 10, 20, 30, 50 or 100 km; other numbers are rounded down to one of those. Used only with a city.",
            "default": 30
          },
          "postedWithin": {
            "title": "Posted within",
            "enum": [
              "any",
              "1day",
              "3days",
              "7days",
              "14days",
              "30days",
              "",
              "24h"
            ],
            "type": "string",
            "description": "Only postings published in that period.",
            "default": "any"
          },
          "positionLevels": {
            "title": "Position levels",
            "type": "array",
            "description": "Optional. Only these levels; empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "intern",
                "assistant",
                "junior",
                "mid",
                "senior",
                "expert",
                "team leader",
                "manager",
                "director",
                "president",
                "manual worker",
                "1",
                "3",
                "17",
                "4",
                "18",
                "19",
                "5",
                "20",
                "6",
                "21",
                "2",
                "team-leader",
                "blue-collar"
              ],
              "enumTitles": [
                "Intern",
                "Assistant",
                "Junior",
                "Mid",
                "Senior",
                "Expert",
                "Team leader or coordinator",
                "Manager",
                "Director",
                "President",
                "Manual worker",
                "Intern: 1",
                "Assistant: 3",
                "Junior: 17",
                "Mid: 4",
                "Senior: 18",
                "Expert: 19",
                "Team leader or coordinator: 5",
                "Manager: 20",
                "Director: 6",
                "President: 21",
                "Manual worker: 2",
                "Team leader or coordinator: team-leader",
                "Manual worker: blue-collar"
              ]
            }
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Optional. Only these contract types; empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "employment contract",
                "contract for specific work",
                "mandate contract",
                "B2B",
                "replacement contract",
                "agency contract",
                "temporary employment",
                "internship",
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "permanent",
                "specific-task",
                "mandate",
                "b2b",
                "substitution",
                "agency",
                "temporary"
              ],
              "enumTitles": [
                "Employment contract",
                "Contract for specific work",
                "Mandate contract",
                "B2B",
                "Replacement contract",
                "Agency contract",
                "Temporary employment",
                "Internship",
                "Employment contract: 0",
                "Contract for specific work: 1",
                "Mandate contract: 2",
                "B2B: 3",
                "Replacement contract: 4",
                "Agency contract: 5",
                "Temporary employment: 6",
                "Internship: 7",
                "Employment contract: permanent",
                "Contract for specific work: specific-task",
                "Mandate contract: mandate",
                "B2B: b2b",
                "Replacement contract: substitution",
                "Agency contract: agency",
                "Temporary employment: temporary"
              ]
            }
          },
          "workSchedules": {
            "title": "Work schedules",
            "type": "array",
            "description": "Optional. Only these schedules; empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "full time",
                "part time",
                "additional or temporary",
                "0",
                "1",
                "2"
              ],
              "enumTitles": [
                "Full time",
                "Part time",
                "Additional or temporary",
                "Full time: 0",
                "Part time: 1",
                "Additional or temporary: 2"
              ]
            }
          },
          "workModes": {
            "title": "Work modes",
            "type": "array",
            "description": "Optional. Only these work modes; empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "onsite",
                "hybrid",
                "remote",
                "mobile",
                "full-office",
                "home-office"
              ],
              "enumTitles": [
                "On site",
                "Hybrid",
                "Remote",
                "Mobile",
                "On site: full-office",
                "Remote: home-office"
              ]
            }
          },
          "salaryOnly": {
            "title": "With a salary only",
            "type": "boolean",
            "description": "Only postings that show a salary.",
            "default": false
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Search result pages copied from your browser, for example https://www.pracuj.pl/praca/kierowca;kw/gdansk;wp?rd=30 . Filters in the URL are kept.",
            "items": {
              "type": "string"
            }
          },
          "stateKey": {
            "title": "Watch name (State key)",
            "type": "string",
            "description": "Optional name for this watch, such as warsaw_accounting. Runs with the same name share one list of known offers, so you can change the alert addresses or the limits and keep the watch. A new name starts a new watch. Leave it empty and the search fields name the watch."
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook URL",
            "type": "string",
            "description": "Optional. The address Slack's Incoming Webhooks app gives you, starting with https://hooks.slack.com/services/. Each run that finds new or updated offers posts one message there."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Optional. The token BotFather gave your bot. With a chat ID, each run that finds new or updated offers sends one message."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "The chat, group or channel your bot posts to: a number such as 123456789 or -1001234567890, or @channelname. The bot must be a member of it."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional https address that receives one JSON POST per run with the new and updated offers (title, company, city, salary, link), for Make, Zapier, n8n or your own server."
          },
          "maxOffers": {
            "title": "Offers checked per run",
            "minimum": 50,
            "maximum": 5000,
            "type": "integer",
            "description": "The run reads the searches up to this many offers. Offers are reported as expired only after a run that checked every offer, so keep it above the number your searches list.",
            "default": 1000
          },
          "includeDetails": {
            "title": "Include posting details",
            "type": "boolean",
            "description": "Read the posting page of each new or updated offer for the salary per contract type, the address, category, technologies, requirements, benefits and the description. Offers that did not change are never read twice.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many result rows. It also caps what one run can cost.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave as is: the run starts on the cheapest network the site accepts and switches to Apify Proxy automatically when the site blocks it. Pick proxy groups here only to force one specific network."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}