{
  "openapi": "3.0.1",
  "info": {
    "title": "Employer Jobs Index: Search Your Authorized Feeds",
    "description": "Build a private, searchable index from authorized job snapshots or public feed URLs. Filter jobs, compare observations and inspect incomplete feeds.",
    "version": "0.1",
    "x-build-id": "qiyahHBD5YAJrNDlI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~employer-jobs-index/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-employer-jobs-index",
        "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/zaiq~employer-jobs-index/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-employer-jobs-index",
        "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/zaiq~employer-jobs-index/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-employer-jobs-index",
        "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": "Mode",
            "enum": [
              "demo",
              "update",
              "search"
            ],
            "type": "string",
            "description": "demo shows synthetic data for free; update imports or fetches authorized snapshots; search reads an existing index."
          },
          "indexName": {
            "title": "Private index name",
            "type": "string",
            "description": "Same name reopens your private index. Use a different name for each dataset and run updates sequentially."
          },
          "datasetIds": {
            "title": "Authorized input datasets",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Select each buyer-owned or authorized input dataset. In exactly one board per dataset, set datasetId to the same selected ID. Every selected dataset must be bound to one board. Only selected datasets receive read access."
          },
          "indexStoreId": {
            "title": "Existing private index store (optional)",
            "type": "string",
            "description": "Select an existing buyer-owned key-value store for one index, with read and write access. Reuse the same store for updates and searches; indexName is ignored. If omitted, the Actor uses its legacy indexName-based store; cloud permissions for that path must be verified."
          },
          "boards": {
            "title": "Authorized board manifest",
            "type": "array",
            "description": "Up to 20 authorized board objects: id, employer, authorized:true, observedAt, complete and exactly one of jobs, csv, datasetId or feedUrl. A datasetId must match exactly one top-level selected dataset in datasetIds. Optional selectedJobIds imports matching IDs and marks the feed incomplete. Max 5,000 rows and 2 MB per feed. Set synthetic:true for fictional rows; those rows are labeled and free.",
            "items": {
              "type": "object"
            }
          },
          "allowFetch": {
            "title": "Fetch authorized public feed URLs",
            "type": "boolean",
            "description": "Opt in to direct GET requests for feedUrl entries that you own or are expressly authorized to use. No logins or credentials.",
            "default": false
          },
          "role": {
            "title": "Role contains",
            "type": "string",
            "description": "Case-insensitive text in the job title.",
            "default": ""
          },
          "location": {
            "title": "Location contains",
            "type": "string",
            "description": "Case-insensitive text in the recorded location.",
            "default": ""
          },
          "employer": {
            "title": "Employer contains",
            "type": "string",
            "description": "Case-insensitive text in the employer name.",
            "default": ""
          },
          "observedFrom": {
            "title": "Observed on or after",
            "type": "string",
            "description": "Optional ISO date, inclusive; filters the last observation date.",
            "default": ""
          },
          "observedTo": {
            "title": "Observed on or before",
            "type": "string",
            "description": "Optional ISO date, inclusive; filters the last observation date.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum returned jobs",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum matched job rows, including any already delivered in a restarted run."
          },
          "maxAgeDays": {
            "title": "Maximum observation age in days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional UTC age filter; 0 means observed today."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}