---
title: Lookup
summary: Lookup returns the geographic data associated with a particular IP address.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/geo/fn.Lookup/
---

**Kind:** Function  
**Module:** [geo](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/geo/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/geo/geodata.go#L45

```go
func Lookup(ip net.IP) (*Geo, error)
```

Lookup returns the geographic data associated with a particular IP address.

**Parameters**

- `ip`: `net.IP`

**Returns**

`(*Geo, error)`
