@apifreaks/openapi-specs 0.4.23 → 0.4.25

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.
Files changed (77) hide show
  1. package/dist/index.cjs +4020 -774
  2. package/dist/index.js +4020 -774
  3. package/dist/specs/commodity/commodity-fluctuation.yaml +33 -2
  4. package/dist/specs/commodity/commodity-intraday-rates.yaml +33 -2
  5. package/dist/specs/commodity/commodity-prices.yaml +33 -2
  6. package/dist/specs/commodity/commodity-symbols.yaml +68 -1
  7. package/dist/specs/commodity/commodity-time-series.yaml +33 -2
  8. package/dist/specs/commodity/historical-commodity-prices.yaml +33 -2
  9. package/dist/specs/dns/bulk-dns-lookup.yaml +45 -3
  10. package/dist/specs/dns/dns-history-lookup.yaml +76 -3
  11. package/dist/specs/dns/dns-lookup.yaml +72 -6
  12. package/dist/specs/dns/reverse-dns-lookup.yaml +91 -2
  13. package/dist/specs/financial/bulk-vat-rates-country.yaml +18 -0
  14. package/dist/specs/financial/financial-apis-supported-countries.yaml +75 -17
  15. package/dist/specs/financial/iban-validation.yaml +19 -1
  16. package/dist/specs/financial/swift-code-finder.yaml +18 -0
  17. package/dist/specs/financial/swift-code-lookup.yaml +18 -0
  18. package/dist/specs/financial/vat-number-validation.yaml +48 -0
  19. package/dist/specs/financial/vat-rates-by-ip.yaml +18 -0
  20. package/dist/specs/financial/vat-rates-country.yaml +18 -0
  21. package/dist/specs/geocoding/forward-geocoding.yaml +95 -2
  22. package/dist/specs/geocoding/reverse-geocoding.yaml +71 -0
  23. package/dist/specs/phone-number-validation/bulk-phone-number-validation.yaml +25 -21
  24. package/dist/specs/phone-number-validation/phone-validation.yaml +49 -21
  25. package/dist/specs/scraper/web-scraper.yaml +85 -7
  26. package/dist/specs/weather/air-quality.yaml +71 -5
  27. package/dist/specs/weather/astronomy-data.yaml +84 -1
  28. package/dist/specs/weather/bulk-live-weather.yaml +159 -3
  29. package/dist/specs/weather/flood-forecast.yaml +61 -11
  30. package/dist/specs/weather/historical-weather.yaml +53 -3
  31. package/dist/specs/weather/live-weather.yaml +66 -15
  32. package/dist/specs/weather/marine-weather.yaml +74 -8
  33. package/dist/specs/weather/time-series-weather.yaml +60 -8
  34. package/dist/specs/weather/weather-forecast.yaml +76 -6
  35. package/dist/specs/whois/asn-lookup.yaml +0 -15
  36. package/dist/specs/whois/bulk-whois-lookup.yaml +177 -25
  37. package/dist/specs/whois/domain-whois-history-lookup.yaml +97 -20
  38. package/dist/specs/whois/whois-domain-lookup.yaml +109 -21
  39. package/dist/specs/whois/whois-ip-lookup.yaml +86 -16
  40. package/package.json +1 -1
  41. package/specs/commodity/commodity-fluctuation.json +44 -2
  42. package/specs/commodity/commodity-intraday-rates.json +44 -2
  43. package/specs/commodity/commodity-prices.json +44 -2
  44. package/specs/commodity/commodity-symbols.json +95 -1
  45. package/specs/commodity/commodity-time-series.json +44 -2
  46. package/specs/commodity/historical-commodity-prices.json +44 -2
  47. package/specs/dns/bulk-dns-lookup.json +63 -4
  48. package/specs/dns/dns-history-lookup.json +102 -3
  49. package/specs/dns/dns-lookup.json +96 -6
  50. package/specs/dns/reverse-dns-lookup.json +121 -2
  51. package/specs/financial/bulk-vat-rates-country.json +27 -0
  52. package/specs/financial/financial-apis-supported-countries.json +114 -23
  53. package/specs/financial/iban-validation.json +28 -1
  54. package/specs/financial/swift-code-finder.json +27 -0
  55. package/specs/financial/swift-code-lookup.json +27 -0
  56. package/specs/financial/vat-number-validation.json +72 -0
  57. package/specs/financial/vat-rates-by-ip.json +27 -0
  58. package/specs/financial/vat-rates-country.json +27 -0
  59. package/specs/geocoding/forward-geocoding.json +127 -2
  60. package/specs/geocoding/reverse-geocoding.json +102 -0
  61. package/specs/phone-number-validation/bulk-phone-number-validation.json +35 -30
  62. package/specs/phone-number-validation/phone-validation.json +64 -29
  63. package/specs/scraper/web-scraper.json +110 -7
  64. package/specs/weather/air-quality.json +92 -5
  65. package/specs/weather/astronomy-data.json +122 -1
  66. package/specs/weather/bulk-live-weather.json +227 -3
  67. package/specs/weather/flood-forecast.json +78 -11
  68. package/specs/weather/historical-weather.json +70 -3
  69. package/specs/weather/live-weather.json +85 -17
  70. package/specs/weather/marine-weather.json +95 -8
  71. package/specs/weather/time-series-weather.json +82 -8
  72. package/specs/weather/weather-forecast.json +107 -6
  73. package/specs/whois/asn-lookup.json +0 -22
  74. package/specs/whois/bulk-whois-lookup.json +116 -47
  75. package/specs/whois/domain-whois-history-lookup.json +58 -32
  76. package/specs/whois/whois-domain-lookup.json +99 -39
  77. package/specs/whois/whois-ip-lookup.json +21 -33
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Financial APIs Supported Countries Reference",
5
5
  "version": "1.0.0",
6
- "description": "Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs. The response always includes all three categories — VAT_Supported_Countries_And_States, IBAN_Supported_Countries, and SWIFT_Supported_Countries — each with a different shape. VAT entries are keyed by lowercase country name and include an ISO code plus, for a handful of countries (US, Canada, Spain), a nested map of sub-national state/region codes. IBAN and SWIFT entries are flat arrays of {name, countryCode} objects.",
6
+ "description": "Retrieve the countries and states supported by the VAT, IBAN, and SWIFT APIs. Use the `type` query parameter (`vat`, `iban` or `swift`) to choose which list is returned; a call with a valid `type` returns only that list, under its own top-level key (VAT_Supported_Countries_And_States, IBAN_Supported_Countries or SWIFT_Supported_Countries). When `type` is omitted or is not one of the three values, all three lists are returned. VAT entries are keyed by lowercase country name and include an ISO code plus, for a handful of countries (US, Canada, Spain), a nested map of sub-national state/region codes. IBAN and SWIFT entries are flat arrays of {name, countryCode} objects.",
7
7
  "contact": {
8
8
  "name": "APIFreaks Support",
9
9
  "url": "https://apifreaks.com/contact",
@@ -21,7 +21,7 @@
21
21
  "get": {
22
22
  "tags": ["Financial APIs"],
23
23
  "summary": "Get supported countries",
24
- "description": "Returns the countries and states supported by the VAT, IBAN, and SWIFT APIs.",
24
+ "description": "Returns the list of countries (and, for VAT, states) supported by the VAT, IBAN, or SWIFT API, depending on the `type` parameter. Only the requested list is returned.",
25
25
  "operationId": "getSupportedCountries",
26
26
  "parameters": [
27
27
  {
@@ -40,22 +40,51 @@
40
40
  "in": "query",
41
41
  "required": false,
42
42
  "schema": {
43
- "type": "string"
43
+ "type": "string",
44
+ "enum": [
45
+ "vat",
46
+ "iban",
47
+ "swift"
48
+ ]
44
49
  },
45
- "description": "Accepted by the endpoint but currently has no effect — all three categories (VAT, IBAN, SWIFT) are always returned regardless of this value."
50
+ "description": "Selects which list to return: `vat`, `iban` or `swift`. Each value returns only its own list. Matching is case-insensitive. If omitted, or set to any other value, all three lists are returned. There is no default."
46
51
  }
47
52
  ],
48
53
  "responses": {
49
54
  "200": {
50
- "description": "Successful response — always returns all three categories",
55
+ "description": "Successful response — returns the list selected by `type`, or all three lists when `type` is omitted or not recognised",
51
56
  "content": {
52
57
  "application/json": {
53
58
  "schema": {
54
59
  "$ref": "#/components/schemas/SupportedCountriesResponse"
55
60
  },
56
61
  "examples": {
57
- "typicalSuccess": {
58
- "summary": "Typical successful response (truncated)",
62
+ "allLists": {
63
+ "summary": "type omitted — all three lists (truncated)",
64
+ "value": {
65
+ "VAT_Supported_Countries_And_States": [
66
+ {
67
+ "germany": {
68
+ "code": "de"
69
+ }
70
+ }
71
+ ],
72
+ "IBAN_Supported_Countries": [
73
+ {
74
+ "name": "Albania",
75
+ "countryCode": "AL"
76
+ }
77
+ ],
78
+ "SWIFT_Supported_Countries": [
79
+ {
80
+ "name": "Afghanistan",
81
+ "countryCode": "AF"
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ "vatList": {
87
+ "summary": "type=vat — VAT list only (truncated)",
59
88
  "value": {
60
89
  "VAT_Supported_Countries_And_States": [
61
90
  {
@@ -73,25 +102,35 @@
73
102
  }
74
103
  }
75
104
  }
76
- ],
105
+ ]
106
+ }
107
+ },
108
+ "ibanList": {
109
+ "summary": "type=iban — IBAN list only (truncated)",
110
+ "value": {
77
111
  "IBAN_Supported_Countries": [
78
112
  {
79
- "countryCode": "DE",
80
- "name": "Germany"
113
+ "name": "Albania",
114
+ "countryCode": "AL"
81
115
  },
82
116
  {
83
- "countryCode": "GB",
84
- "name": "United Kingdom"
117
+ "name": "Germany",
118
+ "countryCode": "DE"
85
119
  }
86
- ],
120
+ ]
121
+ }
122
+ },
123
+ "swiftList": {
124
+ "summary": "type=swift — SWIFT list only (truncated)",
125
+ "value": {
87
126
  "SWIFT_Supported_Countries": [
88
127
  {
89
- "name": "Germany",
90
- "countryCode": "DE"
128
+ "name": "Afghanistan",
129
+ "countryCode": "AF"
91
130
  },
92
131
  {
93
- "name": "United States",
94
- "countryCode": "US"
132
+ "name": "Germany",
133
+ "countryCode": "DE"
95
134
  }
96
135
  ]
97
136
  }
@@ -104,6 +143,33 @@
104
143
  "$ref": "#/components/headers/X-AF-Credits-Cost"
105
144
  }
106
145
  }
146
+ },
147
+ "406": {
148
+ "description": "Unsupported Media Type — format is not json or xml",
149
+ "content": {
150
+ "application/json": {
151
+ "schema": {
152
+ "$ref": "#/components/schemas/ErrorResponse"
153
+ },
154
+ "examples": {
155
+ "badFormat": {
156
+ "summary": "format value not supported",
157
+ "value": {
158
+ "error": "Unsupported Media Type",
159
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
160
+ "path": "/v1.0/vat/supported-countries",
161
+ "status": 406,
162
+ "timestamp": "2026-11-25T10:00:55.394Z"
163
+ }
164
+ }
165
+ }
166
+ }
167
+ },
168
+ "headers": {
169
+ "X-AF-Credits-Cost": {
170
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
171
+ }
172
+ }
107
173
  }
108
174
  }
109
175
  }
@@ -127,12 +193,7 @@
127
193
  "schemas": {
128
194
  "SupportedCountriesResponse": {
129
195
  "type": "object",
130
- "description": "Countries and states supported by the VAT, IBAN, and SWIFT APIs.",
131
- "required": [
132
- "VAT_Supported_Countries_And_States",
133
- "IBAN_Supported_Countries",
134
- "SWIFT_Supported_Countries"
135
- ],
196
+ "description": "Countries and states supported by the VAT, IBAN, and SWIFT APIs. Exactly one of the three properties is present, depending on the `type` request parameter.",
136
197
  "properties": {
137
198
  "VAT_Supported_Countries_And_States": {
138
199
  "type": "array",
@@ -162,6 +223,36 @@
162
223
  }
163
224
  }
164
225
  },
226
+ "ErrorResponse": {
227
+ "type": "object",
228
+ "required": [
229
+ "message"
230
+ ],
231
+ "properties": {
232
+ "error": {
233
+ "type": "string",
234
+ "description": "Short error category or exception type."
235
+ },
236
+ "message": {
237
+ "type": "string",
238
+ "description": "Human-readable error message describing the failure."
239
+ },
240
+ "path": {
241
+ "type": "string",
242
+ "description": "API endpoint path that produced the error."
243
+ },
244
+ "status": {
245
+ "type": "integer",
246
+ "description": "HTTP status code returned with the error."
247
+ },
248
+ "timestamp": {
249
+ "type": "string",
250
+ "format": "date-time",
251
+ "description": "Timestamp when the error occurred (ISO 8601)."
252
+ }
253
+ },
254
+ "description": "Standard error envelope returned by the API on failed requests."
255
+ },
165
256
  "VatCountryEntry": {
166
257
  "type": "object",
167
258
  "description": "VAT country metadata: an ISO 3166-1 alpha-2 code, plus an optional map of sub-national states/regions for countries with state-level VAT (US, Canada, Spain).",
@@ -41,7 +41,7 @@
41
41
  "schema": {
42
42
  "type": "string"
43
43
  },
44
- "description": "IBAN to validate."
44
+ "description": "IBAN to validate. Pass it as a single uppercase string with no spaces or separators; lowercase letters or spaces are not normalized for validation and make the result `valid: false` (is_valid_structure false)."
45
45
  }
46
46
  ],
47
47
  "responses": {
@@ -178,6 +178,33 @@
178
178
  "$ref": "#/components/headers/X-AF-Credits-Cost"
179
179
  }
180
180
  }
181
+ },
182
+ "406": {
183
+ "description": "Unsupported Media Type — format is not json or xml",
184
+ "content": {
185
+ "application/json": {
186
+ "schema": {
187
+ "$ref": "#/components/schemas/ErrorResponse"
188
+ },
189
+ "examples": {
190
+ "badFormat": {
191
+ "summary": "format value not supported",
192
+ "value": {
193
+ "error": "Unsupported Media Type",
194
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
195
+ "path": "/v1.0/iban/validation",
196
+ "status": 406,
197
+ "timestamp": "2026-11-25T10:00:55.394Z"
198
+ }
199
+ }
200
+ }
201
+ }
202
+ },
203
+ "headers": {
204
+ "X-AF-Credits-Cost": {
205
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
206
+ }
207
+ }
181
208
  }
182
209
  },
183
210
  "operationId": "validateIban"
@@ -140,6 +140,33 @@
140
140
  "$ref": "#/components/headers/X-AF-Credits-Cost"
141
141
  }
142
142
  }
143
+ },
144
+ "406": {
145
+ "description": "Unsupported Media Type — format is not json or xml",
146
+ "content": {
147
+ "application/json": {
148
+ "schema": {
149
+ "$ref": "#/components/schemas/ErrorResponse"
150
+ },
151
+ "examples": {
152
+ "badFormat": {
153
+ "summary": "format value not supported",
154
+ "value": {
155
+ "error": "Unsupported Media Type",
156
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
157
+ "path": "/v1.0/swift-code/finder",
158
+ "status": 406,
159
+ "timestamp": "2026-11-25T10:00:55.394Z"
160
+ }
161
+ }
162
+ }
163
+ }
164
+ },
165
+ "headers": {
166
+ "X-AF-Credits-Cost": {
167
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
168
+ }
169
+ }
143
170
  }
144
171
  }
145
172
  }
@@ -147,6 +147,33 @@
147
147
  "$ref": "#/components/headers/X-AF-Credits-Cost"
148
148
  }
149
149
  }
150
+ },
151
+ "406": {
152
+ "description": "Unsupported Media Type — format is not json or xml",
153
+ "content": {
154
+ "application/json": {
155
+ "schema": {
156
+ "$ref": "#/components/schemas/ErrorResponse"
157
+ },
158
+ "examples": {
159
+ "badFormat": {
160
+ "summary": "format value not supported",
161
+ "value": {
162
+ "error": "Unsupported Media Type",
163
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
164
+ "path": "/v1.0/swift-code/lookup",
165
+ "status": 406,
166
+ "timestamp": "2026-11-25T10:00:55.394Z"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ },
172
+ "headers": {
173
+ "X-AF-Credits-Cost": {
174
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
175
+ }
176
+ }
150
177
  }
151
178
  },
152
179
  "operationId": "lookupSwiftCode"
@@ -129,6 +129,24 @@
129
129
  "value": {
130
130
  "message": "Unsupported VAT country code. Supported prefixes are UK/GB and EU VAT country codes."
131
131
  }
132
+ },
133
+ "InvalidRequesterCountry": {
134
+ "summary": "requesterVatNumber has an invalid or unsupported country prefix",
135
+ "value": {
136
+ "message": "The requester member state code is invalid."
137
+ }
138
+ },
139
+ "MandatoryFieldMissing": {
140
+ "summary": "vatNumber has a valid prefix but no number (for example DE)",
141
+ "value": {
142
+ "message": "A mandatory field is missing"
143
+ }
144
+ },
145
+ "UpstreamBusy": {
146
+ "summary": "Upstream VIES service is at its concurrent-request limit (transient, retry later)",
147
+ "value": {
148
+ "message": "MS MAX CONCURRENT REQ"
149
+ }
132
150
  }
133
151
  }
134
152
  }
@@ -161,6 +179,60 @@
161
179
  "$ref": "#/components/headers/X-AF-Credits-Cost"
162
180
  }
163
181
  }
182
+ },
183
+ "406": {
184
+ "description": "Unsupported Media Type — format is not json or xml",
185
+ "content": {
186
+ "application/json": {
187
+ "schema": {
188
+ "$ref": "#/components/schemas/ErrorResponse"
189
+ },
190
+ "examples": {
191
+ "badFormat": {
192
+ "summary": "format value not supported",
193
+ "value": {
194
+ "error": "Unsupported Media Type",
195
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
196
+ "path": "/v1.0/vat/validation",
197
+ "status": 406,
198
+ "timestamp": "2026-11-25T10:00:55.394Z"
199
+ }
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "headers": {
205
+ "X-AF-Credits-Cost": {
206
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
207
+ }
208
+ }
209
+ },
210
+ "504": {
211
+ "description": "Gateway Timeout — the upstream VIES/HMRC service did not respond in time (transient, retry later)",
212
+ "content": {
213
+ "application/json": {
214
+ "schema": {
215
+ "$ref": "#/components/schemas/ErrorResponse"
216
+ },
217
+ "examples": {
218
+ "GatewayTimeout": {
219
+ "summary": "Upstream validation service timed out",
220
+ "value": {
221
+ "error": "Gateway Timeout",
222
+ "message": "Request is timed-out. Please contact at support@apifreaks.com",
223
+ "path": "/v1.0/vat/validation",
224
+ "status": 504,
225
+ "timestamp": "2026-11-25T10:06:09.994Z"
226
+ }
227
+ }
228
+ }
229
+ }
230
+ },
231
+ "headers": {
232
+ "X-AF-Credits-Cost": {
233
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
234
+ }
235
+ }
164
236
  }
165
237
  },
166
238
  "operationId": "validateVatNumber"
@@ -138,6 +138,33 @@
138
138
  "$ref": "#/components/headers/X-AF-Credits-Cost"
139
139
  }
140
140
  }
141
+ },
142
+ "406": {
143
+ "description": "Unsupported Media Type — format is not json or xml",
144
+ "content": {
145
+ "application/json": {
146
+ "schema": {
147
+ "$ref": "#/components/schemas/ErrorResponse"
148
+ },
149
+ "examples": {
150
+ "badFormat": {
151
+ "summary": "format value not supported",
152
+ "value": {
153
+ "error": "Unsupported Media Type",
154
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
155
+ "path": "/v1.0/vat/rates/ip-address",
156
+ "status": 406,
157
+ "timestamp": "2026-11-25T10:00:55.394Z"
158
+ }
159
+ }
160
+ }
161
+ }
162
+ },
163
+ "headers": {
164
+ "X-AF-Credits-Cost": {
165
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
166
+ }
167
+ }
141
168
  }
142
169
  }
143
170
  }
@@ -151,6 +151,33 @@
151
151
  "$ref": "#/components/headers/X-AF-Credits-Cost"
152
152
  }
153
153
  }
154
+ },
155
+ "406": {
156
+ "description": "Unsupported Media Type — format is not json or xml",
157
+ "content": {
158
+ "application/json": {
159
+ "schema": {
160
+ "$ref": "#/components/schemas/ErrorResponse"
161
+ },
162
+ "examples": {
163
+ "badFormat": {
164
+ "summary": "format value not supported",
165
+ "value": {
166
+ "error": "Unsupported Media Type",
167
+ "message": "The media type specified in the request is not supported. For more details, please refer to the API documentation.",
168
+ "path": "/v1.0/vat/rates/country",
169
+ "status": 406,
170
+ "timestamp": "2026-11-25T10:00:55.394Z"
171
+ }
172
+ }
173
+ }
174
+ }
175
+ },
176
+ "headers": {
177
+ "X-AF-Credits-Cost": {
178
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
179
+ }
180
+ }
154
181
  }
155
182
  }
156
183
  }
@@ -33,11 +33,22 @@
33
33
  "type": "string"
34
34
  }
35
35
  },
36
+ {
37
+ "name": "format",
38
+ "in": "query",
39
+ "required": false,
40
+ "description": "Response format. Only `json` is supported; any other value is ignored and the response is still returned as JSON.",
41
+ "schema": {
42
+ "type": "string",
43
+ "enum": ["json"],
44
+ "default": "json"
45
+ }
46
+ },
36
47
  {
37
48
  "name": "limit",
38
49
  "in": "query",
39
50
  "required": false,
40
- "description": "Maximum number of results to return. May return fewer if matches are weak.",
51
+ "description": "Maximum number of results to return. Must be an integer between 1 and 40. May return fewer if matches are weak.",
41
52
  "schema": {
42
53
  "type": "integer",
43
54
  "minimum": 1,
@@ -202,6 +213,83 @@
202
213
  "status": 400,
203
214
  "timestamp": "2026-07-22T14:30:11.104Z"
204
215
  }
216
+ },
217
+ "missingViewboxParams": {
218
+ "summary": "Only some of the four viewbox parameters supplied",
219
+ "value": {
220
+ "error": "Invalid Param Exception",
221
+ "message": "please pass correct parameters",
222
+ "path": "/v1.0/geocoder/search",
223
+ "status": 400,
224
+ "timestamp": "2026-11-25T10:00:59.575Z"
225
+ }
226
+ },
227
+ "invalidViewboxLatitudeRange": {
228
+ "summary": "`min_lat` or `max_lat` outside the -90 to 90 range",
229
+ "value": {
230
+ "error": "Invalid Latitude Provided",
231
+ "message": "Latitude must be between -90 and 90.",
232
+ "path": "/v1.0/geocoder/search",
233
+ "status": 400,
234
+ "timestamp": "2026-11-25T10:01:01.969Z"
235
+ }
236
+ },
237
+ "invalidViewboxLongitudeRange": {
238
+ "summary": "`min_lon` or `max_lon` outside the -180 to 180 range",
239
+ "value": {
240
+ "error": "Invalid Longitude Provided",
241
+ "message": "Longitude must be between -180 and 180.",
242
+ "path": "/v1.0/geocoder/search",
243
+ "status": 400,
244
+ "timestamp": "2026-11-25T10:01:12.506Z"
245
+ }
246
+ },
247
+ "invalidParameters": {
248
+ "summary": "A numeric parameter is not a valid number",
249
+ "value": {
250
+ "error": "Invalid Parameters Provided",
251
+ "message": "Please provide valid parameters.",
252
+ "path": "/v1.0/geocoder/search",
253
+ "status": 400,
254
+ "timestamp": "2026-11-25T10:01:01.358Z"
255
+ }
256
+ },
257
+ "missingApiKey": {
258
+ "summary": "No API key supplied",
259
+ "value": {
260
+ "error": "Invalid Param Exception",
261
+ "message": "Please provide apiKey",
262
+ "path": "/v1.0/geocoder/search",
263
+ "status": 400,
264
+ "timestamp": "2026-11-25T10:01:15.099Z"
265
+ }
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "headers": {
271
+ "X-AF-Credits-Cost": {
272
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
273
+ }
274
+ }
275
+ },
276
+ "401": {
277
+ "description": "Unauthorized — The API key is invalid",
278
+ "content": {
279
+ "application/json": {
280
+ "schema": {
281
+ "$ref": "#/components/schemas/ErrorResponse"
282
+ },
283
+ "examples": {
284
+ "invalidApiKey": {
285
+ "summary": "Invalid API key",
286
+ "value": {
287
+ "error": "API Access Exception",
288
+ "message": "Provided API key is invalid. [For Technical Support: support@apifreaks.com]",
289
+ "path": "/v1.0/geocoder/search",
290
+ "status": 401,
291
+ "timestamp": "2026-11-25T10:01:15.616Z"
292
+ }
205
293
  }
206
294
  }
207
295
  }
@@ -213,7 +301,7 @@
213
301
  }
214
302
  },
215
303
  "404": {
216
- "description": "Not Found — No results matched the query",
304
+ "description": "Not Found — No results matched the query, or an unsupported HTTP method was used",
217
305
  "content": {
218
306
  "application/json": {
219
307
  "schema": {
@@ -229,6 +317,43 @@
229
317
  "status": 404,
230
318
  "timestamp": "2026-07-22T14:29:58.349Z"
231
319
  }
320
+ },
321
+ "methodNotAllowed": {
322
+ "summary": "Non-GET HTTP method used",
323
+ "value": {
324
+ "error": "Resource Not Found",
325
+ "message": "The requested resource could not be found. Please verify the URL and try again.",
326
+ "path": "/v1.0/geocoder/search",
327
+ "status": 404,
328
+ "timestamp": "2026-11-25T10:01:04.916Z"
329
+ }
330
+ }
331
+ }
332
+ }
333
+ },
334
+ "headers": {
335
+ "X-AF-Credits-Cost": {
336
+ "$ref": "#/components/headers/X-AF-Credits-Cost"
337
+ }
338
+ }
339
+ },
340
+ "500": {
341
+ "description": "Internal Server Error — Returned when the request cannot be processed",
342
+ "content": {
343
+ "application/json": {
344
+ "schema": {
345
+ "$ref": "#/components/schemas/ErrorResponse"
346
+ },
347
+ "examples": {
348
+ "internalError": {
349
+ "summary": "Internal server error, e.g. a zero-width viewbox where `min_lon` equals `max_lon`",
350
+ "value": {
351
+ "error": "Internal Server Error",
352
+ "message": "Internal Server Error Occurred.",
353
+ "path": "/v1.0/geocoder/search",
354
+ "status": 500,
355
+ "timestamp": "2026-11-25T10:01:14.559Z"
356
+ }
232
357
  }
233
358
  }
234
359
  }