{"openapi":"3.2.0","info":{"title":"GeoIP API","description":"Get the user's IP address and all geolocation information in 8 languages","version":"1.0.0"},"servers":[{"url":"https://geoip.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"x-agent-commerce":{"catalog_url":"https://geoip.jojapi.net/_jojapi/agent/plans","discovery_url":"https://geoip.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/geoip","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/":{"get":{"operationId":"get","summary":"Get IP and all location data","description":"Get user IP and all geolocation info","responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"city":{"geoname_id":4744870,"names":{"de":"Ashburn","en":"Ashburn","es":"Ashburn","fr":"Ashburn","ja":"アッシュバーン","pt-BR":"Ashburn","ru":"Ашберн","zh-CN":"阿什本"}},"continent":{"code":"NA","geoname_id":6255149,"names":{"de":"Nordamerika","en":"North America","es":"Norteamérica","fr":"Amérique du Nord","ja":"北アメリカ","pt-BR":"América do Norte","ru":"Северная Америка","zh-CN":"北美洲"}},"country":{"geoname_id":6252001,"iso_code":"US","names":{"de":"USA","en":"United States","es":"Estados Unidos","fr":"États-Unis","ja":"アメリカ","pt-BR":"EUA","ru":"США","zh-CN":"美国"}},"location":{"accuracy_radius":20,"latitude":39.0469,"longitude":-77.4903,"metro_code":511,"time_zone":"America/New_York"},"postal":{"code":"20149"},"registered_country":{"geoname_id":2921044,"is_in_european_union":true,"iso_code":"DE","names":{"de":"Deutschland","en":"Germany","es":"Alemania","fr":"Allemagne","ja":"ドイツ連邦共和国","pt-BR":"Alemanha","ru":"ФРГ","zh-CN":"德国"}},"subdivisions":[{"geoname_id":6254928,"iso_code":"VA","names":{"de":"Virginia","en":"Virginia","es":"Virginia","fr":"Virginie","ja":"バージニア州","pt-BR":"Virgínia","ru":"Вирджиния","zh-CN":"弗吉尼亚州"}}],"traits":{"ip_address":"5.161.124.18","prefix_len":18}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"}},"post":{"operationId":"post","summary":"Get location by IP","description":"Returns all location data based on the IP you provided","responses":{"200":{"description":"Successful response","content":{"application/json":{"example":{"city":{"geoname_id":4358821,"names":{"de":"Hyattsville","en":"Hyattsville","es":"Hyattsville","fr":"Hyattsville","ja":"ハイアッツビル","pt-BR":"Hyattsville","ru":"Хайатсвилл"}},"continent":{"code":"NA","geoname_id":6255149,"names":{"de":"Nordamerika","en":"North America","es":"Norteamérica","fr":"Amérique du Nord","ja":"北アメリカ","pt-BR":"América do Norte","ru":"Северная Америка","zh-CN":"北美洲"}},"country":{"geoname_id":6252001,"iso_code":"US","names":{"de":"USA","en":"United States","es":"Estados Unidos","fr":"États-Unis","ja":"アメリカ","pt-BR":"EUA","ru":"США","zh-CN":"美国"}},"location":{"accuracy_radius":5,"latitude":38.9635,"longitude":-76.9672,"metro_code":511,"time_zone":"America/New_York"},"postal":{"code":"20782"},"registered_country":{"geoname_id":6252001,"iso_code":"US","names":{"de":"USA","en":"United States","es":"Estados Unidos","fr":"États-Unis","ja":"アメリカ","pt-BR":"EUA","ru":"США","zh-CN":"美国"}},"subdivisions":[{"geoname_id":4361885,"iso_code":"MD","names":{"de":"Maryland","en":"Maryland","es":"Maryland","fr":"Maryland","ja":"メリーランド州","pt-BR":"Maryland","ru":"Мэриленд","zh-CN":"马里兰州"}}],"traits":{"ip_address":"71.191.223.236","prefix_len":22}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"ip":{"type":"string","example":"71.191.223.236"}},"required":["ip"]}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}