Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

IPinfo general API

General API.

IPinfo general API is one of 17 APIs that IPinfo publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include general. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, rate-limit docs, and 2 JSON Schemas.

This API exposes 6 operations across 6 paths, and defines 16 schemas. It is described by OpenAPI 3.0.0, at version 1.0.0.

Requests are made against 3 base URLs: https://ipinfo.io/, https://v6.ipinfo.io/, https://api.ipinfo.io/.

6 operations 6 paths 16 schemas 3 GET3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
1.0.0
Base URL
https://api.ipinfo.io
Authentication
HTTP Basic, HTTP Bearer, API Key
Contact
Resource Areas
1

Authentication & Security 3

IPinfo general API declares 3 security schemes for authenticating requests. It accepts HTTP basic authentication (BasicAuth). It accepts HTTP bearer tokens (BearerAuth). An API key is passed in the query as token (ApiKeyAuth).

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 3 GET, 3 POST. Each is listed below with its method, path, parameters, and response codes.

general 6

General API.

GET
/
IPinfo Returns IP Information About the Current IP
getCurrentInformation → 200403429500
GET
/{ip}
IPinfo Returns Information About the Provided IP
getInformationByIp 1 param → 200404403429400500
GET
/me
IPinfo Returns API Service Request Limit by Access Token
getMe → 200400500
POST
/batch
IPinfo Bulk IPinfo API Enrichment
batch body → 200
POST
/tools/summarize-ips
IPinfo Summarize IP Addresses
summarize 1 param body → 200422429
POST
/tools/map
IPinfo Highlight IP Addresses on a Map
map 1 param body → 200429

Schemas 16

The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are FullResponse (15 properties), AsnResponse (14 properties), Prefix (7 properties), Prefix6 (7 properties). Each schema is shown below with its type and property counts.

FullResponse
object
15 properties 1 required
PrivacyResponse
object
6 properties 6 required
Prefix
object
7 properties 4 required
AsnResponse
object
14 properties 4 required
Error429
object
2 properties 2 required
CarrierResponse
object
3 properties 3 required
Error400
object
2 properties 2 required
DomainsResponse
object
4 properties 1 required
MeResponse
object
3 properties 3 required
Error500
string
Error400Me
object
2 properties 1 required
Prefix6
object
7 properties 4 required
Error404
object
2 properties 2 required
Error403
object
2 properties 2 required
Error422
object
2 properties 2 required
CompanyResponse
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ipinfo-general-api-openapi.yml Raw ↑

Other APIs IPinfo publishes across the network.

IPinfo abuse API
IPinfo asn API
IPinfo carrier API
IPinfo company API
IPinfo domains API
IPinfo ipinfo core API
IPinfo ipinfo lite API
IPinfo ipinfo max API
IPinfo ipinfo plus API
IPinfo places API
IPinfo privacy detection API
IPinfo privacy detection extended API