---
title: Total.js API
project: Total.js Flow
version: 11.1
section: components
language: it
license: MIT
url: https://totaljs.es/docs/it/flow/11-1/components/totaljs-api/
updated: 2026-11-20T06:50:57.962Z
---

# Total.js API

> Componenti che chiamano i servizi di Total.js API con il tuo token.

Componenti che chiamano i servizi di Total.js API con il tuo token. Questa pagina contiene i gruppi del catalogo **Total.js API Services**, **Total.js API**.

Ogni voce elenca gli ingressi e le uscite del componente, le sue impostazioni principali e il testo del suo readme. Per aggiungere un componente a un FlowStream, consulta [Scaricare i componenti](/flow/11-1/guides/download-components/).

## API

### tapicaptchaapi.html · version 1

Type: `component`

Genera un captcha come immagine JPEG con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `width` | `Number` | no | `200` | Larghezza. |
| `height` | `Number` | no | `80` | Altezza. |
| `dark` | `Boolean` | no | `false` | Modalità scura. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Il generatore di immagini captcha crea una semplice immagine JPEG. Usa la [Total.js Weather API](https://docs.totaljs.com/totalapi/6c221003eo51c/#Ii6INR1cR61f).

__Dati in ingresso:__

```js
// {String} Captcha text
'123456'
```

__Dati in uscita__:

```js
// Returns DataURI
'data:image/jpeg;base64,/9j/4AAQSkZ...''

```

### tapichatgptapi.html · version 1

Type: `component`

Fa domande a ChatGPT tramite Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `output` | `String` | no | `text` | Uscita. Una tra: `text` (Text), `image` (Image). |
| `size` | `String` | no | `small` | Dimensione. Una tra: `small` (Small), `medium` (Medium), `large` (Large). |
| `response` | `String` | no | `buffer` | Tipo di risposta. Uno tra: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Con questo componente puoi fare domande a ChatGPT / OpenAPI. Usa la [Total.js ChatGPT API](https://docs.totaljs.com/totalapi/6c221003eo51c/#128fm001kc51d).

__Dati in ingresso:__

```js
// {String} a question for ChatGPT
'What is Total.js Platform'
```

__Dati in uscita__:

Se `output` è impostato su Text:

```js
{
    text: 'Total.js Platform is a web development platform that provides a comprehensive set of tools and modules for building modern, scalable, and high-performance web applications. It is based on the Node.js runtime and offers a seamless development experience with a powerful, intuitive, and easy-to-use framework. Total.js Platform includes features such as database integration, real-time communication, server-side rendering, RESTful API support, and more. It also supports various front-end technologies and integrates seamlessly with popular third-party libraries and services, making it a great choice for building full-stack web applications.'
}
```

Se `output` è impostato su Image:
Restituisce i dati in base al Response type della configurazione del componente. Può essere `Buffer`, `Base64` o `DataURI`.

### tapicheckapi.html · version 1

Type: `component`

Restituisce lo stato attuale del tuo token di Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Restituisce lo stato attuale del tuo token. Usa la [Total.js Check API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d397001td51c).

__Dati in uscita__:

```js
{
    credits: 34.49
}
```

### tapicheckvatapi.html · version 1

Type: `component`

Controlla se un'azienda dell'Unione Europea è soggetta a IVA, con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Determina se un'azienda è soggetta a IVA o no. Funziona solo nell'Unione Europea. Usa la [Total.js Check VAT API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d385001lt51c).

__Dati in ingresso:__

```js
// {String} VAT ID
'SK2120417167'
```

__Dati in uscita__:

```js
{
    is: true, // Is VAT Payer?
    vat: 20,  // Country VAT
    name: 'Total Avengers s. r. o.',
    address: 'Viestova 6784/28\n97401 Banská Bystrica\nSlovensko'
}
```

### tapiexchangeratesapi.html · version 1

Type: `component`

Legge i tassi di cambio con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `currency` | `String` | no | `EUR` | Valuta. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Legge i tassi di cambio. Usa la [Total.js Exchangerates API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6e2f4001dt51c).

__Dati in ingresso__:

```js
// {String} Date, optional input default is current date
"2020-12-12"
```

__Dati in uscita__:

```js
{
    USD: 1.2109,
    JPY: 126.05,
    BGN: 1.9558,
    CZK: 26.239,
    DKK: 7.4429,
    GBP: 0.9,
    HUF: 356.64,
    PLN: 4.4246,
    RON: 4.8685,
    SEK: 10.2745,
    CHF: 1.0764,
    ISK: 153.5,
    NOK: 10.5763,
    HRK: 7.549,
    RUB: 89.167,
    TRY: 9.4762,
    AUD: 1.6185,
    BRL: 6.1993,
    CAD: 1.5472,
    CNY: 7.9167,
    HKD: 9.3866,
    IDR: 17078,
    ILS: 3.9406,
    INR: 89.212,
    KRW: 1314.27,
    MXN: 23.9187,
    MYR: 4.9196,
    NZD: 1.7103,
    PHP: 58.298,
    SGD: 1.6174,
    THB: 36.388,
    ZAR: 18.0756
}
```

### tapiconvertapi.html · version 1

Type: `component`

Converte un file in un altro tipo di file con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `to` | `String` | no | `pdf` | Converti in. Uno tra: `pdf` (PDF), `jpg` (JPG), `png` (PNG). |
| `output` | `String` | no | `buffer` | Tipo di risposta. Uno tra: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Converte un file in un altro tipo di file. Usa la [Total.js Convert API](https://docs.totaljs.com/totalapi/6c221003eo51c/#13ff8001db51d).

__Dati in ingresso:__

```js
// {String} dataURI of a file
"data:application/pdf;base64,JVBERi0xLjcN..."
```

__Dati in uscita__:
Restituisce i dati in base al `Response type` della configurazione del componente. Può essere `Buffer`, `Base64` o `DataURI`.

### tapigeoipapi.html · version 1

Type: `component`

Legge la posizione di un indirizzo IP con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Legge le informazioni geografiche di un indirizzo IP. Usa la [Total.js GEO IP API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d381001hc51c).

__Dati in ingresso:__

```js
// {String} IP address
"78.98.116.204"
```

__Dati in uscita__:

```js
{
	ip: '78.98.95.176',
	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'
}
```

### tapiinvoiceparserapi.html · version 1

Type: `component`

Legge i dati di una fattura da un file PDF, JPG o PNG con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Estrae i metadati della fattura da un file PDF/JPG/PNG. Usa la [Total.js Invoiceparser API](https://docs.totaljs.com/totalapi/6c221003eo51c/#130w3001db51d).

__Dati in ingresso:__

```js
// {String} dataURI of a file
"data": "data:application/pdf;base64,JVBERi0xLjcN..."
```

__Dati in uscita__:

```js
{
    supplier: {
        address: 'Nádražní 44/86 15000 Praha 5',
        name: 'DRONPRO',
        vatid: 'CZ04587332'
    },
    customer: {
        name: 'TOTAL AVENGERS S.R.O.',
        address: 'Viestova 6784/28 97401 Banská Bystrica, Slovakia',
        vatid: 'SK2120417167'
    },
    date: '2023-07-17',
    number: '23ES04414',
    amount: 3445.46,
    total: 3445.46,
    currency: 'CZK',
    language: null,
    tax: 0
}
```

### tlogger.html · version 2

Type: `component`

Registra i messaggi in arrivo nel Total.js Cloud Logger.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token di Total API. |
| `type` | `String` | no | `info` | Tipo. Uno tra: `info` (Info), `error` (Error), `warning` (Warning), `success` (Success). |
| `message` | `String` | no |  | Messaggio. |
| `reference` | `String` | no |  | Riferimento. |
| `url` | `String` | no |  | Indirizzo URL. |
| `app` | `String` | no |  | Nome dell'app. |

**Ingressi:** `input` (Input).  
**Uscite:** nessuna.

Il componente registra i messaggi in arrivo nel Total.js Cloud Logger.

### tapiocrapi.html · version 1

Type: `component`

Legge il testo di file JPG, PNG o PDF con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `language` | `String` | no | `eng` | Lingua. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Lettore OCR per file `JPG`, `PNG` o `PDF`. Usa la [Total.js OCR API](https://docs.totaljs.com/totalapi/6c221003eo51c/#If83x81cy61f).

__Dati in ingresso:__

```js
// {String} dataURI of a file
"data:image/png;base64,iVBORw0KGgo....."
```

__Dati in uscita:__

```js
{
	text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...'
}
```

### tapiplatenumber.html · version 1

Type: `component`

Legge il numero di targa di un veicolo da un'immagine JPG o PNG con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `code` | `String` | no | `eu` | Codice del paese. Uno tra: `eu` (EU), `us` (US). |
| `first` | `Boolean` | no | `false` | Restituisci solo il primo valore. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Estrae il numero di targa da un'immagine JPG/PNG. Usa la [Total.js Platenumber API](https://docs.totaljs.com/totalapi/6c221003eo51c/#13ffb001db51d).

__Dati in ingresso:__

```js
// {String} dataURI of an image
'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEB....'
```

__Dati in uscita:__

```js
[
  {
    "value": "H786P0J",
    "confidence": 89.8356
  },
  {
    "value": "H786POJ",
    "confidence": 87.6114
  },
  {
    "value": "HN786P0J",
    "confidence": 85.2152
  }
]
```

### tapiprintapi.html · version 1

Type: `component`

Stampa HTML o un indirizzo URL in un file PDF, JPG, PNG o DOCX con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |
| `type` | `String` | no | `pdf` | Tipo. Uno tra: `pdf` (PDF), `jpg` (JPG), `png` (PNG), `docx` (DOCX). |
| `page` | `String` | no | `A4` | Pagina. |
| `width` | `Number` | no | `0` | Larghezza. |
| `height` | `Number` | no | `0` | Altezza. |
| `dpi` | `Number` | no | `96` | DPI. |
| `top` | `Number` | no | `0` | Margine superiore. |
| `right` | `Number` | no | `0` | Margine destro. |
| `bottom` | `Number` | no | `0` | Margine inferiore. |
| `left` | `Number` | no | `0` | Margine sinistro. |
| `viewport` | `String` | no |  | Viewport. Uno tra: `xs` (XS), `sm` (SM), `md` (MD), `lg` (LG). |
| `quality` | `Number` | no | `80` | Qualità. |
| `orientation` | `String` | no | `portrait` | Orientamento. Uno tra: `portrait` (Portrait), `landscape` (Landscape). |
| `grayscale` | `Boolean` | no | `false` | Scala di grigi. |
| `lowquality` | `Boolean` | no | `false` | Bassa qualità. |
| `zoom` | `Number` | no | `100` | Zoom. |
| `output` | `String` | no | `buffer` | Tipo di risposta. Uno tra: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Stampa HTML o un indirizzo URL in un file PDF, JPG, PNG o DOCX. Usa la [Total.js Print API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6c225001ga51c).

__Dati in ingresso:__

```js
// {String} HTML content or URL address
'<h1>HTML content</h1>'
```

__Dati in uscita:__
Restituisce i dati in base al `Response type` della configurazione del componente. Può essere `Buffer`, `Base64` o `DataURI`.

### sms.html · version 1

Type: `component`

Invia un SMS.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token di Total API. |
| `to` | `String` | no |  | A. |
| `from` | `String` | no |  | Da. |
| `body` | `String` | no |  | Messaggio. |
| `isdata` | `Boolean` | no | `false` | Invia solo i dati del messaggio in arrivo. |
| `path` | `String` | no |  | Percorso da cui leggere il messaggio. |

**Ingressi:** `input` (Input).  
**Uscite:** nessuna.

Il componente invia un messaggio SMS.

### tapismsapi.html · version 1

Type: `component`

Invia un SMS con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `from` | `String` | no |  | Da. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Con questo componente puoi inviare SMS. Usa la [Total.js SMS API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d220001ni51c).

__Dati in ingresso:__

```js
{
	to: "+421903163302",
	body: "Your message ..."
}
```

__Dati in uscita__:

```js
{ success: true }
```

### tapiweatherapi.html · version 1

Type: `component`

Legge il meteo attuale di un indirizzo con Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Token API. |
| `path` | `String` | no |  | Percorso da cui leggere i dati in ingresso. |

**Ingressi:** `input` (Input).  
**Uscite:** `output` (Output), `error` (Error).

Con questo componente puoi ottenere il meteo attuale di un indirizzo. Usa la [Total.js Weather API](https://docs.totaljs.com/totalapi/6c221003eo51c/#128f7001kc51d).

__Dati in ingresso:__

```js
// {String} address without diacritics
'Banska Bystrica, Slovakia'
```

__Dati in uscita__:

```js
{
	name: 'Bratislava',
	temperature: 22,
	wind: 20.2,
	humidity: 65,
	pressure: 1018,
	cloud: 25,
	uv: 6,
	sky: 'Partly cloudy'
}
```
