# Make an API Call

Performs an arbitrary authorized API call

## Required inputs

### URL

Enter a path relative to <https://api.foxentry.com/>, e.g., /location/validate, to access the chosen API endpoint.

| Data | Explanation |
| --- | --- |
| /location/get | Access a wide range of public information about specific location. |
| /location/validate | Validate address data and automatically correct most typos. |
| /location/localize | Find out which addresses and premises are nearby within a GPS radius. |
| /company/get | Access a wide range of company public information. |
| /company/validate | Validate company data and automatically correct most typos. |
| /validate/phone | Check the validity and existence of phone numbers. |
| /validate/email | Correct, validate, and retrieve information about emails, even if they contain typos. |
| /validate/name | Validate names and surnames and automatically correct most typos. |

### Method

| Data | Content |
| --- | --- |
| Post | This method is used for sending data and is primarily intended for operations that modify or create data on the server. |

### Headers

| Headers 1 | Content |
| --- | --- |
| Key | Is prefilled for you to work for API call with correct type: Content-Type |
| Value | Is prefilled for you to work for API call with proper vylue: application/json |

### Body

The best way to explain how to construct a request body is by showing you step-by-step. Here is a tutorial for you!

 [Foxentry Make com tutorial Request body](https://www.youtube.com/watch?v=wXQg3KPcmkA) 

### Example of a request body

Here is the request body for the API call to list the nearest addresses. It represents our Make.com module "List Addresses Around GPS" or our "Localization" endpoint.

```text
{
  "request": {
    "query": {
      "lat": 50.0919999,
      "lon": 14.4527403
    },
    "options": {
      "dataScope": "basic",
      "dataSource": [
        "CZ",
        "SK",
        "PL"
      ],
      "resultsLimit": 10,
      "zipFormat": false,
      "cityFormat": "basic",
      "radius": 50,
      "acceptNearest": false
    }
  }
}
```
