1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jobs": [
10 {
11 "title": "Senior Python Engineer (Remote, EU)",
12 "description": "We are hiring a senior backend engineer with 5+ years of Python, FastAPI and PostgreSQL. Experience with AWS and Docker is a plus. You communicate clearly in English; German is nice to have. Remote within the EU (CET +/- 2 hours). Salary EUR 70,000-90,000 per year. Visa sponsorship is not available.",
13 "company": "Example GmbH",
14 "location": "Berlin, Germany",
15 "job_url": "https://example.com/jobs/1",
16 },
17 {
18 "title": "Junior Data Analyst",
19 "description": "<p>Entry-level role. <b>SQL and Excel required</b>, Power BI a plus. Bachelor's degree in a quantitative field. Hybrid, 3 days in our Toronto office. $55k-$62k CAD.</p>",
20 "company": "Example Inc.",
21 "location": "Toronto, ON",
22 "job_url": "https://example.com/jobs/2",
23 },
24 {
25 "positionName": "Registered Nurse - ICU (Night Shift)",
26 "company": "Example Health",
27 "location": "Houston, TX",
28 "salary": "$48 - $62 an hour",
29 "jobType": ["Full-time"],
30 "description": "Join our 24-bed ICU. Requirements: active Texas RN license, BLS and ACLS certification, minimum 2 years of acute care experience. We sponsor H-1B and green card applications for qualified international nurses. Sign-on bonus available.",
31 "url": "https://example.com/jobs/3",
32 },
33 ],
34 "maxItems": 3,
35}
36
37
38run = client.actor("gazidev/job-posting-enricher").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45