---
title: Dati
project: Total API
version: 2026
section: reference
language: it
license: 
url: https://totaljs.es/docs/it/total-api/2026/reference/data/
updated: 2026-11-20T06:51:47.968Z
---

# Dati

> Trova il luogo di indirizzi IP, tassi di cambio, partite IVA e meteo.

Ogni servizio è una richiesta `POST` con il tuo token. Leggi [Chiamare Total API da Total.js](../../guides/call-from-totaljs/) e [Chiamare Total API via HTTP](../../guides/call-over-http/).

## API

### POST https://api.totaljs.com/geoip/

Type: `rest`

Trova il luogo di un indirizzo IP.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | yes |  | L'indirizzo IP. |

Returns: `Object` Paese, regione, città, coordinate, provider e fuso orario dell'indirizzo.

Example: Total.js
```js
var place = await API('TAPI', 'geoip', '78.98.116.204').promise();
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/geoip/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN" \
	-d '{ "value": "78.98.116.204" }'
```

Example: Risposta
```json
{
	"ip": "78.98.116.204",
	"isp": "Slovak Telekom, a.s.",
	"country": "Slovakia",
	"country_code": "SK",
	"region": "Banska Bystrica",
	"region_code": "BC",
	"city": "Banská Bystrica",
	"zip": "974 01",
	"continent": "Europe",
	"continent_code": "EU",
	"lat": 48.804,
	"lng": 19.1363,
	"timezone": "Europe/Bratislava"
}
```

### POST https://api.totaljs.com/exchangerates/

Type: `rest`

Legge i tassi di cambio di una valuta in un giorno.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `currency` | `String` | no | `EUR` | La valuta di base. |
| `date` | `String` | no | `today` | Il giorno, per esempio `2026-11-19`. |

Returns: `Object` Un oggetto con un tasso per ogni valuta.

La risposta contiene più valute di quelle che mostra questo esempio.

Example: Total.js
```js
var rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();
console.log(rates.USD);
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/exchangerates/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN" \
	-d '{ "currency": "EUR", "date": "2026-11-19" }'
```

Example: Risposta
```json
{
	"USD": 1.2109,
	"GBP": 0.9,
	"CHF": 1.0764,
	"CZK": 26.239,
	"PLN": 4.4246,
	"JPY": 126.05
}
```

### POST https://api.totaljs.com/checkvat/

Type: `rest`

Verifica se un'azienda è soggetta a IVA nell'Unione Europea.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | yes |  | La partita IVA, per esempio `SK2120417167`. |

Returns: `Object` Se l'azienda è soggetta a IVA, l'aliquota IVA del suo paese, il suo nome e il suo indirizzo.

Funziona solo con partite IVA dell'Unione Europea. `is` indica se l'azienda è soggetta a IVA, e `vat` è l'aliquota IVA del suo paese.

Example: Total.js
```js
var company = await API('TAPI', 'checkvat', 'SK2120417167').promise();
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/checkvat/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN" \
	-d '{ "value": "SK2120417167" }'
```

Example: Risposta
```json
{
	"is": true,
	"vat": 20,
	"name": "Total Avengers s. r. o.",
	"address": "Viestova 6784/28\n97401 Banská Bystrica\nSlovensko"
}
```

### POST https://api.totaljs.com/weather/

Type: `rest`

Legge il meteo attuale di un luogo.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | yes |  | Il luogo, per esempio `Bratislava`. |

Returns: `Object` Temperatura, vento, umidità, pressione, nuvole, indice UV e cielo.

Example: Total.js
```js
var weather = await API('TAPI', 'weather', 'Bratislava').promise();
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/weather/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN" \
	-d '{ "value": "Bratislava" }'
```

Example: Risposta
```json
{
	"name": "Bratislava",
	"temperature": 22,
	"wind": 20.2,
	"humidity": 65,
	"pressure": 1018,
	"cloud": 25,
	"uv": 6,
	"sky": "Partly cloudy"
}
```
