$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://www.linkedin.com/jobs/search/?f_TPR=r604800&geoId=100025096&keywords=data+scientist"
< }
< ],
< "keyword": [
< "Software Engineer"
< ],
< "locations": [
< "Montreal, Canada"
< ],
< "publishedAt": "r86400",
< "aiQuestions": [
< {
< "id": "workModel",
< "question": "Is this job remote, hybrid or on site?",
< "choices": [
< "remote | Work fully from home",
< "hybrid | Mix of office and home",
< "on-site | Work fully at the employer's location",
< "unknown | The description does not say"
< ],
< "expected": [
< "remote",
< "hybrid"
< ]
< },
< {
< "id": "visaSponsorship",
< "question": "Does the employer offer visa sponsorship?",
< "choices": [
< "yes | The description says visa sponsorship or work permit support is offered",
< "no | The description says sponsorship is not offered or work authorization is required",
< "unknown | The description does not mention it"
< ],
< "expected": [
< "yes"
< ]
< },
< {
< "id": "language",
< "question": "Which languages must the candidate speak?",
< "choices": [
< "english only",
< "french only",
< "english and french | Fluency in both languages is required",
< "other | Any other language requirement",
< "unknown | The description does not say"
< ]
< }
< ],
< "resumeKeywords": [
< {
< "keyword": "TypeScript",
< "aliases": [
< "TS",
< "JS",
< "JavaScript"
< ]
< },
< {
< "keyword": "Node.js",
< "aliases": [
< "Node",
< "NodeJS"
< ]
< },
< {
< "keyword": "React",
< "aliases": [
< "RN",
< "React Native",
< "Expo",
< "ReactJS"
< ]
< },
< {
< "keyword": "SQL",
< "aliases": [
< "PostgreSQL"
< ]
< },
< {
< "keyword": "Tools",
< "aliases": [
< "Git",
< "Docker",
< "Jira",
< "Postman",
< "GitHub",
< "GitLab",
< "GitHub Copilot",
< "Webpack"
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/cheap_scraper~linkedin-job-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'