@apifreaks/openapi-specs 0.1.0 → 0.1.2

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 (108) hide show
  1. package/dist/index.cjs +133 -2
  2. package/dist/index.d.cts +140 -3
  3. package/dist/index.d.ts +140 -3
  4. package/dist/index.js +131 -2
  5. package/dist/specs/commodity/commodity-fluctuation.yaml +225 -0
  6. package/dist/specs/commodity/commodity-prices.yaml +236 -0
  7. package/dist/specs/commodity/commodity-symbols.yaml +159 -0
  8. package/dist/specs/commodity/commodity-time-series.yaml +238 -0
  9. package/dist/specs/commodity/historical-commodity-prices.yaml +208 -0
  10. package/dist/specs/currency/currency-converter.yaml +193 -0
  11. package/dist/specs/currency/currency-fluctuation.yaml +211 -0
  12. package/dist/specs/currency/currency-historical-data-limit.yaml +112 -0
  13. package/dist/specs/currency/currency-rate.yaml +173 -0
  14. package/dist/specs/currency/currency-supported.yaml +176 -0
  15. package/dist/specs/currency/currency-symbols.yaml +115 -0
  16. package/dist/specs/currency/currency-time-series.yaml +232 -0
  17. package/dist/specs/currency/geolocalized-currency-conversion.yaml +214 -0
  18. package/dist/specs/currency/historical-currency-converter.yaml +195 -0
  19. package/dist/specs/currency/historical-currency-rate.yaml +180 -0
  20. package/dist/specs/dns/bulk-dns-lookup.yaml +484 -0
  21. package/dist/specs/dns/dns-history-lookup.yaml +451 -0
  22. package/dist/specs/dns/dns-lookup.yaml +360 -0
  23. package/dist/specs/dns/reverse-dns-lookup.yaml +338 -0
  24. package/dist/specs/domain/bulk-domain-checker.yaml +198 -0
  25. package/dist/specs/domain/domain-search-with-suggestions.yaml +196 -0
  26. package/dist/specs/domain/domain-search.yaml +149 -0
  27. package/dist/specs/domain/subdomain-lookup.yaml +251 -0
  28. package/dist/specs/email-validation/bulk-email-validation.yaml +403 -0
  29. package/dist/specs/email-validation/email-checker.yaml +451 -0
  30. package/dist/specs/financial/bulk-vat-rates-country.yaml +250 -0
  31. package/dist/specs/financial/financial-apis-supported-countries.yaml +152 -0
  32. package/dist/specs/financial/iban-validation.yaml +270 -0
  33. package/dist/specs/financial/swift-code-finder.yaml +146 -0
  34. package/dist/specs/financial/swift-code-lookup.yaml +156 -0
  35. package/dist/specs/financial/vat-number-validation.yaml +205 -0
  36. package/dist/specs/financial/vat-rates-by-ip.yaml +200 -0
  37. package/dist/specs/financial/vat-rates-country.yaml +212 -0
  38. package/dist/specs/general/usage-credits.yaml +188 -0
  39. package/dist/specs/geocoding/forward-geocoding.yaml +292 -0
  40. package/dist/specs/geocoding/reverse-geocoding.yaml +237 -0
  41. package/dist/specs/geodb/administrative-units-details.yaml +180 -0
  42. package/dist/specs/geodb/administrative-units-levels.yaml +140 -0
  43. package/dist/specs/geodb/administrative-units.yaml +168 -0
  44. package/dist/specs/geodb/cities.yaml +209 -0
  45. package/dist/specs/geodb/countries-details.yaml +207 -0
  46. package/dist/specs/geodb/countries.yaml +199 -0
  47. package/dist/specs/geodb/flags-supported.yaml +119 -0
  48. package/dist/specs/geodb/flags.yaml +170 -0
  49. package/dist/specs/geodb/regions.yaml +76 -0
  50. package/dist/specs/geodb/subregions.yaml +158 -0
  51. package/dist/specs/ip-intelligence/bulk-ip-lookup.yaml +895 -0
  52. package/dist/specs/ip-intelligence/bulk-ip-threat-intelligence.yaml +310 -0
  53. package/dist/specs/ip-intelligence/ip-locator.yaml +708 -0
  54. package/dist/specs/ip-intelligence/ip-threat-intelligence.yaml +230 -0
  55. package/dist/specs/other/astronomy-data.yaml +632 -0
  56. package/dist/specs/pdf/delete-pdf-page.yaml +193 -0
  57. package/dist/specs/pdf/linearize-pdf.yaml +187 -0
  58. package/dist/specs/pdf/merge-pdf.yaml +193 -0
  59. package/dist/specs/pdf/pdf-compress.yaml +208 -0
  60. package/dist/specs/pdf/pdf-decrypt.yaml +202 -0
  61. package/dist/specs/pdf/pdf-encrypt.yaml +213 -0
  62. package/dist/specs/pdf/pdf-extract-pages.yaml +199 -0
  63. package/dist/specs/pdf/pdf-file-status.yaml +148 -0
  64. package/dist/specs/pdf/pdf-file.yaml +136 -0
  65. package/dist/specs/pdf/pdf-files.yaml +85 -0
  66. package/dist/specs/pdf/pdf-resource-download.yaml +117 -0
  67. package/dist/specs/pdf/pdf-resource-upload-binary.yaml +152 -0
  68. package/dist/specs/pdf/pdf-resource-upload.yaml +163 -0
  69. package/dist/specs/pdf/pdf-restrict.yaml +246 -0
  70. package/dist/specs/pdf/pdf-split-pages.yaml +208 -0
  71. package/dist/specs/pdf/pdf-task-status.yaml +187 -0
  72. package/dist/specs/pdf/pdf-to-image.yaml +844 -0
  73. package/dist/specs/pdf/pdf-unrestrict.yaml +221 -0
  74. package/dist/specs/pdf/rotate-pdf-pages.yaml +207 -0
  75. package/dist/specs/phone-validation/bulk-phone-number-validation.yaml +374 -0
  76. package/dist/specs/phone-validation/phone-number-validation.yaml +344 -0
  77. package/dist/specs/scraper/web-scraper.yaml +479 -0
  78. package/dist/specs/screenshot/bulk-screenshot.yaml +728 -0
  79. package/dist/specs/screenshot/website-screenshot.yaml +822 -0
  80. package/dist/specs/ssl/ssl-certificate-chain-lookup.yaml +593 -0
  81. package/dist/specs/ssl/ssl-certificate-lookup.yaml +478 -0
  82. package/dist/specs/timezone/timezone-converter.yaml +249 -0
  83. package/dist/specs/timezone/timezone-lookup.yaml +712 -0
  84. package/dist/specs/user-agent/bulk-user-agent-parser.yaml +340 -0
  85. package/dist/specs/user-agent/user-agent-parser.yaml +271 -0
  86. package/dist/specs/weather/air-quality.yaml +590 -0
  87. package/dist/specs/weather/bulk-live-weather.yaml +654 -0
  88. package/dist/specs/weather/flood-forecast.yaml +519 -0
  89. package/dist/specs/weather/historical-weather.yaml +842 -0
  90. package/dist/specs/weather/live-weather.yaml +633 -0
  91. package/dist/specs/weather/marine-weather.yaml +806 -0
  92. package/dist/specs/weather/time-series-weather.yaml +821 -0
  93. package/dist/specs/weather/weather-forecast.yaml +935 -0
  94. package/dist/specs/whois/asn-lookup.yaml +618 -0
  95. package/dist/specs/whois/bulk-whois-lookup.yaml +827 -0
  96. package/dist/specs/whois/domain-whois-history-lookup.yaml +445 -0
  97. package/dist/specs/whois/reverse-whois.yaml +566 -0
  98. package/dist/specs/whois/whois-domain-lookup.yaml +537 -0
  99. package/dist/specs/whois/whois-ip-lookup.yaml +1123 -0
  100. package/dist/specs/zip-code/bulk-zip-code-lookup.yaml +232 -0
  101. package/dist/specs/zip-code/zip-code-api.yaml +216 -0
  102. package/dist/specs/zip-code/zip-code-distance-match.yaml +239 -0
  103. package/dist/specs/zip-code/zip-code-distance.yaml +233 -0
  104. package/dist/specs/zip-code/zip-codes-by-city.yaml +201 -0
  105. package/dist/specs/zip-code/zip-codes-by-region.yaml +200 -0
  106. package/dist/specs/zip-code/zip-codes-radius-search.yaml +262 -0
  107. package/package.json +6 -2
  108. package/specs/pdf/merge-pdf.json +2 -2
@@ -0,0 +1,158 @@
1
+ openapi: 3.1.1
2
+ info:
3
+ title: Subregions API Reference
4
+ version: 1.0.0
5
+ description: Retrieve all subregions within a specified geographical region, or all subregions across every region when none is specified. The region parameter is optional. Returns a flat array of subregion names such as Western Europe, Southern Asia, or Northern America. Invalid region names return a 400 error; a region with no subregions (Polar) returns a 404.
6
+ contact:
7
+ name: APIFreaks Support
8
+ url: https://apifreaks.com/contact
9
+ email: support@apifreaks.com
10
+ servers:
11
+ - url: https://api.apifreaks.com/v1.0
12
+ description: Subregions API Server
13
+ paths:
14
+ /geo/subregions:
15
+ get:
16
+ tags:
17
+ - GeoDB APIs
18
+ summary: Retrieve subregions for a specific geographical region
19
+ description: Returns all subregions within a specified region, or all subregions across every region when the region parameter is omitted.
20
+ operationId: getSubregionsByRegion
21
+ parameters:
22
+ - name: format
23
+ in: query
24
+ required: false
25
+ description: 'Format of the response. Possible values: json, xml.'
26
+ schema:
27
+ type: string
28
+ enum:
29
+ - json
30
+ - xml
31
+ default: json
32
+ - name: region
33
+ in: query
34
+ required: false
35
+ description: Name of the region to retrieve subregions for. Omit to return all subregions across every region.
36
+ schema:
37
+ type: string
38
+ responses:
39
+ '200':
40
+ description: Successful response with list of subregions
41
+ content:
42
+ application/json:
43
+ schema:
44
+ $ref: '#/components/schemas/SubregionsResponse'
45
+ examples:
46
+ typicalSuccess:
47
+ summary: Filtered by region=Europe
48
+ value:
49
+ subregions:
50
+ - Eastern Europe
51
+ - Northern Europe
52
+ - Southern Europe
53
+ - Western Europe
54
+ allRegions:
55
+ summary: region parameter omitted — all 22 subregions across every region
56
+ value:
57
+ subregions:
58
+ - Australia and New Zealand
59
+ - Caribbean
60
+ - Central America
61
+ - Central Asia
62
+ - Eastern Africa
63
+ - Eastern Asia
64
+ - Eastern Europe
65
+ - Melanesia
66
+ - Micronesia
67
+ - Middle Africa
68
+ - Northern Africa
69
+ - Northern America
70
+ - Northern Europe
71
+ - Polynesia
72
+ - South America
73
+ - South-Eastern Asia
74
+ - Southern Africa
75
+ - Southern Asia
76
+ - Southern Europe
77
+ - Western Africa
78
+ - Western Asia
79
+ - Western Europe
80
+ '400':
81
+ description: Bad Request — Region name is not a recognized region
82
+ content:
83
+ application/json:
84
+ schema:
85
+ $ref: '#/components/schemas/ErrorResponse'
86
+ examples:
87
+ InvalidRegionName:
88
+ summary: Invalid region name
89
+ value:
90
+ timestamp: '2026-07-24T11:00:12.748Z'
91
+ path: /v1/subregions
92
+ status: 400
93
+ error: Invalid Region Name provided
94
+ message: Please provide a valid region name.
95
+ '404':
96
+ description: Not Found — Region is valid but has no subregions (e.g. Polar)
97
+ content:
98
+ application/json:
99
+ schema:
100
+ $ref: '#/components/schemas/ErrorResponse'
101
+ examples:
102
+ NoSubregions:
103
+ summary: No subregions for this region
104
+ value:
105
+ timestamp: '2026-07-24T11:00:06.003Z'
106
+ path: /v1/subregions
107
+ status: 404
108
+ error: No subregions exist
109
+ message: This region does not have any subregions.
110
+ components:
111
+ securitySchemes:
112
+ ApiKeyAuthHeader:
113
+ type: apiKey
114
+ in: header
115
+ name: X-apiKey
116
+ description: Pass your API key via the X-apiKey request header.
117
+ ApiKeyAuthQuery:
118
+ type: apiKey
119
+ in: query
120
+ name: apiKey
121
+ description: Pass your API key via the apiKey query parameter.
122
+ schemas:
123
+ SubregionsResponse:
124
+ type: object
125
+ description: Response containing subregion names for the requested region, or all subregions across every region when unfiltered.
126
+ required:
127
+ - subregions
128
+ properties:
129
+ subregions:
130
+ type: array
131
+ description: An array of subregion names within the specified region.
132
+ items:
133
+ type: string
134
+ ErrorResponse:
135
+ type: object
136
+ description: Standard error envelope returned by the API on failed requests.
137
+ required:
138
+ - message
139
+ properties:
140
+ error:
141
+ type: string
142
+ description: Short error category or exception type.
143
+ message:
144
+ type: string
145
+ description: Human-readable error message describing the failure.
146
+ path:
147
+ type: string
148
+ description: API endpoint path that produced the error.
149
+ status:
150
+ type: integer
151
+ description: HTTP status code returned with the error.
152
+ timestamp:
153
+ type: string
154
+ format: date-time
155
+ description: Timestamp when the error occurred (ISO 8601).
156
+ security:
157
+ - ApiKeyAuthHeader: []
158
+ - ApiKeyAuthQuery: []