My IP

API Documentation

Overview

This document outlines the API endpoints, request parameters, and response structure for retrieving geolocation information based on IP addresses or domains.

Endpoints

Request Parameters

Response

Status Code: 200

Content Type: application/json (default) or text/javascript (if callback parameter is provided)

Success Response

The API returns geolocation information for the specified IP or domain, including the following fields (all optional unless specified):

Examples

Example 1: General Query

Request: GET /api?lang=en

Response: Returns geolocation information in JSON format based on the provided parameters.

Example 2: Specific IP Query

Request: GET /api/8.8.8.8?lang=en

Response: Returns geolocation information for the IP address 8.8.8.8 in JSON format.