{
  "openapi": "3.0.1",
  "info": {
    "title": "Upwork Job Scraper",
    "description": "Scrape Upwork job listings with keyword or search-URL filters. Get titles, budgets, skills, client signals, and posting times in structured JSON.",
    "version": "0.0",
    "x-build-id": "Gs30QgeG0tqrsSA3f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/powerai~upwork-job-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-powerai-upwork-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/powerai~upwork-job-scraper/runs": {
      "post": {
        "operationId": "runs-sync-powerai-upwork-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/powerai~upwork-job-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-powerai-upwork-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 query",
            "type": "string",
            "description": "Keywords to search for in Upwork jobs. Optional if Search URL is provided."
          },
          "searchUrl": {
            "title": "Search URL",
            "type": "string",
            "description": "Optional Upwork jobs search URL (must be from upwork.com and include nx/search/jobs). When set, it overrides constructed search parameters."
          },
          "experienceLevels": {
            "title": "Experience levels",
            "type": "array",
            "description": "Filter by required experience level.",
            "items": {
              "type": "string",
              "enum": [
                "entry",
                "intermediate",
                "expert"
              ],
              "enumTitles": [
                "Entry",
                "Intermediate",
                "Expert"
              ]
            }
          },
          "paymentTypes": {
            "title": "Payment types",
            "type": "array",
            "description": "Filter by fixed-price and/or hourly jobs.",
            "items": {
              "type": "string",
              "enum": [
                "fixed",
                "hourly"
              ],
              "enumTitles": [
                "Fixed price",
                "Hourly"
              ]
            }
          },
          "requirePaymentVerified": {
            "title": "Payment verified only",
            "type": "boolean",
            "description": "Only include jobs from clients with verified payment methods.",
            "default": false
          },
          "fixedBudgetRange": {
            "title": "Fixed budget range (USD)",
            "minItems": 2,
            "maxItems": 2,
            "type": "array",
            "description": "Min and max fixed-price budget in USD, e.g. 100 and 1000.",
            "items": {
              "type": "string"
            }
          },
          "hourlyBudgetRange": {
            "title": "Hourly rate range (USD/hr)",
            "minItems": 2,
            "maxItems": 2,
            "type": "array",
            "description": "Min and max hourly rate in USD/hour, e.g. 20 and 50.",
            "items": {
              "type": "string"
            }
          },
          "clientHireHistory": {
            "title": "Client hire history",
            "type": "array",
            "description": "Filter by how many people the client has hired before.",
            "items": {
              "type": "string",
              "enum": [
                "noHires",
                "1to9Hires",
                "10+Hires"
              ],
              "enumTitles": [
                "No hires",
                "1–9 hires",
                "10+ hires"
              ]
            }
          },
          "clientLocations": {
            "title": "Client locations",
            "type": "array",
            "description": "Filter by client region, subregion, or country, e.g. United States, Europe, Australia.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "relevance"
            ],
            "type": "string",
            "description": "Sort job listings by newest or relevance.",
            "default": "newest"
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Page number to start scraping from.",
            "default": 1
          },
          "maxPages": {
            "title": "Pages to scrape",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many pages to scrape starting from Start page.",
            "default": 1
          },
          "jobsPerPage": {
            "title": "Jobs per page",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Number of jobs requested per page (minimum 10).",
            "default": 50
          },
          "maxAgeValue": {
            "title": "Max job age value",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep jobs newer than this age value (combined with Max job age unit)."
          },
          "maxAgeUnit": {
            "title": "Max job age unit",
            "enum": [
              "minutes",
              "hours",
              "days",
              "weeks"
            ],
            "type": "string",
            "description": "Unit for Max job age value."
          },
          "matchRules": {
            "title": "Match rules",
            "type": "array",
            "description": "Advanced filters on job fields as JSON objects. Each rule needs key, operator (includes / equals / notIncludes / notEquals), and value (string, string array, or null). Example keys: title, description, tags, experienceLevel, allowedApplicantCountries.",
            "items": {
              "type": "object"
            }
          },
          "sessionCookies": {
            "title": "Session cookies (optional)",
            "type": "array",
            "description": "Optional override cookies if you prefer your own Upwork session. Usually not needed — authenticated scraping works by default. Provide JSON objects with name and value (e.g. master_access_token).",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}