Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Proxmint Geolocation API
version: 1.3.0
summary: Free proxy list, IP geolocation and prices with no key; read-only account data and proxy lines with one.
description: 'Two kinds of endpoint. The free proxy list and IP geolocation are open and key-free: rate limited per IP and sent with `access-control-allow-origin: *`, so they work from a browser as well as a server. The proxy list is published under CC BY 4.0 — attribution is the only condition.
The customer API under `/api/v1` is read-only and needs an API key, created under Settings in the dashboard and sent as `Authorization: Bearer `. It returns proxy credentials, so it sends no CORS headers: call it from a server, never from browser code.'
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
contact:
name: Proxmint support
url: https://proxmint.com/contact
servers:
- url: https://proxmint.com
tags:
- name: Geolocation
paths:
/api/geoip:
get:
operationId: lookupIp
summary: Geolocate an IP address
description: 'Resolved against a local MaxMind GeoLite2 database — the lookup makes no outbound connection. Private and reserved ranges are rejected: they carry no meaningful public location.'
tags:
- Geolocation
parameters:
- name: ip
in: query
description: Any public IPv4 or IPv6 address. Omit to look up the caller's own.
example: 8.8.8.8
schema:
type: string
responses:
'200':
description: What is known about the address. Fields are null where the database has no value.
content:
application/json:
schema:
$ref: '#/components/schemas/GeoIp'
'400':
description: Not a public IP address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No data for this address.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: The geolocation database is not loaded on this deployment.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
GeoIp:
type: object
properties:
ip:
type: string
countryCode:
type:
- string
- 'null'
description: ISO 3166-1 alpha-2, lowercase.
countryName:
type:
- string
- 'null'
city:
type:
- string
- 'null'
region:
type:
- string
- 'null'
description: First subdivision — English name, else ISO code.
lat:
type:
- number
- 'null'
lon:
type:
- number
- 'null'
tz:
type:
- string
- 'null'
description: IANA timezone, e.g. America/New_York.
accuracyRadiusKm:
type:
- integer
- 'null'
description: Radius around lat/lon, in km.
asn:
type:
- integer
- 'null'
asnOrg:
type:
- string
- 'null'
required:
- ip
Error:
type: object
properties:
error:
type: string
required:
- error
securitySchemes:
apiKey:
type: http
scheme: bearer
description: An API key (`pmk_…`) from Settings in the dashboard. Read-only.