1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sp_intended_usage": "Describe your intended use...",
10 "sp_improvement_suggestions": "Share your suggestions here...",
11 "sp_contact": "Share your email here...",
12 "searchMode": "name",
13 "firstName": "John",
14 "lastName": "Smith",
15 "maxItems": 10,
16 "searches": [
17 {
18 "searchMode": "name",
19 "firstName": "John",
20 "lastName": "Smith",
21 "state": "NY",
22 },
23 {
24 "searchMode": "phone",
25 "phone": "5551234567",
26 },
27 ],
28}
29
30
31run = client.actor("jungle_synthesizer/fastpeoplesearch-people-search-scraper").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38