## Get IP address details `client.Radar.Entities.Get(ctx, query) (*EntityGetResponse, error)` **get** `/radar/entities/ip` Retrieves IP address information. ### Parameters - `query EntityGetParams` - `IP param.Field[string]` IP address. - `Format param.Field[EntityGetParamsFormat]` Format in which results will be returned. - `const EntityGetParamsFormatJson EntityGetParamsFormat = "JSON"` - `const EntityGetParamsFormatCsv EntityGetParamsFormat = "CSV"` ### Returns - `type EntityGetResponse struct{…}` - `IP EntityGetResponseIP` - `ASN string` - `ASNLocation string` - `ASNName string` - `ASNOrgName string` - `IP string` - `IPVersion string` - `Location string` - `LocationName string` ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/radar" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) entity, err := client.Radar.Entities.Get(context.TODO(), radar.EntityGetParams{ IP: cloudflare.F("8.8.8.8"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", entity.IP) } ``` #### Response ```json { "result": { "ip": { "asn": "15169", "asnLocation": "US", "asnName": "GOOGLE", "asnOrgName": "Google LLC", "ip": "8.8.8.8", "ipVersion": "IPv4", "location": "GB", "locationName": "United Kingdom" } }, "success": true } ```