# Geolocation

### Check IP/Domain Geolocation

The response returns geolocation information of the queried IP address or domain, including status, country, region, city, zip code, latitude, longitude, timezone, ISP, organization, and AS (Autonomous System) details.

#### Request

<mark style="color:green;">**GET**</mark> `https://ismalicious.com/api/check/geolocation?query=146.59.151.156`

Try this endpoint in your [**browser**](https://ismalicious.com/api/check/geolocation?query=146.59.151.156) 🔗

{% tabs %}
{% tab title="Request" %}
Query Parameters

| Parameter    | Type   | Description                            |
| ------------ | ------ | -------------------------------------- |
| `query`      | string | The IP address / Domain name to check. |
| {% endtab %} |        |                                        |

{% tab title="Response" %}

#### Response

```json
{
    "geo": {
        "status": "success",
        "country": "France",
        "countryCode": "FR",
        "region": "HDF",
        "regionName": "Hauts-de-France",
        "city": "Gravelines",
        "zip": "59820",
        "lat": 50.9959,
        "lon": 2.11757,
        "timezone": "Europe/Paris",
        "isp": "OVH SAS",
        "org": "OVH",
        "as": "AS16276 OVH SAS",
        "query": "146.59.151.156"
    }
}
```

{% endtab %}
{% endtabs %}

#### Description

This API endpoint provides detailed geolocation data for a specified IP address or domain name, offering insights into its geographical location and associated network information. By analyzing the response data, users can obtain information about the country, region, city, internet service provider, and more. This feature is instrumental in security assessments, enabling users to identify potential vulnerabilities related to the location and network of the queried entity, thereby enhancing cybersecurity measures.

**Why is this useful?**

* Enhances security by providing critical location-based insights.
* Helps in identifying and mitigating location-specific threats.
* Assists in compliance with regional data protection regulations.
* Optimizes resource allocation by understanding customer geolocation.
* Supports better decision-making with refined geospatial data.

#### More:

#### More:

For performance reasons, you'll find other separate endpoints for each sub-check you want to look after:

{% content-ref url="/pages/UpTmgHhwsRYxAIRhlxIL" %}
[Reputation](/technical-docs/api-reference/check-ressource/reputation.md)
{% endcontent-ref %}

{% content-ref url="/pages/OspdXm1aHTKbrPvF2Jil" %}
[Vulnerabilities](/technical-docs/api-reference/check-ressource/vulnerabilities.md)
{% endcontent-ref %}

{% content-ref url="/pages/iszKMyvDuVEIJd1m21s2" %}
[Whois](/technical-docs/api-reference/check-ressource/whois.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ismalicious.com/technical-docs/api-reference/check-ressource/geolocation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
