{
  "openapi": "3.0.1",
  "info": {
    "title": "Apna.co Jobs Scraper: India Blue & Grey Collar Listings",
    "description": "Monitor public Apna.co job listings with source-derived titles, companies, pay ranges, locations, visible work tags, and change detection. Export flat JSON or CSV with stable IDs for scheduled workflows.",
    "version": "1.3",
    "x-build-id": "Sz7My8iMbIcFYHw2L"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~apna-co-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-apna-co-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/getascraper~apna-co-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-apna-co-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/getascraper~apna-co-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-apna-co-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": {
          "startUrls": {
            "title": "Apna job-search URLs",
            "type": "array",
            "description": "Optional batch of public Apna job-search URLs. When supplied, these URLs replace generated keyword and city searches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "url": {
            "title": "Single Apna job-search URL (legacy)",
            "type": "string",
            "description": "Backward-compatible single public search URL. It is added to the URL list when both are supplied.",
            "default": ""
          },
          "keyword": {
            "title": "Job keyword",
            "type": "string",
            "description": "Role or specialty used for generated searches when no URLs are supplied.",
            "default": "software engineer"
          },
          "locations": {
            "title": "Cities and aliases",
            "type": "array",
            "description": "Optional cities for generated searches. Known aliases such as Bangalore and Bengaluru resolve to Apna's combined route.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Single city (legacy)",
            "type": "string",
            "description": "Backward-compatible city for one generated search when Cities and aliases is empty.",
            "default": "Bengaluru/Bangalore"
          },
          "cityAliases": {
            "title": "Strict result city filter",
            "type": "array",
            "description": "Keep listings whose published location matches any city or known alias, useful with broad or supplied search URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories or departments",
            "type": "array",
            "description": "Keep listings whose source-published category or department matches any supplied value.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "jobTypes": {
            "title": "Job type or work mode",
            "type": "array",
            "description": "Keep listings whose published job type, work mode, or visible work tag matches any supplied value, for example Full Time or Work from Home.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "educationLevels": {
            "title": "Education requirements",
            "type": "array",
            "description": "Keep listings whose source-published education requirement matches any supplied value.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "shifts": {
            "title": "Shifts",
            "type": "array",
            "description": "Keep listings whose source-published shift matches any supplied value.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dateWithinDays": {
            "title": "Posted within days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Keep only listings whose source-published created_on date is within this many days. A positive value excludes rows without a valid source date.",
            "default": 0
          },
          "monitoringMode": {
            "title": "Monitoring output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "All listings emits every matching row and its change status. New and updated only emits only first-seen or changed listings while refreshing saved state.",
            "default": "all"
          },
          "stateKey": {
            "title": "Monitoring state key",
            "type": "string",
            "description": "Optional stable name for saved monitoring state. Reuse the same key for the same search scope.",
            "default": ""
          },
          "resetMonitoringState": {
            "title": "Reset saved monitoring state",
            "type": "boolean",
            "description": "Start this run as a new baseline for the selected state key. This does not alter prior dataset records.",
            "default": false
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the source-published plain-text description when the listing payload contains it.",
            "default": true
          },
          "includeCompanyDetails": {
            "title": "Include company details",
            "type": "boolean",
            "description": "Include source-published organization identifiers, logo URL, and company address details when available.",
            "default": true
          },
          "includeLocationDetails": {
            "title": "Include location details",
            "type": "boolean",
            "description": "Include source-published address components and coordinates when available.",
            "default": true
          },
          "includeRequirements": {
            "title": "Include job requirements",
            "type": "boolean",
            "description": "Include source-published experience, education, English, shift, employment, and work-tag fields when available.",
            "default": true
          },
          "includeSalary": {
            "title": "Include salary details",
            "type": "boolean",
            "description": "Include source-published minimum pay, maximum pay, and pay period when available.",
            "default": true
          },
          "includeContactPreferences": {
            "title": "Include public contact preference flags",
            "type": "boolean",
            "description": "Include only source-published call and WhatsApp preference flags. The Actor never extracts phone numbers or WhatsApp identifiers.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum output rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap across every supplied source URL. In new-and-updated-only mode, unchanged listings do not consume the cap.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum source pages per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on listing pages fetched for each search URL. Each public page typically carries about 25 listings.",
            "default": 20
          },
          "maxConcurrency": {
            "title": "Maximum parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Concurrent page requests. Lower values are gentler for scheduled collection.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retry count for a failed public search page.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional network routing. Direct HTTP is the default; choose Apify datacenter proxy for low-volume runs only when direct access is unavailable.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}