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

# Total.js API

> Components that call the services of Total.js API with your token.

Components that call the services of Total.js API with your token. This page holds the catalogue groups **Total.js API Services**, **Total.js API**.

Each entry lists the inputs and outputs of the component, its main settings and the text of its readme. To add a component to a FlowStream, see [Download components](/flow/11-1/guides/download-components/).

## API

### tapicaptchaapi.html · version 1

Type: `component`

Generates a captcha as a JPEG image with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `width` | `Number` | no | `200` | Width. |
| `height` | `Number` | no | `80` | Height. |
| `dark` | `Boolean` | no | `false` | Dark mode. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Captcha image generator generates a simple JPEG image. It utilizes the [Total.js Weather API](https://docs.totaljs.com/totalapi/6c221003eo51c/#Ii6INR1cR61f).

__Input data:__

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

__Output data__:

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

```

### tapichatgptapi.html · version 1

Type: `component`

Asks ChatGPT through Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `output` | `String` | no | `text` | Output. One of: `text` (Text), `image` (Image). |
| `size` | `String` | no | `small` | Size. One of: `small` (Small), `medium` (Medium), `large` (Large). |
| `response` | `String` | no | `buffer` | Response type. One of: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

By using this component you can asks ChatGPT / OpenAPI. It utilizes the [Total.js ChatGPT API](https://docs.totaljs.com/totalapi/6c221003eo51c/#128fm001kc51d).

__Input data:__

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

__Output data__:

If `output` is set as 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.'
}
```

If `output` is set as Image:
Returns data according to the component configuration Response type. It can be `Buffer`, `Base64` or `DataURI`.

### tapicheckapi.html · version 1

Type: `component`

Returns the current status of your Total.js API token.

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

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Returns a current status for your token. It utilizes the [Total.js Check API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d397001td51c).

__Output data__:

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

### tapicheckvatapi.html · version 1

Type: `component`

Checks whether a company in the European Union is a VAT payer, with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Determines whether is a company VAT payer or no. Works only in European Union. It utilizes the [Total.js Check VAT API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d385001lt51c).

__Input data:__

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

__Output data__:

```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`

Reads exchange rates with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `currency` | `String` | no | `EUR` | Currency. |
| `path` | `String` | no |  | Path for reading input data. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Reads exchange rates. It utilizes the [Total.js Exchangerates API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6e2f4001dt51c).

__Input data__:

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

__Output data__:

```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`

Converts a file to another file type with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `to` | `String` | no | `pdf` | Convert to. One of: `pdf` (PDF), `jpg` (JPG), `png` (PNG). |
| `output` | `String` | no | `buffer` | Response type. One of: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

It converts file to another type of file. It utilizes the [Total.js Convert API](https://docs.totaljs.com/totalapi/6c221003eo51c/#13ff8001db51d).

__Input data:__

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

__Output data__:
Returns data according to the component configuration `Response type`. It can be `Buffer`, `Base64` or `DataURI`.

### tapigeoipapi.html · version 1

Type: `component`

Reads the location of an IP address with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Reads GEO information from IP address. It utilizes the [Total.js GEO IP API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d381001hc51c).

__Input data:__

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

__Output data__:

```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`

Reads the data of an invoice from a PDF, JPG or PNG file with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

It parses meta data of the invoice from the PDF/JPG/PNG file type. It utilizes the [Total.js Invoiceparser API](https://docs.totaljs.com/totalapi/6c221003eo51c/#130w3001db51d).

__Input data:__

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

__Output data__:

```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`

Logs incoming messages into the Total.js Cloud Logger.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Total API token. |
| `type` | `String` | no | `info` | Type. One of: `info` (Info), `error` (Error), `warning` (Warning), `success` (Success). |
| `message` | `String` | no |  | Message. |
| `reference` | `String` | no |  | Reference. |
| `url` | `String` | no |  | URL address. |
| `app` | `String` | no |  | App name. |

**Inputs:** `input` (Input).  
**Outputs:** none.

The component logs incoming messages into the Total.js Cloud Logger.

### tapiocrapi.html · version 1

Type: `component`

Reads the text of JPG, PNG or PDF files with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `language` | `String` | no | `eng` | Language. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

OCR reader for `JPG`, `PNG` or `PDF` files. It utilizes the [Total.js OCR API](https://docs.totaljs.com/totalapi/6c221003eo51c/#If83x81cy61f).

__Input data:__

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

__Output data:__

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

### tapiplatenumber.html · version 1

Type: `component`

Reads a vehicle plate number from a JPG or PNG picture with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `code` | `String` | no | `eu` | Country code. One of: `eu` (EU), `us` (US). |
| `first` | `Boolean` | no | `false` | Return only the first value. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

It parses a plate number from the JPG/PNG picture. It utilizes the [Total.js Platenumber API](https://docs.totaljs.com/totalapi/6c221003eo51c/#13ffb001db51d).

__Input data:__

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

__Output data:__

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

### tapiprintapi.html · version 1

Type: `component`

Prints HTML or a URL address to a PDF, JPG, PNG or DOCX file with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |
| `type` | `String` | no | `pdf` | Type. One of: `pdf` (PDF), `jpg` (JPG), `png` (PNG), `docx` (DOCX). |
| `page` | `String` | no | `A4` | Page. |
| `width` | `Number` | no | `0` | Width. |
| `height` | `Number` | no | `0` | Height. |
| `dpi` | `Number` | no | `96` | DPI. |
| `top` | `Number` | no | `0` | Top. |
| `right` | `Number` | no | `0` | Right. |
| `bottom` | `Number` | no | `0` | Bottom. |
| `left` | `Number` | no | `0` | Left. |
| `viewport` | `String` | no |  | Viewport. One of: `xs` (XS), `sm` (SM), `md` (MD), `lg` (LG). |
| `quality` | `Number` | no | `80` | Quality. |
| `orientation` | `String` | no | `portrait` | Orientation. One of: `portrait` (Portrait), `landscape` (Landscape). |
| `grayscale` | `Boolean` | no | `false` | Grayscale. |
| `lowquality` | `Boolean` | no | `false` | Lowquality. |
| `zoom` | `Number` | no | `100` | Zoom. |
| `output` | `String` | no | `buffer` | Response type. One of: `buffer` (Buffer), `base64` (Base64), `datauri` (DataURI). |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

Prints HTML or URL address to PDF, JPG, PNG or DOCX file. It utilizes the [Total.js Print API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6c225001ga51c).

__Input data:__

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

__Output data:__
Returns data according to the component configuration `Response type`. It can be `Buffer`, `Base64` or `DataURI`.

### sms.html · version 1

Type: `component`

Sends a text message.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | Total API token. |
| `to` | `String` | no |  | To. |
| `from` | `String` | no |  | From. |
| `body` | `String` | no |  | Message. |
| `isdata` | `Boolean` | no | `false` | Send incoming message data only. |
| `path` | `String` | no |  | Path for reading message. |

**Inputs:** `input` (Input).  
**Outputs:** none.

The component sends a SMS message.

### tapismsapi.html · version 1

Type: `component`

Sends a text message with Total.js API.

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

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

By using this component, you can send SMS. It utilizes the [Total.js SMS API](https://docs.totaljs.com/totalapi/6c221003eo51c/#6d220001ni51c).

__Input data:__

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

__Output data__:

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

### tapiweatherapi.html · version 1

Type: `component`

Reads the current weather for an address with Total.js API.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | API token. |
| `path` | `String` | no |  | Path for reading input data. |

**Inputs:** `input` (Input).  
**Outputs:** `output` (Output), `error` (Error).

By using this component, you can obtain the current weather by an address. It utilizes the [Total.js Weather API](https://docs.totaljs.com/totalapi/6c221003eo51c/#128f7001kc51d).

__Input data:__

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

__Output data__:

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