{
  "openapi": "3.0.1",
  "info": {
    "title": "Rojgarlive government jobs monitor",
    "description": "Track public Rojgarlive government job alerts, deadlines, and official links as structured change-aware records.",
    "version": "0.1",
    "x-build-id": "KUBRnZEumeYagzatO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~rojgarlive-jobs-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-rojgarlive-jobs-monitor",
        "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/getascraper~rojgarlive-jobs-monitor/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-rojgarlive-jobs-monitor",
        "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/getascraper~rojgarlive-jobs-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-rojgarlive-jobs-monitor",
        "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": {
          "mode": {
            "title": "Collection mode",
            "enum": [
              "latestFeed",
              "search",
              "categoryBackfill",
              "urls"
            ],
            "type": "string",
            "description": "Choose a bounded public feed, search, category page, or specific article URLs.",
            "default": "latestFeed"
          },
          "categories": {
            "title": "Rojgarlive categories",
            "maxItems": 6,
            "type": "array",
            "description": "Public categories used by the latest feed and category backfill modes.",
            "items": {
              "type": "string",
              "enum": [
                "sarkari-naukri",
                "admit-card",
                "result",
                "answer-key",
                "exam-date",
                "syllabus"
              ],
              "enumTitles": [
                "Sarkari Naukri",
                "Admit cards",
                "Results",
                "Answer keys",
                "Exam dates",
                "Syllabus"
              ]
            },
            "default": [
              "sarkari-naukri"
            ]
          },
          "searchQueries": {
            "title": "Search queries",
            "maxItems": 10,
            "type": "array",
            "description": "Words such as railway, SSC, bank, police, or teaching for search mode.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": [
              "railway"
            ]
          },
          "articleUrls": {
            "title": "Specific public article URLs",
            "maxItems": 25,
            "type": "array",
            "description": "Optional Rojgarlive article URLs. Use this mode when a particular notice matters.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "Article URL",
                  "description": "A public Rojgarlive article URL."
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "includeNonJobUpdates": {
            "title": "Include non-job updates",
            "type": "boolean",
            "description": "Include category records that do not clearly mention recruitment, exams, results, or applications.",
            "default": false
          },
          "organizationKeywords": {
            "title": "Organization keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Optional case-insensitive organisation words, such as SBI, IOCL, UPSC, or Railway.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": []
          },
          "titleKeywords": {
            "title": "Title keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Optional case-insensitive title words used after source discovery.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": []
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Optional ISO date or timestamp filter.",
            "default": ""
          },
          "closingBefore": {
            "title": "Closing before",
            "type": "string",
            "description": "Optional ISO date. Records with a parsed deadline after this date are skipped.",
            "default": ""
          },
          "onlyOpen": {
            "title": "Only open applications",
            "type": "boolean",
            "description": "Keep only records with a parsed deadline today or later.",
            "default": false
          },
          "includeDetails": {
            "title": "Enrich with public article details",
            "type": "boolean",
            "description": "Read bounded article pages for labelled tables, JobPosting metadata, dates, and official links.",
            "default": true
          },
          "includeOfficialLinks": {
            "title": "Include official links",
            "type": "boolean",
            "description": "Keep notification, application, PDF, and official-site links found on the public article.",
            "default": true
          },
          "includeJobPostingMetadata": {
            "title": "Include JobPosting metadata",
            "type": "boolean",
            "description": "Include structured title, dates, employer, locations, and employment type when published.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum notices saved in this run.",
            "default": 25
          },
          "maxPages": {
            "title": "Maximum listing pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum category or search pages requested per source query.",
            "default": 1
          },
          "maxDetailRequests": {
            "title": "Maximum detail pages",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum article pages used for enrichment.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Request concurrency",
            "minimum": 1,
            "maximum": 6,
            "type": "integer",
            "description": "Maximum simultaneous public requests.",
            "default": 2
          },
          "outputMode": {
            "title": "Rows to save",
            "enum": [
              "changesOnly",
              "allMatches"
            ],
            "type": "string",
            "description": "Use changes only for alerts or every matching record for a current snapshot.",
            "default": "changesOnly"
          },
          "stateKey": {
            "title": "Monitoring state name",
            "type": "string",
            "description": "Separate independent watchlists by name. State advances only after discovery completes.",
            "default": "rojgarlive-default"
          },
          "retries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Bounded retry attempts for temporary source failures.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Optional proxy configuration",
            "type": "object",
            "description": "Optional Apify proxy override. Leave empty for the lowest-cost direct connection.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}