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.
- Endpoint
GET /v1/me- Returns
- Same compact lookup object as
/v1/ip/{address}
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)