@@ -43,6 +43,23 @@ def abort(self) -> dict:
4343 """
4444 return self ._abort ()
4545
46+ def get_open_api_specification (self ) -> dict | None :
47+ """Return OpenAPI specification of the Actor's build.
48+
49+ https://docs.apify.com/api/v2/actor-build-openapi-specification-get
50+
51+ Returns:
52+ OpenAPI specification of the Actor's build.
53+ """
54+ response = self .http_client .call (
55+ url = self ._url ('openapi-specification' ),
56+ method = 'GET' ,
57+ )
58+
59+ response_data : dict = response .json ()
60+
61+ return response_data
62+
4663 def wait_for_finish (self , * , wait_secs : int | None = None ) -> dict | None :
4764 """Wait synchronously until the build finishes or the server times out.
4865
@@ -103,6 +120,23 @@ async def delete(self) -> None:
103120 """
104121 return await self ._delete ()
105122
123+ async def get_open_api_specification (self ) -> dict | None :
124+ """Return OpenAPI specification of the Actor's build.
125+
126+ https://docs.apify.com/api/v2/actor-build-openapi-specification-get
127+
128+ Returns:
129+ OpenAPI specification of the Actor's build.
130+ """
131+ response = await self .http_client .call (
132+ url = self ._url ('openapi-specification' ),
133+ method = 'GET' ,
134+ )
135+
136+ response_data : dict = response .json ()
137+
138+ return response_data
139+
106140 async def wait_for_finish (self , * , wait_secs : int | None = None ) -> dict | None :
107141 """Wait synchronously until the build finishes or the server times out.
108142
0 commit comments