1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "specUrls": [
10 "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/e77481c73e1c703c7de2e4249047b42b8e9b56f4/examples/v3.0/petstore.json",
11 "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/e77481c73e1c703c7de2e4249047b42b8e9b56f4/examples/v3.0/api-with-examples.json",
12 ],
13 "profile": "partner-publication",
14 "checkServerReachability": True,
15 "maxOperationsPerSpec": 1000,
16 "maxDefectsPerSpec": 500,
17 "timeoutSecs": 30,
18 "maxRedirects": 5,
19 "maxResponseBytes": 20000000,
20}
21
22
23run = client.actor("kingii98/openapi-publish-readiness-and-example-conformance-gate").call(run_input=run_input)
24
25
26print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30