@apifreaks/openapi-specs 0.4.20 → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4410 -530
- package/dist/index.js +4410 -530
- package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
- package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
- package/dist/specs/dns/dns-lookup.yaml +9 -1
- package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
- package/dist/specs/geography/flags-supported.yaml +18 -10
- package/dist/specs/pdf/delete-pdf-page.yaml +12 -4
- package/dist/specs/pdf/linearize-pdf.yaml +11 -3
- package/dist/specs/pdf/merge-pdf.yaml +11 -3
- package/dist/specs/pdf/pdf-compress.yaml +12 -4
- package/dist/specs/pdf/pdf-decrypt.yaml +13 -5
- package/dist/specs/pdf/pdf-encrypt.yaml +11 -3
- package/dist/specs/pdf/pdf-extract-pages.yaml +11 -3
- package/dist/specs/pdf/pdf-resource-upload-binary.yaml +1 -1
- package/dist/specs/pdf/pdf-resource-upload.yaml +3 -3
- package/dist/specs/pdf/pdf-restrict.yaml +13 -5
- package/dist/specs/pdf/pdf-to-image.yaml +130 -0
- package/dist/specs/pdf/pdf-unrestrict.yaml +13 -5
- package/dist/specs/pdf/rotate-pdf-pages.yaml +11 -3
- package/dist/specs/pdf/split-pdf.yaml +11 -3
- package/dist/specs/screenshot/bulk-screenshot.yaml +11 -10
- package/dist/specs/screenshot/website-screenshot.yaml +11 -10
- package/dist/specs/timezone/timezone-converter.yaml +36 -8
- package/dist/specs/timezone/timezone-lookup.yaml +36 -10
- package/dist/specs/weather/time-series-weather.yaml +6 -7
- package/dist/specs/whois/asn-lookup.yaml +676 -37
- package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
- package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
- package/dist/specs/whois/reverse-whois.yaml +316 -8
- package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
- package/dist/specs/whois/whois-ip-lookup.yaml +306 -255
- package/package.json +1 -1
- package/specs/commodity/historical-commodity-prices.json +37 -11
- package/specs/dns/bulk-dns-lookup.json +274 -29
- package/specs/dns/dns-lookup.json +13 -2
- package/specs/financial/bulk-vat-rates-country.json +33 -4
- package/specs/geography/flags-supported.json +20 -13
- package/specs/pdf/delete-pdf-page.json +14 -4
- package/specs/pdf/linearize-pdf.json +13 -3
- package/specs/pdf/merge-pdf.json +13 -3
- package/specs/pdf/pdf-compress.json +14 -4
- package/specs/pdf/pdf-decrypt.json +16 -6
- package/specs/pdf/pdf-encrypt.json +13 -3
- package/specs/pdf/pdf-extract-pages.json +13 -3
- package/specs/pdf/pdf-resource-upload-binary.json +1 -1
- package/specs/pdf/pdf-resource-upload.json +4 -4
- package/specs/pdf/pdf-restrict.json +16 -6
- package/specs/pdf/pdf-to-image.json +185 -0
- package/specs/pdf/pdf-unrestrict.json +16 -6
- package/specs/pdf/rotate-pdf-pages.json +13 -3
- package/specs/pdf/split-pdf.json +13 -3
- package/specs/screenshot/bulk-screenshot.json +10 -10
- package/specs/screenshot/website-screenshot.json +10 -10
- package/specs/timezone/timezone-converter.json +48 -8
- package/specs/timezone/timezone-lookup.json +53 -10
- package/specs/weather/time-series-weather.json +7 -7
- package/specs/whois/asn-lookup.json +878 -54
- package/specs/whois/bulk-whois-lookup.json +612 -2
- package/specs/whois/domain-whois-history-lookup.json +307 -2
- package/specs/whois/reverse-whois.json +453 -9
- package/specs/whois/whois-domain-lookup.json +632 -11
- package/specs/whois/whois-ip-lookup.json +427 -241
|
@@ -210,23 +210,33 @@
|
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
"415": {
|
|
213
|
-
"description": "Unsupported Media Type —
|
|
213
|
+
"description": "Unsupported Media Type — The uploaded file type, or the file type associated with the provided file_id, is not supported for this operation",
|
|
214
214
|
"content": {
|
|
215
215
|
"application/json": {
|
|
216
|
-
"schema": {
|
|
217
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
218
|
-
},
|
|
219
216
|
"examples": {
|
|
220
217
|
"UnsupportedFileType": {
|
|
221
|
-
"summary": "
|
|
218
|
+
"summary": "Unsupported file type (file uploaded in the request)",
|
|
222
219
|
"value": {
|
|
223
|
-
"timestamp": "2026-
|
|
220
|
+
"timestamp": "2026-11-20T11:30:02.110Z",
|
|
224
221
|
"path": "/v1.0/pdf/unrestrict-pdf",
|
|
225
222
|
"status": 415,
|
|
226
223
|
"error": "Unsupported File Type",
|
|
227
224
|
"message": "The provided file type is not supported. Refer to the documentation for valid file types."
|
|
228
225
|
}
|
|
226
|
+
},
|
|
227
|
+
"UnsupportedFileTypeForId": {
|
|
228
|
+
"summary": "Unsupported file type for the provided file ID",
|
|
229
|
+
"value": {
|
|
230
|
+
"timestamp": "2026-11-20T11:29:30.986Z",
|
|
231
|
+
"path": "/v1.0/pdf/unrestrict-pdf",
|
|
232
|
+
"status": 415,
|
|
233
|
+
"error": "Unsupported File Type",
|
|
234
|
+
"message": "The file type associated with the provided file ID is not supported for this operation. Please refer to the documentation for the list of allowed file types."
|
|
235
|
+
}
|
|
229
236
|
}
|
|
237
|
+
},
|
|
238
|
+
"schema": {
|
|
239
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
230
240
|
}
|
|
231
241
|
}
|
|
232
242
|
},
|
|
@@ -191,19 +191,29 @@
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
"415": {
|
|
194
|
-
"description": "Unsupported Media Type —
|
|
194
|
+
"description": "Unsupported Media Type — The uploaded file type, or the file type associated with the provided file_id, is not supported for this operation",
|
|
195
195
|
"content": {
|
|
196
196
|
"application/json": {
|
|
197
197
|
"examples": {
|
|
198
198
|
"UnsupportedFileType": {
|
|
199
|
-
"summary": "
|
|
199
|
+
"summary": "Unsupported file type (file uploaded in the request)",
|
|
200
200
|
"value": {
|
|
201
|
-
"timestamp": "2026-
|
|
201
|
+
"timestamp": "2026-11-20T11:29:55.932Z",
|
|
202
202
|
"path": "/v1.0/pdf/rotate",
|
|
203
203
|
"status": 415,
|
|
204
204
|
"error": "Unsupported File Type",
|
|
205
205
|
"message": "The provided file type is not supported. Refer to the documentation for valid file types."
|
|
206
206
|
}
|
|
207
|
+
},
|
|
208
|
+
"UnsupportedFileTypeForId": {
|
|
209
|
+
"summary": "Unsupported file type for the provided file ID",
|
|
210
|
+
"value": {
|
|
211
|
+
"timestamp": "2026-11-20T11:29:24.762Z",
|
|
212
|
+
"path": "/v1.0/pdf/rotate",
|
|
213
|
+
"status": 415,
|
|
214
|
+
"error": "Unsupported File Type",
|
|
215
|
+
"message": "The file type associated with the provided file ID is not supported for this operation. Please refer to the documentation for the list of allowed file types."
|
|
216
|
+
}
|
|
207
217
|
}
|
|
208
218
|
},
|
|
209
219
|
"schema": {
|
package/specs/pdf/split-pdf.json
CHANGED
|
@@ -167,19 +167,29 @@
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
"415": {
|
|
170
|
-
"description": "Unsupported Media Type —
|
|
170
|
+
"description": "Unsupported Media Type — The uploaded file type, or the file type associated with the provided file_id, is not supported for this operation",
|
|
171
171
|
"content": {
|
|
172
172
|
"application/json": {
|
|
173
173
|
"examples": {
|
|
174
174
|
"UnsupportedFileType": {
|
|
175
|
-
"summary": "
|
|
175
|
+
"summary": "Unsupported file type (file uploaded in the request)",
|
|
176
176
|
"value": {
|
|
177
|
-
"timestamp": "2026-
|
|
177
|
+
"timestamp": "2026-11-20T11:29:55.376Z",
|
|
178
178
|
"path": "/v1.0/pdf/split-pdf",
|
|
179
179
|
"status": 415,
|
|
180
180
|
"error": "Unsupported File Type",
|
|
181
181
|
"message": "The provided file type is not supported. Refer to the documentation for valid file types."
|
|
182
182
|
}
|
|
183
|
+
},
|
|
184
|
+
"UnsupportedFileTypeForId": {
|
|
185
|
+
"summary": "Unsupported file type for the provided file ID",
|
|
186
|
+
"value": {
|
|
187
|
+
"timestamp": "2026-11-20T11:29:24.156Z",
|
|
188
|
+
"path": "/v1.0/pdf/split-pdf",
|
|
189
|
+
"status": 415,
|
|
190
|
+
"error": "Unsupported File Type",
|
|
191
|
+
"message": "The file type associated with the provided file ID is not supported for this operation. Please refer to the documentation for the list of allowed file types."
|
|
192
|
+
}
|
|
183
193
|
}
|
|
184
194
|
},
|
|
185
195
|
"schema": {
|
|
@@ -1128,13 +1128,13 @@
|
|
|
1128
1128
|
},
|
|
1129
1129
|
"wait_for_event": {
|
|
1130
1130
|
"type": "string",
|
|
1131
|
-
"enum": ["load", "domcontentloaded", "
|
|
1132
|
-
"description": "Controls when rendering starts based on page load lifecycle. `load`
|
|
1131
|
+
"enum": ["load", "domcontentloaded", "networkidle0", "networkidle2"],
|
|
1132
|
+
"description": "Controls when rendering starts based on the page load lifecycle. `load` waits for all resources, `domcontentloaded` waits for the HTML to be parsed, `networkidle0` waits until there are no network requests for 500ms, and `networkidle2` waits until no more than 2 requests are active for 500ms. Use `networkidle2` when a page keeps one or two long-running requests open, such as a polling call, that stop `networkidle0` from completing. Write the value in lowercase, exactly as listed.",
|
|
1133
1133
|
"default": "load"
|
|
1134
1134
|
},
|
|
1135
1135
|
"delay": {
|
|
1136
1136
|
"type": "integer",
|
|
1137
|
-
"description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering.",
|
|
1137
|
+
"description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering. A value above 30000 is cut to 30 seconds and the request still succeeds.",
|
|
1138
1138
|
"default": 0
|
|
1139
1139
|
},
|
|
1140
1140
|
"lazy_load": {
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
},
|
|
1145
1145
|
"scroll_delay": {
|
|
1146
1146
|
"type": "integer",
|
|
1147
|
-
"description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages.",
|
|
1147
|
+
"description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages. On a long page, a very high value can push the total time past `timeout` and fail the request.",
|
|
1148
1148
|
"default": 500
|
|
1149
1149
|
},
|
|
1150
1150
|
"timeout": {
|
|
@@ -1324,7 +1324,7 @@
|
|
|
1324
1324
|
},
|
|
1325
1325
|
"block_specific_requests": {
|
|
1326
1326
|
"type": "string",
|
|
1327
|
-
"description": "
|
|
1327
|
+
"description": "Blocks specific requests. Separate rules by comma, space, or newline. A rule without `*` must match the full request URL exactly, including the scheme and path; a bare domain or partial path does not match. A rule with `*` is a wildcard: each `*` matches any run of characters, including dots and slashes, the whole URL must match, and matching is not case-sensitive. Use wildcards for URLs that change on every load, such as a random subdomain or port, for example `https://*.example.com:*/*`. Default: empty."
|
|
1328
1328
|
},
|
|
1329
1329
|
"extract_text": {
|
|
1330
1330
|
"type": "boolean",
|
|
@@ -1376,12 +1376,12 @@
|
|
|
1376
1376
|
},
|
|
1377
1377
|
"solve_captcha": {
|
|
1378
1378
|
"type": "boolean",
|
|
1379
|
-
"description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. Adds 20 credits per request.",
|
|
1379
|
+
"description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. It reads text inside a picture only; checkbox challenges and challenges that ask you to select pictures are not supported. Adds 20 credits per request.",
|
|
1380
1380
|
"default": false
|
|
1381
1381
|
},
|
|
1382
1382
|
"captcha_image": {
|
|
1383
1383
|
"type": "string",
|
|
1384
|
-
"description": "CSS selector of the captcha picture
|
|
1384
|
+
"description": "CSS selector of the captcha picture, for example `#captcha-img`. Required when solve_captcha is true. The solver waits up to 30 seconds for it to appear."
|
|
1385
1385
|
},
|
|
1386
1386
|
"captcha_input": {
|
|
1387
1387
|
"type": "string",
|
|
@@ -1389,11 +1389,11 @@
|
|
|
1389
1389
|
},
|
|
1390
1390
|
"captcha_submit": {
|
|
1391
1391
|
"type": "string",
|
|
1392
|
-
"description": "CSS selector of the button to click after the answer is typed."
|
|
1392
|
+
"description": "CSS selector of the button to click after the answer is typed. Without it the answer is typed but no button is pressed, which works only when the page checks the answer as you type."
|
|
1393
1393
|
},
|
|
1394
1394
|
"captcha_error": {
|
|
1395
1395
|
"type": "string",
|
|
1396
|
-
"description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again."
|
|
1396
|
+
"description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again. Without it the solver cannot tell that a guess was wrong and makes one try."
|
|
1397
1397
|
},
|
|
1398
1398
|
"captcha_refresh": {
|
|
1399
1399
|
"type": "string",
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
"minimum": 1,
|
|
1405
1405
|
"maximum": 5,
|
|
1406
1406
|
"default": 3,
|
|
1407
|
-
"description": "Number of guesses the solver makes, from 1 to 5."
|
|
1407
|
+
"description": "Number of guesses the solver makes, from 1 to 5. When every guess is rejected, the request fails."
|
|
1408
1408
|
},
|
|
1409
1409
|
"ocr_model": {
|
|
1410
1410
|
"type": "string",
|
|
@@ -318,10 +318,10 @@
|
|
|
318
318
|
"required": false,
|
|
319
319
|
"schema": {
|
|
320
320
|
"type": "string",
|
|
321
|
-
"enum": ["load", "domcontentloaded", "
|
|
321
|
+
"enum": ["load", "domcontentloaded", "networkidle0", "networkidle2"],
|
|
322
322
|
"default": "load"
|
|
323
323
|
},
|
|
324
|
-
"description": "Controls when rendering starts based on page load lifecycle. `load`
|
|
324
|
+
"description": "Controls when rendering starts based on the page load lifecycle. `load` waits for all resources, `domcontentloaded` waits for the HTML to be parsed, `networkidle0` waits until there are no network requests for 500ms, and `networkidle2` waits until no more than 2 requests are active for 500ms. Use `networkidle2` when a page keeps one or two long-running requests open, such as a polling call, that stop `networkidle0` from completing. Write the value in lowercase, exactly as listed."
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
"name": "delay",
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"type": "integer",
|
|
332
332
|
"default": 0
|
|
333
333
|
},
|
|
334
|
-
"description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering."
|
|
334
|
+
"description": "Wait period in milliseconds before capture. Allows animations, API responses, and dynamic elements to finish rendering. A value above 30000 is cut to 30 seconds and the request still succeeds."
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
"name": "lazy_load",
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"type": "integer",
|
|
352
352
|
"default": 500
|
|
353
353
|
},
|
|
354
|
-
"description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages."
|
|
354
|
+
"description": "Delay in milliseconds between scroll steps when `lazy_load` is enabled. Use higher values for heavy pages. On a long page, a very high value can push the total time past `timeout` and fail the request."
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
"name": "timeout",
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
"schema": {
|
|
728
728
|
"type": "string"
|
|
729
729
|
},
|
|
730
|
-
"description": "
|
|
730
|
+
"description": "Blocks specific requests. Separate rules by comma, space, or newline. A rule without `*` must match the full request URL exactly, including the scheme and path; a bare domain or partial path does not match. A rule with `*` is a wildcard: each `*` matches any run of characters, including dots and slashes, the whole URL must match, and matching is not case-sensitive. Use wildcards for URLs that change on every load, such as a random subdomain or port, for example `https://*.example.com:*/*`. Default: empty."
|
|
731
731
|
},
|
|
732
732
|
{
|
|
733
733
|
"name": "extract_text",
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
"type": "boolean",
|
|
836
836
|
"default": false
|
|
837
837
|
},
|
|
838
|
-
"description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. Adds 20 credits per request."
|
|
838
|
+
"description": "Solves a captcha made of text drawn in a picture, then takes the screenshot. Requires captcha_image and captcha_input. It reads text inside a picture only; checkbox challenges and challenges that ask you to select pictures are not supported. Adds 20 credits per request."
|
|
839
839
|
},
|
|
840
840
|
{
|
|
841
841
|
"name": "captcha_image",
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
"schema": {
|
|
845
845
|
"type": "string"
|
|
846
846
|
},
|
|
847
|
-
"description": "CSS selector of the captcha picture
|
|
847
|
+
"description": "CSS selector of the captcha picture, for example `#captcha-img`. Required when solve_captcha is true. The solver waits up to 30 seconds for it to appear."
|
|
848
848
|
},
|
|
849
849
|
{
|
|
850
850
|
"name": "captcha_input",
|
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
"schema": {
|
|
863
863
|
"type": "string"
|
|
864
864
|
},
|
|
865
|
-
"description": "CSS selector of the button to click after the answer is typed."
|
|
865
|
+
"description": "CSS selector of the button to click after the answer is typed. Without it the answer is typed but no button is pressed, which works only when the page checks the answer as you type."
|
|
866
866
|
},
|
|
867
867
|
{
|
|
868
868
|
"name": "captcha_error",
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
"schema": {
|
|
872
872
|
"type": "string"
|
|
873
873
|
},
|
|
874
|
-
"description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again."
|
|
874
|
+
"description": "CSS selector of the message shown for a wrong answer. While it is visible, the solver tries again. Without it the solver cannot tell that a guess was wrong and makes one try."
|
|
875
875
|
},
|
|
876
876
|
{
|
|
877
877
|
"name": "captcha_refresh",
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
"maximum": 5,
|
|
893
893
|
"default": 3
|
|
894
894
|
},
|
|
895
|
-
"description": "Number of guesses the solver makes, from 1 to 5."
|
|
895
|
+
"description": "Number of guesses the solver makes, from 1 to 5. When every guess is rejected, the request fails."
|
|
896
896
|
},
|
|
897
897
|
{
|
|
898
898
|
"name": "ocr_model",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
"400": {
|
|
215
|
-
"description": "Bad Request — Incomplete parameter combination, invalid timezone name,
|
|
215
|
+
"description": "Bad Request — Incomplete or mixed parameter combination, invalid timezone name, time, coordinates, or airport / LO code format",
|
|
216
216
|
"content": {
|
|
217
217
|
"application/json": {
|
|
218
218
|
"schema": {
|
|
@@ -225,6 +225,16 @@
|
|
|
225
225
|
"message": "Parameters' combination is not complete. 'tz_from' and 'tz_to' or 'location_from' and 'location_to' or 'lat_from' and 'long_from' and 'lat_to' and 'long_to' or 'locode_from' and 'locode_to' or 'iata_from' and 'iata_to' or 'icao_from' and 'icao_to' combinations must be provided."
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
|
+
"MismatchedParameters": {
|
|
229
|
+
"summary": "Only one side of a pair, or parameters from different groups, supplied (for example tz_from alone)",
|
|
230
|
+
"value": {
|
|
231
|
+
"error": "Invalid Param Exception",
|
|
232
|
+
"message": "please pass correct parameters",
|
|
233
|
+
"path": "/v1.0/timezone/converter",
|
|
234
|
+
"status": 400,
|
|
235
|
+
"timestamp": "2026-11-20T09:56:23.268Z"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
228
238
|
"InvalidSourceTimezone": {
|
|
229
239
|
"summary": "Invalid source timezone",
|
|
230
240
|
"value": {
|
|
@@ -237,16 +247,34 @@
|
|
|
237
247
|
"message": "Provided lat_from (999) or long_from (0) is not valid. Latitude must be between -90.0 and +90.0 and longitude must be between -180.0 and +180.0."
|
|
238
248
|
}
|
|
239
249
|
},
|
|
240
|
-
"
|
|
241
|
-
"summary": "
|
|
250
|
+
"InvalidTime": {
|
|
251
|
+
"summary": "Unparseable time value",
|
|
242
252
|
"value": {
|
|
243
|
-
"message": "
|
|
253
|
+
"message": "Check whether your input values are correct; source_time_zone = UTC, destined_time_zone = Asia/Karachi, date_time = notatime"
|
|
244
254
|
}
|
|
245
255
|
},
|
|
246
|
-
"
|
|
247
|
-
"summary": "
|
|
256
|
+
"InvalidIataFormat": {
|
|
257
|
+
"summary": "Malformed IATA code",
|
|
248
258
|
"value": {
|
|
249
|
-
"message": "
|
|
259
|
+
"message": "Invalid IATA code: INVALID. IATA code must be in the format of AAA."
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"InvalidIcaoFormat": {
|
|
263
|
+
"summary": "Malformed ICAO code",
|
|
264
|
+
"value": {
|
|
265
|
+
"message": "Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA."
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"InvalidLocodeFormat": {
|
|
269
|
+
"summary": "Malformed UN/LOCODE",
|
|
270
|
+
"value": {
|
|
271
|
+
"message": "Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters."
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"NonNumericCoordinate": {
|
|
275
|
+
"summary": "Non-numeric coordinate",
|
|
276
|
+
"value": {
|
|
277
|
+
"message": "Invalid value 'abc' for parameter 'lat_from'."
|
|
250
278
|
}
|
|
251
279
|
}
|
|
252
280
|
}
|
|
@@ -259,7 +287,7 @@
|
|
|
259
287
|
}
|
|
260
288
|
},
|
|
261
289
|
"404": {
|
|
262
|
-
"description": "Not Found —
|
|
290
|
+
"description": "Not Found — Location address, airport (IATA/ICAO) code, or UN/LOCODE has no matching data",
|
|
263
291
|
"content": {
|
|
264
292
|
"application/json": {
|
|
265
293
|
"schema": {
|
|
@@ -277,6 +305,18 @@
|
|
|
277
305
|
"value": {
|
|
278
306
|
"message": "'Data not found for the provided LO code: ZZZZZ Please contact at support@ipgeolocation.io if provided LO code exists.'"
|
|
279
307
|
}
|
|
308
|
+
},
|
|
309
|
+
"FromLocationNotFound": {
|
|
310
|
+
"summary": "Source (from) location address not found",
|
|
311
|
+
"value": {
|
|
312
|
+
"message": "We couldn't find the (from) location (ZZZNOTEXIST). Try a city or state level address only."
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"ToLocationNotFound": {
|
|
316
|
+
"summary": "Target (to) location address not found",
|
|
317
|
+
"value": {
|
|
318
|
+
"message": "We couldn't find the (to) location (ZZZNOTEXIST). Try a city or state level address only."
|
|
319
|
+
}
|
|
280
320
|
}
|
|
281
321
|
}
|
|
282
322
|
}
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
"400": {
|
|
432
|
-
"description": "Bad Request — Invalid coordinates, timezone name, IP address, or
|
|
432
|
+
"description": "Bad Request — Invalid coordinates, timezone name, IP address, airport code, LO code format, language, or non-numeric coordinate",
|
|
433
433
|
"content": {
|
|
434
434
|
"application/json": {
|
|
435
435
|
"schema": {
|
|
@@ -465,6 +465,24 @@
|
|
|
465
465
|
"value": {
|
|
466
466
|
"message": "Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA."
|
|
467
467
|
}
|
|
468
|
+
},
|
|
469
|
+
"InvalidLoCodeFormat": {
|
|
470
|
+
"summary": "Malformed UN/LOCODE",
|
|
471
|
+
"value": {
|
|
472
|
+
"message": "Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters."
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"InvalidLanguage": {
|
|
476
|
+
"summary": "Unsupported lang value",
|
|
477
|
+
"value": {
|
|
478
|
+
"message": "This 'xx' lang is not valid. Please use 'en' as the default language"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"NonNumericCoordinate": {
|
|
482
|
+
"summary": "Non-numeric lat or long",
|
|
483
|
+
"value": {
|
|
484
|
+
"message": "Invalid value 'abc' for parameter 'lat'."
|
|
485
|
+
}
|
|
468
486
|
}
|
|
469
487
|
}
|
|
470
488
|
}
|
|
@@ -476,7 +494,7 @@
|
|
|
476
494
|
}
|
|
477
495
|
},
|
|
478
496
|
"404": {
|
|
479
|
-
"description": "Not Found — Location address not found, or LO code has no matching data",
|
|
497
|
+
"description": "Not Found — Location address not found, or airport code / LO code has no matching data",
|
|
480
498
|
"content": {
|
|
481
499
|
"application/json": {
|
|
482
500
|
"schema": {
|
|
@@ -494,6 +512,35 @@
|
|
|
494
512
|
"value": {
|
|
495
513
|
"message": "'Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'"
|
|
496
514
|
}
|
|
515
|
+
},
|
|
516
|
+
"AirportNotFound": {
|
|
517
|
+
"summary": "IATA/ICAO airport code not found",
|
|
518
|
+
"value": {
|
|
519
|
+
"message": "'Data not found for the provided airport code: ZZZ Please contact at support@ipgeolocation.io if provided airport code exists.'"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"headers": {
|
|
526
|
+
"X-AF-Credits-Cost": {
|
|
527
|
+
"$ref": "#/components/headers/X-AF-Credits-Cost"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"423": {
|
|
532
|
+
"description": "Locked — Bogon or reserved IP address",
|
|
533
|
+
"content": {
|
|
534
|
+
"application/json": {
|
|
535
|
+
"schema": {
|
|
536
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
537
|
+
},
|
|
538
|
+
"examples": {
|
|
539
|
+
"BogonIp": {
|
|
540
|
+
"summary": "Bogon or reserved IP address",
|
|
541
|
+
"value": {
|
|
542
|
+
"message": "'192.168.1.1' is a bogon IP address."
|
|
543
|
+
}
|
|
497
544
|
}
|
|
498
545
|
}
|
|
499
546
|
}
|
|
@@ -801,13 +848,11 @@
|
|
|
801
848
|
"description": "The full name of the airport."
|
|
802
849
|
},
|
|
803
850
|
"latitude": {
|
|
804
|
-
"type": "
|
|
805
|
-
"format": "float",
|
|
851
|
+
"type": "string",
|
|
806
852
|
"description": "The latitude coordinate of the airport."
|
|
807
853
|
},
|
|
808
854
|
"longitude": {
|
|
809
|
-
"type": "
|
|
810
|
-
"format": "float",
|
|
855
|
+
"type": "string",
|
|
811
856
|
"description": "The longitude coordinate of the airport."
|
|
812
857
|
},
|
|
813
858
|
"elevation_ft": {
|
|
@@ -873,13 +918,11 @@
|
|
|
873
918
|
"description": "The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport)."
|
|
874
919
|
},
|
|
875
920
|
"latitude": {
|
|
876
|
-
"type": "
|
|
877
|
-
"format": "float",
|
|
921
|
+
"type": "string",
|
|
878
922
|
"description": "The latitude coordinate of the location."
|
|
879
923
|
},
|
|
880
924
|
"longitude": {
|
|
881
|
-
"type": "
|
|
882
|
-
"format": "float",
|
|
925
|
+
"type": "string",
|
|
883
926
|
"description": "The longitude coordinate of the location."
|
|
884
927
|
}
|
|
885
928
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"schema": {
|
|
71
71
|
"type": "number"
|
|
72
72
|
},
|
|
73
|
-
"description": "Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API and
|
|
73
|
+
"description": "Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for equator queries.",
|
|
74
74
|
"required": false
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"schema": {
|
|
80
80
|
"type": "number"
|
|
81
81
|
},
|
|
82
|
-
"description": "Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API and
|
|
82
|
+
"description": "Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.",
|
|
83
83
|
"required": false
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -1045,12 +1045,12 @@
|
|
|
1045
1045
|
"TimeSeriesData": {
|
|
1046
1046
|
"type": "object",
|
|
1047
1047
|
"description": "Time-series data object keyed by date (YYYY-MM-DD). Each key is a date and the value is a TimeSeriesDay containing daily aggregates, hourly readings, and astronomy data.",
|
|
1048
|
-
"
|
|
1049
|
-
"
|
|
1050
|
-
"$ref": "#/components/schemas/TimeSeriesDay"
|
|
1051
|
-
}
|
|
1048
|
+
"additionalProperties": {
|
|
1049
|
+
"$ref": "#/components/schemas/TimeSeriesDay"
|
|
1052
1050
|
},
|
|
1053
|
-
"
|
|
1051
|
+
"propertyNames": {
|
|
1052
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1053
|
+
}
|
|
1054
1054
|
}
|
|
1055
1055
|
},
|
|
1056
1056
|
"headers": {
|