1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "source_url": "local-fixture://contracts-finder-ocds",
10 "keywords": ["cleaning"],
11 "max_results": 10,
12 "releases": [{
13 "ocid": "ocds-demo/clean-001",
14 "id": "release-clean-001",
15 "tag": ["tender"],
16 "parties": [{
17 "name": "Example Borough Council",
18 "roles": ["buyer"],
19 }],
20 "tender": {
21 "title": "Deep cleaning services for civic buildings",
22 "description": "The council seeks suitably qualified cleaning suppliers for a three-year service.",
23 "status": "active",
24 "tenderPeriod": { "endDate": "2026-12-01T12:00:00Z" },
25 "value": {
26 "amount": 120000,
27 "currency": "GBP",
28 },
29 "items": [{
30 "classification": {
31 "id": "90910000",
32 "description": "Cleaning services",
33 },
34 "deliveryAddresses": [{
35 "locality": "Exampletown",
36 "countryName": "United Kingdom",
37 }],
38 }],
39 "documents": [{
40 "title": "Tender notice",
41 "url": "https://example.gov.uk/notice/clean-001",
42 }],
43 "submissionMethod": ["electronicSubmission"],
44 },
45 }],
46}
47
48
49run = client.actor("sentry_zero/public-procurement-evidence-packet").call(run_input=run_input)
50
51
52print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
53for item in client.dataset(run.default_dataset_id).iterate_items():
54 print(item)
55
56