Skip to content

Commit 06ccb1b

Browse files
authored
fix: Another round of OpenAPI fixes (#1412)
- missing spaces in text - don't open absolute links from api docs in new window - scroll sidebar for category pages - add margin after sidebar categories - add links to category index pages - update date of the docs switch - remove extra blank lines Closes #1326
1 parent 1073304 commit 06ccb1b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+146
-610
lines changed

apify-api/openapi/components/tags.yaml

Lines changed: 49 additions & 266 deletions
Large diffs are not rendered by default.

apify-api/openapi/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ info:
33
title: Apify API
44
description: |
55
6-
> **UPDATE 2024-07-09:**
7-
> We have rolled out this new Apify API Documentation. In case of any issues, please [report here](https://github.com/apify/openapi/issues).
6+
> **UPDATE 2025-01-14:**
7+
> We have rolled out this new Apify API Documentation. In case of any issues, please [report here](https://github.com/apify/apify-docs/issues).
88
> The old API Documentation is still [available here](https://docs.apify.com/api/v2-old).
99
1010
The Apify API (version 2) provides programmatic access to the [Apify

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ get:
2929
in: query
3030
description: |
3131
The maximum number of seconds the server waits for the build to finish.
32-
By default it is `0`, the maximum value is `60`.
33-
34-
<!-- MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
32+
By default it is `0`, the maximum value is `60`. <!-- MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
3533
3634
If the build finishes in time then the returned build object will have a
3735
terminal status (e.g. `SUCCEEDED`), otherwise it will have a transitional status (e.g. `RUNNING`).

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ get:
4444
text/plain:
4545
schema:
4646
type: string
47-
example: |-
47+
example: |
4848
2017-07-14T06:00:49.733Z Application started.
4949
2017-07-14T06:00:49.741Z Input: { test: 123 }
5050
2017-07-14T06:00:49.752Z Some useful debug information follows.
51-
example: |-
51+
example: |
5252
2017-07-14T06:00:49.733Z Application started.
5353
2017-07-14T06:00:49.741Z Input: { test: 123 }
5454
2017-07-14T06:00:49.752Z Some useful debug information follows.

apify-api/openapi/paths/actor-runs/actor-runs@{runId}.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ get:
2121
* `/v2/actor-runs/{runId}/dataset{?token}`
2222
* `/v2/actor-runs/{runId}/request-queue{?token}`
2323
24-
2524
These API endpoints have the same usage as the equivalent storage endpoints.
2625
2726
For example, `/v2/actor-runs/{runId}/key-value-store` has the same HTTP method and
@@ -66,11 +65,8 @@ get:
6665
payload to the same URL.Gets an object that contains all the details about a
6766
specific run of an Actor.
6867
69-
By passing the optional `waitForFinish` parameter the API endpoint will
70-
synchronously wait for the run to finish.
71-
72-
This is useful to avoid periodic polling when waiting for Actor run to
73-
complete.
68+
By passing the optional `waitForFinish` parameter the API endpoint will synchronously wait
69+
for the run to finish. This is useful to avoid periodic polling when waiting for Actor run to complete.
7470
7571
This endpoint does not require the authentication token. Instead, calls are authenticated using a hard-to-guess ID of the run. However,
7672
if you access the endpoint without the token, certain attributes, such as `usageUsd` and `usageTotalUsd`, will be hidden.

apify-api/openapi/paths/actor-runs/actor-runs@{runId}@abort.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ post:
2020
example: 3KH8gEpp4d8uQSe8T
2121
- name: gracefully
2222
in: query
23-
description: |-
23+
description: |
2424
If true passed, the Actor run will abort gracefully.
2525
It will send `aborting` and `persistState` event into run and force-stop the run after 30 seconds.
2626
It is helpful in cases where you plan to resurrect the run later.

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@input.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ put:
4949
The response is the full task input as returned by the
5050
[Get task input](#/reference/tasks/task-input-object/get-task-input) endpoint.
5151
52-
5352
The request needs to specify the `Content-Type: application/json` HTTP
5453
header!
5554

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync-get-dataset-items.yaml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ post:
9797
description: |
9898
Specifies optional webhooks associated with the Actor run, which can be
9999
used to receive a notification
100-
101100
e.g. when the Actor finished or failed. The value is a Base64-encoded
102101
JSON array of objects defining the webhooks. For more information, see
103-
104102
[Webhooks
105103
documentation](https://docs.apify.com/platform/integrations/webhooks).
106104
style: form
@@ -123,12 +121,9 @@ post:
123121
description: |
124122
If `true` or `1` then the API endpoint returns only non-empty items and
125123
skips hidden fields
126-
127124
(i.e. fields starting with the # character).
128-
129125
The `clean` parameter is just a shortcut for `skipHidden=true` and
130126
`skipEmpty=true` parameters.
131-
132127
Note that since some objects might be skipped from the output, that the
133128
result might contain less items than the `limit` value.
134129
style: form
@@ -160,12 +155,9 @@ post:
160155
in: query
161156
description: |
162157
A comma-separated list of fields which should be picked from the items,
163-
164158
only these fields will remain in the resulting record objects.
165-
166159
Note that the fields in the outputted items are sorted the same way as
167160
they are specified in the `fields` query parameter.
168-
169161
You can use this feature to effectively fix the output format.
170162
style: form
171163
explode: true
@@ -185,18 +177,13 @@ post:
185177
description: |
186178
A comma-separated list of fields which should be unwound, in order which
187179
they should be processed. Each field should be either an array or an object.
188-
189180
If the field is an array then every element of
190-
191181
the array will become a separate record and merged with parent object.
192-
193182
If the unwound field is an object then it is merged with the parent
194183
object
195-
196184
If the unwound field is missing or its value is neither an array nor an
197185
object and therefore cannot be merged with a parent object then the item
198186
gets preserved as it is.
199-
200187
Note that the unwound items ignore the `desc` parameter.
201188
style: form
202189
explode: true
@@ -208,10 +195,8 @@ post:
208195
description: |
209196
A comma-separated list of fields which should transform nested objects
210197
into flat structures.
211-
212198
For example, with `flatten="foo"` the object `{"foo":{"bar": "hello"}}`
213199
is turned into `{"foo.bar": "hello"}`.
214-
215200
The original object with properties is replaced with the flattened
216201
object.
217202
style: form
@@ -256,10 +241,8 @@ post:
256241
description: |
257242
All text responses are encoded in UTF-8 encoding. By default, the
258243
`format=csv` files are prefixed with
259-
260244
the UTF-8 Byte Order Mark (BOM), while `json`, `jsonl`, `xml`, `html`
261245
and `rss` files are not.
262-
263246
If you want to override this default behavior, specify `bom=1` query
264247
parameter to include the BOM or `bom=0` to skip it.
265248
style: form
@@ -297,7 +280,7 @@ post:
297280
example: true
298281
- name: skipHidden
299282
in: query
300-
description: |-
283+
description: |
301284
If `true` or `1` then hidden fields are skipped from the output,
302285
i.e. fields starting with the `#` character.
303286
style: form
@@ -687,7 +670,7 @@ get:
687670
example: true
688671
- name: skipHidden
689672
in: query
690-
description: |-
673+
description: |
691674
If `true` or `1` then hidden fields are skipped from the output,
692675
i.e. fields starting with the `#` character.
693676
style: form
@@ -712,10 +695,8 @@ get:
712695
description: |
713696
If `true` or `1` then, the endpoint applies the
714697
`fields=url,pageFunctionResult,errorInfo`
715-
716698
and `unwind=pageFunctionResult` query parameters. This feature is used
717699
to emulate simplified results provided by the
718-
719700
legacy Apify Crawler product and it's not recommended to use it in new
720701
integrations.
721702
style: form
@@ -728,7 +709,6 @@ get:
728709
description: |
729710
If `true` or `1` then, the all the items with errorInfo property will be
730711
skipped from the output.
731-
732712
This feature is here to emulate functionality of API version 1 used for
733713
the legacy Apify Crawler product and it's not recommended to use it in
734714
new integrations.

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@run-sync.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ post:
9191
example: 0.1.234
9292
- name: outputRecordKey
9393
in: query
94-
description: |-
94+
description: |
9595
Key of the record from run's default key-value store to be returned
9696
in the response. By default, it is `OUTPUT`.
9797
style: form
@@ -227,7 +227,7 @@ get:
227227
example: 0.1.234
228228
- name: outputRecordKey
229229
in: query
230-
description: |-
230+
description: |
231231
Key of the record from run's default key-value store to be returned
232232
in the response. By default, it is `OUTPUT`.
233233
style: form
@@ -240,12 +240,9 @@ get:
240240
description: |
241241
Specifies optional webhooks associated with the Actor run, which can be
242242
used to receive a notification
243-
244243
e.g. when the Actor finished or failed. The value is a Base64-encoded
245244
JSON array of objects defining the webhooks. For more information, see
246-
247-
[Webhooks
248-
documentation](https://docs.apify.com/platform/integrations/webhooks).
245+
[Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks).
249246
style: form
250247
explode: true
251248
schema:

apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}@runs.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ post:
152152
153153
To fetch the Actor run results that are typically stored in the default
154154
dataset, you'll need to pass the ID received in the `defaultDatasetId` field
155-
received in the response JSON to the
155+
received in the response JSON to the
156156
[Get items](#/reference/datasets/item-collection/get-items) API endpoint.
157157
operationId: actorTask_runs_post
158158
parameters:
@@ -216,12 +216,9 @@ post:
216216
in: query
217217
description: |
218218
The maximum number of seconds the server waits for the run to finish. By
219-
default, it is `0`, the maximum value is `60`. <!--
220-
MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
221-
219+
default, it is `0`, the maximum value is `60`. <!-- MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
222220
If the build finishes in time then the returned run object will have a
223221
terminal status (e.g. `SUCCEEDED`),
224-
225222
otherwise it will have a transitional status (e.g. `RUNNING`).
226223
style: form
227224
explode: true
@@ -234,7 +231,6 @@ post:
234231
description: |
235232
Specifies optional webhooks associated with the Actor run, which can be
236233
used to receive a notification
237-
238234
e.g. when the Actor finished or failed. The value is a Base64-encoded
239235
JSON array of objects defining the webhooks.
240236

0 commit comments

Comments
 (0)