Current connection
Return the address seen by the API and its BGP, allocation, and geofeed record.
Use this for "show my IP" flows. When the API is behind Cloudflare it validates the proxy path before trusting Cloudflare client-IP headers; otherwise it falls back to the raw peer address.
GET/v1/me
Parameters
| Parameter | In | Required | Description |
|---|---|---|---|
details | Query | No | Return raw matched allocation, route, and geofeed candidates. |
Scroll for all columns
curl -sS "https://bgp-api.mehrnet.com/v1/me"const response = await fetch("https://bgp-api.mehrnet.com/v1/me");
const data = await response.json();$json = file_get_contents("https://bgp-api.mehrnet.com/v1/me");
$data = json_decode($json, true);from urllib.request import urlopen
import json
data = json.load(urlopen("https://bgp-api.mehrnet.com/v1/me"))resp, err := http.Get("https://bgp-api.mehrnet.com/v1/me")
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
var data map[string]any
json.NewDecoder(resp.Body).Decode(&data){
"meta": {"dataset": {"release_tag": "db-2026.07.27-0913-11"}},
"ip": "1.1.1.1",
"version": 4,
"registry": "apnic",
"network": {"cidr": "1.1.1.0/24", "asn": "AS13335", "as_number": 13335},
"location": {"country_code": "AU", "region": null, "city": null},
"sources": {"allocation": true, "route": true, "geofeed": false}
}