|
| 1 | +Format: |
| 2 | + name: format |
| 3 | + in: query |
| 4 | + description: | |
| 5 | + Format of the results, possible values are: `json`, `jsonl`, `csv`, `html`, `xlsx`, `xml` and `rss`. The default value is `json`. |
| 6 | + style: form |
| 7 | + explode: true |
| 8 | + schema: |
| 9 | + type: string |
| 10 | + example: json |
| 11 | + |
| 12 | +Clean: |
| 13 | + name: clean |
| 14 | + in: query |
| 15 | + description: | |
| 16 | + If `true` or `1` then the API endpoint returns only non-empty items and skips hidden fields (i.e. fields starting with the # character). |
| 17 | + The `clean` parameter is just a shortcut for `skipHidden=true` and `skipEmpty=true` parameters. |
| 18 | + Note that since some objects might be skipped from the output, that the result might contain less items than the `limit` value. |
| 19 | + style: form |
| 20 | + explode: true |
| 21 | + schema: |
| 22 | + type: boolean |
| 23 | + example: false |
| 24 | + |
| 25 | +Limit: |
| 26 | + name: limit |
| 27 | + in: query |
| 28 | + description: Maximum number of items to return. By default there is no limit. |
| 29 | + style: form |
| 30 | + explode: true |
| 31 | + schema: |
| 32 | + type: number |
| 33 | + format: double |
| 34 | + |
| 35 | +Fields: |
| 36 | + name: fields |
| 37 | + in: query |
| 38 | + description: | |
| 39 | + A comma-separated list of fields which should be picked from the items, only these fields will remain in the resulting record objects. |
| 40 | + Note that the fields in the outputted items are sorted the same way as they are specified in the `fields` query parameter. |
| 41 | + You can use this feature to effectively fix the output format. |
| 42 | + style: form |
| 43 | + explode: true |
| 44 | + schema: |
| 45 | + type: string |
| 46 | + example: "myValue,myOtherValue" |
| 47 | + |
| 48 | +Omit: |
| 49 | + name: omit |
| 50 | + in: query |
| 51 | + description: A comma-separated list of fields which should be omitted from the items. |
| 52 | + style: form |
| 53 | + explode: true |
| 54 | + schema: |
| 55 | + type: string |
| 56 | + example: "myValue,myOtherValue" |
| 57 | + |
| 58 | +Unwind: |
| 59 | + name: unwind |
| 60 | + in: query |
| 61 | + description: | |
| 62 | + A comma-separated list of fields which should be unwound, in order which they should be processed. Each field should be either an array or an object. |
| 63 | + If the field is an array then every element of the array will become a separate record and merged with parent object. |
| 64 | + If the unwound field is an object then it is merged with the parent object. |
| 65 | + If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object then the item gets preserved as it is. |
| 66 | + Note that the unwound items ignore the `desc` parameter. |
| 67 | + style: form |
| 68 | + explode: true |
| 69 | + schema: |
| 70 | + type: string |
| 71 | + example: "myValue,myOtherValue" |
| 72 | + |
| 73 | +Flatten: |
| 74 | + name: flatten |
| 75 | + in: query |
| 76 | + description: | |
| 77 | + A comma-separated list of fields which should transform nested objects into flat structures. |
| 78 | +
|
| 79 | + For example, with `flatten="foo"` the object `{"foo":{"bar": "hello"}}` is turned into `{"foo.bar": "hello"}`. |
| 80 | +
|
| 81 | + The original object with properties is replaced with the flattened object. |
| 82 | + style: form |
| 83 | + explode: true |
| 84 | + schema: |
| 85 | + type: string |
| 86 | + example: myValue |
| 87 | + |
| 88 | +Attachment: |
| 89 | + name: attachment |
| 90 | + in: query |
| 91 | + description: | |
| 92 | + If `true` or `1` then the response will define the `Content-Disposition: |
| 93 | + attachment` header, forcing a web browser to download the file rather |
| 94 | + than to display it. By default this header is not present. |
| 95 | + style: form |
| 96 | + explode: true |
| 97 | + schema: |
| 98 | + type: boolean |
| 99 | + example: true |
| 100 | + |
| 101 | +Delimiter: |
| 102 | + name: delimiter |
| 103 | + in: query |
| 104 | + description: | |
| 105 | + A delimiter character for CSV files, only used if `format=csv`. You |
| 106 | + might need to URL-encode the character (e.g. use `%09` for tab or `%3B` |
| 107 | + for semicolon). The default delimiter is a simple comma (`,`). |
| 108 | + style: form |
| 109 | + explode: true |
| 110 | + schema: |
| 111 | + type: string |
| 112 | + example: ; |
| 113 | + |
| 114 | +Bom: |
| 115 | + name: bom |
| 116 | + in: query |
| 117 | + description: | |
| 118 | + All text responses are encoded in UTF-8 encoding. By default, the |
| 119 | + `format=csv` files are prefixed with the UTF-8 Byte Order Mark (BOM), while `json`, `jsonl`, `xml`, `html` and `rss` files are not. |
| 120 | +
|
| 121 | + If you want to override this default behavior, specify `bom=1` query parameter to include the BOM or `bom=0` to skip it. |
| 122 | + style: form |
| 123 | + explode: true |
| 124 | + schema: |
| 125 | + type: boolean |
| 126 | + example: false |
| 127 | + |
| 128 | +XmlRoot: |
| 129 | + name: xmlRoot |
| 130 | + in: query |
| 131 | + description: | |
| 132 | + Overrides default root element name of `xml` output. By default the root element is `items`. |
| 133 | + style: form |
| 134 | + explode: true |
| 135 | + schema: |
| 136 | + type: string |
| 137 | + example: items |
| 138 | + |
| 139 | +XmlRow: |
| 140 | + name: xmlRow |
| 141 | + in: query |
| 142 | + description: | |
| 143 | + Overrides default element name that wraps each page or page function result object in `xml` output. By default the element name is `item`. |
| 144 | + style: form |
| 145 | + explode: true |
| 146 | + schema: |
| 147 | + type: string |
| 148 | + example: item |
| 149 | + |
| 150 | +SkipHeaderRow: |
| 151 | + name: skipHeaderRow |
| 152 | + in: query |
| 153 | + description: If `true` or `1` then header row in the `csv` format is skipped. |
| 154 | + style: form |
| 155 | + explode: true |
| 156 | + schema: |
| 157 | + type: boolean |
| 158 | + example: true |
| 159 | + |
| 160 | +SkipHidden: |
| 161 | + name: skipHidden |
| 162 | + in: query |
| 163 | + description: | |
| 164 | + If `true` or `1` then hidden fields are skipped from the output, i.e. fields starting with the `#` character. |
| 165 | + style: form |
| 166 | + explode: true |
| 167 | + schema: |
| 168 | + type: boolean |
| 169 | + example: false |
| 170 | + |
| 171 | +SkipEmpty: |
| 172 | + name: skipEmpty |
| 173 | + in: query |
| 174 | + description: | |
| 175 | + If `true` or `1` then empty items are skipped from the output. |
| 176 | +
|
| 177 | + Note that if used, the results might contain less items than the limit value. |
| 178 | + style: form |
| 179 | + explode: true |
| 180 | + schema: |
| 181 | + type: boolean |
| 182 | + example: false |
| 183 | + |
| 184 | +Simplified: |
| 185 | + name: simplified |
| 186 | + in: query |
| 187 | + description: | |
| 188 | + If `true` or `1` then, the endpoint applies the `fields=url,pageFunctionResult,errorInfo` |
| 189 | + and `unwind=pageFunctionResult` query parameters. This feature is used to emulate simplified results provided by the |
| 190 | + legacy Apify Crawler product and it's not recommended to use it in new integrations. |
| 191 | + style: form |
| 192 | + explode: true |
| 193 | + schema: |
| 194 | + type: boolean |
| 195 | + example: false |
| 196 | + |
| 197 | +Desc: |
| 198 | + name: desc |
| 199 | + in: query |
| 200 | + description: | |
| 201 | + By default, results are returned in the same order as they were stored. |
| 202 | + To reverse the order, set this parameter to `true` or `1`. |
| 203 | + style: form |
| 204 | + explode: true |
| 205 | + schema: |
| 206 | + type: boolean |
| 207 | + example: true |
| 208 | + |
| 209 | +SkipFailedPages: |
| 210 | + name: skipFailedPages |
| 211 | + in: query |
| 212 | + description: | |
| 213 | + If `true` or `1` then, the all the items with errorInfo property will be skipped from the output. |
| 214 | +
|
| 215 | + This feature is here to emulate functionality of API version 1 used for the legacy Apify Crawler product and it's not recommended to use it in new integrations. |
| 216 | + style: form |
| 217 | + explode: true |
| 218 | + schema: |
| 219 | + type: boolean |
| 220 | + example: false |
0 commit comments