1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "endpoints": [
10 "https://jsonplaceholder.typicode.com/todos/1",
11 "https://registry.npmjs.org/-/package/left-pad/dist-tags",
12 ],
13 "baselineStore": "SHAPE_BASELINE",
14 "ignorePaths": [],
15 "sampleDepth": 6,
16 "arraySampleSize": 20,
17 "breakingRules": [
18 "removed",
19 "type-changed",
20 "nullability-changed",
21 ],
22 "concurrency": 5,
23 "timeoutSecs": 20,
24 "maxRedirects": 5,
25 "maxResponseBytes": 5000000,
26}
27
28
29run = client.actor("kingii98/no-spec-vendor-json-api-response-drift-watcher").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36