1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "baselineSpecUrl": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/e77481c73e1c703c7de2e4249047b42b8e9b56f4/examples/v3.0/petstore.json",
10 "currentSpecUrl": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/e77481c73e1c703c7de2e4249047b42b8e9b56f4/examples/v3.0/petstore-expanded.json",
11 "scope": [],
12 "breakingRules": [
13 "operation-removed",
14 "response-code-removed",
15 "field-removed",
16 "required-added",
17 "type-widened",
18 "type-narrowed",
19 "type-changed",
20 "enum-value-removed",
21 "ref-changed",
22 ],
23 "maxDepth": 8,
24 "maxChangesPerEntity": 50,
25 "timeoutSecs": 30,
26 "maxRedirects": 5,
27 "maxResponseBytes": 20000000,
28}
29
30
31run = client.actor("kingii98/upstream-openapi-release-impact-report-for-pinned-clients").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