Skip to content

Field Filtering

Use the get query parameter to limit the response to specific fields. This helps you reduce payload size and return only the data your application actually needs.

Field filtering is currently supported on the GET /ip/{ip}?apiKey=sk.xxx endpoint.


Endpoint

Method: GET
URL:

GET https://api.ipwho.org/ip/{ip}?apiKey=sk.xxx

Query Parameter

NameTypeRequiredDescription
getstringNoComma-separated list of fields to include in data.
  • Only the listed fields (and their nested objects) are included.

Example: Single IP Filter by country, city, and currency

Request

GET https://api.ipwho.org/ip/76.102.11.203?apiKey=sk.xxxget=country,city,currency

Response

{
"success": true,
"data": {
"country": "United States",
"city": "Mountain View",
"currency": {
"code": "USD",
"symbol": "$",
"name": "US Dollar",
"name_plural": "US dollars"
}
}
}