1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "targets": [
10 {
11 "url": "https://apify.com/pricing",
12 "monitorType": "pricing",
13 "label": "Apify Pricing",
14 },
15 {
16 "url": "https://petstore3.swagger.io/api/v3/openapi.json",
17 "monitorType": "openapi",
18 "label": "Petstore OpenAPI v3",
19 },
20 {
21 "url": "https://linear.app/changelog",
22 "monitorType": "changelog",
23 "label": "Linear Changelog",
24 },
25 ],
26 "stateStoreName": "saas-diff-monitor-snapshots",
27}
28
29
30run = client.actor("lu-tools/saas-pricing-api-diff-monitor").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37