Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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: IP-API.io Usage API
version: '2026-11-29'
description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-29: 7 operation(s) read from 8 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; IP-API.io has published no machine-readable contract that the pipeline could find. Engine: local.'
x-evidence-tiers:
code-example: 9
documentation: -2
pages-with-code: 7
pages-read: 8
x-generated-from: documentation
x-provenance: generated
x-authored-by: API Evangelist
x-generated: '2026-11-29'
x-generator: generate-contract-from-docs.py
x-engine: local
x-sources:
- https://ip-api.io/bot-detection-api
- https://ip-api.io/ip-geolocation-api
- https://ip-api.io/fraud-detection-api
- https://ip-api.io/proxy-detection-api
- https://ip-api.io/email-verification-api
- https://ip-api.io/vpn-detection-api
- https://ip-api.io/openapi.json
- https://ip-api.io/asn-lookup
servers:
- url: https://ip-api.io
tags:
- name: Usage
paths:
/api/v1/usage/stats:
get:
operationId: get_api_v1_usage_stats
tags:
- Usage
summary: Get detailed usage statistics
description: Retrieves hourly aggregated usage statistics for your API key within a specified date range. Returns detailed breakdown of requests, quota consumption, and performance metrics.
x-source: https://ip-api.io/openapi.json
parameters:
- name: api_key
in: query
required: true
schema:
type: string
description: Your API key
- name: start_date
in: query
required: true
schema:
type: string
description: Start date in ISO 8601 format (inclusive)
- name: end_date
in: query
required: true
schema:
type: string
description: End date in ISO 8601 format (exclusive)
- name: api_type
in: query
required: false
schema:
type: string
description: Filter by API type (optional)
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetApiV1UsageStatsResponse'
x-evidence:
kind: documentation
/api/v1/usage/summary:
get:
operationId: get_api_v1_usage_summary
tags:
- Usage
summary: Get usage summary
description: Retrieves aggregated summary statistics for your API key within a specified date range. Returns totals and averages without hourly breakdown, useful for dashboard overview.
x-source: https://ip-api.io/openapi.json
parameters:
- name: api_key
in: query
required: true
schema:
type: string
description: Your API key
- name: start_date
in: query
required: true
schema:
type: string
description: Start date in ISO 8601 format (inclusive)
- name: end_date
in: query
required: true
schema:
type: string
description: End date in ISO 8601 format (exclusive)
- name: api_type
in: query
required: false
schema:
type: string
description: Filter by API type (optional)
responses:
'200':
description: Success (status as documented)
content:
application/json:
schema:
$ref: '#/components/schemas/GetApiV1UsageSummaryResponse'
x-evidence:
kind: documentation
components:
schemas:
GetApiV1UsageSummaryResponse:
type: object
properties:
'200':
type: string
description: Successfully retrieved usage summary
'401':
type: string
description: Invalid or missing API key
'404':
type: string
description: No usage data found for this period
GetApiV1UsageStatsResponse:
type: object
properties:
'200':
type: string
description: Successfully retrieved usage statistics
'401':
type: string
description: Invalid or missing API key
'400':
type: string
description: Invalid date range or parameters