# Upwork Post Details Scraper (`arlusm/upwork-post-details-scraper`)

This scraper takes direct Upwork job post URLs and extracts information such as job title, budget, description, and client data. It can optionally use a proxy server from a specified country. The results are provided in a structured JSON format for easy analysis or further processing.

- **URL**: https://beta-securitybyobscurity.apify.com/arlusm/upwork-post-details-scraper.md
- **Developed by:** [Artur](https://beta-securitybyobscurity.apify.com/arlusm) (community)
- **Categories:** Jobs, Automation, Other
- **Stats:** 83 total users, 4 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 1.00 out of 5 stars

## Pricing

$9.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## Upwork Job Post Scraper

This scraper takes individual Upwork job post **URLs** and extracts detailed information about each post (title, description, budget, etc.). It can optionally use a proxy with a specified country code to request the data.

***

### Input

The input is a JSON object that must contain at least one **startUrls** entry. It can also include an optional **proxyCountryCode**:

```json
{
  "startUrls": [
    {
      "url": "https://www.upwork.com/freelance-jobs/apply/WIX-Website-Template-Development-for-Virtual-Staging-SaaS_~021883994784056195740"
    }
  ],
  "proxyCountryCode": "FR"
}
```

#### Input Fields

| Field              | Type     | Required | Description                                                                                   | Default  |
|--------------------|----------|----------|-----------------------------------------------------------------------------------------------|----------|
| `startUrls`        | array    | yes      | An array of objects, each containing a `url` for a specific Upwork job post.                 | *none*   |
| `proxyCountryCode` | string   | no       | A two-letter country code to configure proxy usage. (e.g., `US`, `FR`) or `"LOCAL"` to disable. | `"FR"`   |

- **`startUrls`**: Each URL should be the direct link to an Upwork job post.
- **`proxyCountryCode`**: Determines where the proxy server is located. If `"LOCAL"`, no remote proxy is used.

***

### Output

The scraper outputs an **array** of job detail objects. Each job object may contain:

- **title**: Title of the job post.
- **paymentType**: Indicates if it’s an hourly or fixed-price job.
- **paymentAmount**: The proposed pay range or budget.
- **description**: Detailed text describing the job scope and requirements.
- **jobPosted**: When the job was posted (e.g., “3 days ago”).
- **lastViewedByClient**: The client’s latest activity timestamp.
- **jobType**: Usually “Remote Job” or region-limited.
- **projectType**: Complexity or nature of the project.
- **estimatedHours**: “Less than 30 hrs/week” or “More than 30 hrs/week.”
- **duration**: Project duration (e.g., “3-6 months”).
- **experienceLevel**: The experience level required (“Entry”, “Intermediate”, “Expert”).
- **clientLocation**: Where the client is located.
- **clientTotalSpent**: Total amount the client has spent on Upwork.
- **clientTotalHires**: How many freelancers the client has hired.
- **clientActiveHires**: How many of those hires are currently active.
- **clientHoursBilled**: The total hours the client has billed.
- **clientMemberSince**: The date the client joined Upwork.
- **proposals**: The range of proposals submitted (e.g., “5 to 10”).
- **interviews**: How many candidates are currently being interviewed.
- **invitesSent**: How many invitations the client sent out.
- **skills**: An array of extracted skills for the job.
- **locationRestriction**: Any geographical restriction applied to applicants (e.g., “Only freelancers located in the U.S. may apply.”).
- **contractToHire**: Boolean indicating whether it’s a “contract-to-hire” opportunity.

Example output:

```json
[
  {
    "title": "Looking for a Startup Hubspot Sales Ops and CRM Manager",
    "paymentType": "Hourly",
    "paymentAmount": "$65.00 - $110.00",
    "description": "We’re seeking a skilled and proactive freelance ...",
    "jobPosted": "3 days ago",
    "lastViewedByClient": "yesterday",
    "jobType": "Remote Job",
    "projectType": "Complex project",
    "estimatedHours": "Less than 30 hrs/week",
    "duration": "3-6 months",
    "experienceLevel": "Intermediate",
    "clientLocation": "United States",
    "clientTotalSpent": "$154K",
    "clientTotalHires": "30",
    "clientActiveHires": "9",
    "clientHoursBilled": "8,297 hours",
    "clientMemberSince": "Apr 20, 2022",
    "proposals": "20 to 50",
    "interviews": "7",
    "invitesSent": "5",
    "skills": [
      "HubSpot",
      "Marketing Automation",
      "Sales Operations",
      "Sales"
    ],
    "locationRestriction": "Only freelancers located in the U.S. may apply.",
    "contractToHire": true
  }
]
```

***

### Usage

1. **Provide the Input**: When running on Apify, add your Upwork job post URLs in `startUrls` (and optionally modify the `proxyCountryCode`).
2. **Run the Scraper**: The scraper navigates to each job URL, parses the HTML, and collects the specified data.
3. **View Results**: Once finished, the dataset will contain an array of job objects matching the above schema.

***

# Actor input Schema

## `startUrls` (type: `array`):

Job post URLs

## `proxyCountryCode` (type: `string`):

Specify the two-letter country code for remote proxies.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.upwork.com/freelance-jobs/apply/WordPress-Elementor-Expert-Needed-for-Dynamic-CPT-Content_~021898648529981357178"
    }
  ],
  "proxyCountryCode": "DE"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.upwork.com/freelance-jobs/apply/WordPress-Elementor-Expert-Needed-for-Dynamic-CPT-Content_~021898648529981357178"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("arlusm/upwork-post-details-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [{ "url": "https://www.upwork.com/freelance-jobs/apply/WordPress-Elementor-Expert-Needed-for-Dynamic-CPT-Content_~021898648529981357178" }] }

# Run the Actor and wait for it to finish
run = client.actor("arlusm/upwork-post-details-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.upwork.com/freelance-jobs/apply/WordPress-Elementor-Expert-Needed-for-Dynamic-CPT-Content_~021898648529981357178"
    }
  ]
}' |
apify call arlusm/upwork-post-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=arlusm/upwork-post-details-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Upwork Post Details Scraper",
        "description": "This scraper takes direct Upwork job post URLs and extracts information such as job title, budget, description, and client data. It can optionally use a proxy server from a specified country. The results are provided in a structured JSON format for easy analysis or further processing.",
        "version": "0.0",
        "x-build-id": "bEFcTyfvQfOtoj7dc"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/arlusm~upwork-post-details-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-arlusm-upwork-post-details-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/arlusm~upwork-post-details-scraper/runs": {
            "post": {
                "operationId": "runs-sync-arlusm-upwork-post-details-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/arlusm~upwork-post-details-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-arlusm-upwork-post-details-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",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Post URLs",
                        "type": "array",
                        "description": "Job post URLs",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "proxyCountryCode": {
                        "title": "Proxy Country Code",
                        "maxLength": 2,
                        "type": "string",
                        "description": "Specify the two-letter country code for remote proxies.",
                        "default": "DE"
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
