---
title: Geo-IP API at the edge
summary: Create an API endpoint for fetching geolocation data for the requesting browser, implemented 100% at the edge. The response should show your current approximate location, but no requests to any origin servers.
url: https://www.fastly.com/documentation/solutions/examples/geo-ip-api-at-the-edge
---

Create an API endpoint for fetching geolocation data for the requesting browser, implemented 100% at the edge. The response should show your current approximate location, but no requests to any origin servers.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/63738ad9)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/1353831a)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/6a27a6f3)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/f1cf981d)

