# Country Code Lookup for GPS Coordinates

**Use case:** 

Fetch the two-letter country code using GPS coordinates. Input latitude and longitude to get precise country information.

## Input

```json
{
  "lat": 40.7128,
  "lng": -74.006,
  "apiKey": "***"
}
```

## Output

```json
{
  "country": {
    "label": "Country"
  },
  "country_code_a2": {
    "label": "Code"
  },
  "name": {
    "label": "Location Name"
  },
  "name_type": {
    "label": "Type"
  },
  "code3166": {
    "label": "Region Code"
  },
  "economy_rank": {
    "label": "Economy Rank"
  },
  "income_rank": {
    "label": "Income Rank"
  }
}
```

## About this Actor

This example demonstrates how to use [Geo Location](https://apify.com/jeleo/geo-location) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jeleo/geo-location) to learn more, explore other use cases, and run it yourself.