File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,48 @@ X-Geoip-Continent: EU
142
142
X-Geoip-Timezone: Europe/Berlin
143
143
```
144
144
145
+ ### Querying multiple IPs via POST
146
+
147
+ ``` bash
148
+ curl --location ' http://localhost:8080/' \
149
+ --header ' Content-Type: application/json' \
150
+ --data ' [
151
+ "8.8.8.8",
152
+ "8.8.4.4"
153
+ ]'
154
+
155
+ {
156
+ " 8.8.4.4" : {
157
+ " country" :" US" ,
158
+ " latitude" :" 37.751" ,
159
+ " longitude" :" -97.822" ,
160
+ " continent" :" NA" ,
161
+ " timezone" :" America/Chicago" ,
162
+ " accuracyRadius" :1000,
163
+ " asn" :15169,
164
+ " asnOrganization" :" GOOGLE" ,
165
+ " asnNetwork" :" 8.8.4.0/24"
166
+ },
167
+ " 8.8.8.8" : {
168
+ " country" :" US" ,
169
+ " latitude" :" 37.751" ,
170
+ " longitude" :" -97.822" ,
171
+ " continent" :" NA" ,
172
+ " timezone" :" America/Chicago" ,
173
+ " accuracyRadius" :1000,
174
+ " asn" :15169,
175
+ " asnOrganization" :" GOOGLE" ,
176
+ " asnNetwork" :" 8.8.8.0/24"
177
+ }
178
+ }
179
+ ```
180
+
181
+ Takes up to 100 addresses at once.
182
+
183
+ Result will be a JSON object indexed by requested IP address.
184
+
185
+ If a requested address can not be resolved, the entry will be missing in the response.
186
+
145
187
## 📦 Building the project
146
188
147
189
The project is built through multi stage Docker builds. You need
You can’t perform that action at this time.
0 commit comments