Skip to content

Commit 9c2c1b9

Browse files
committed
Updated README with new endpoint
1 parent 940c781 commit 9c2c1b9

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,48 @@ X-Geoip-Continent: EU
142142
X-Geoip-Timezone: Europe/Berlin
143143
```
144144

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+
145187
## 📦 Building the project
146188

147189
The project is built through multi stage Docker builds. You need

0 commit comments

Comments
 (0)