Total.js API
Components that call the services of Total.js API with your token.
On this page
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.
API
component
tapicaptchaapi.html · version 1
Generates a captcha as a JPEG image with Total.js API.
tapicaptchaapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
width? |
Number |
Width. Default: 200 |
height? |
Number |
Height. Default: 80 |
dark? |
Boolean |
Dark mode. Default: false |
Inputs: input (Input).
Outputs: output (Output), error (Error).
Captcha image generator generates a simple JPEG image. It utilizes the Total.js Weather API.
Input data:
// {String} Captcha text
'123456'Output data:
// Returns DataURI
'data:image/jpeg;base64,/9j/4AAQSkZ...''
component
tapichatgptapi.html · version 1
Asks ChatGPT through Total.js API.
tapichatgptapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
output? |
String |
Output. One of: text (Text), image (Image). Default: text |
size? |
String |
Size. One of: small (Small), medium (Medium), large (Large). Default: small |
response? |
String |
Response type. One of: buffer (Buffer), base64 (Base64), datauri (DataURI). Default: buffer |
Inputs: input (Input).
Outputs: output (Output), error (Error).
By using this component you can asks ChatGPT / OpenAPI. It utilizes the Total.js ChatGPT API.
Input data:
// {String} a question for ChatGPT
'What is Total.js Platform'Output data:
If output is set as Text:
{
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.
component
tapicheckapi.html · version 1
Returns the current status of your Total.js API token.
tapicheckapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
Inputs: input (Input).
Outputs: output (Output), error (Error).
Returns a current status for your token. It utilizes the Total.js Check API.
Output data:
{
credits: 34.49
}
component
tapicheckvatapi.html · version 1
Checks whether a company in the European Union is a VAT payer, with Total.js API.
tapicheckvatapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
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.
Input data:
// {String} VAT ID
'SK2120417167'Output data:
{
is: true, // Is VAT Payer?
vat: 20, // Country VAT
name: 'Total Avengers s. r. o.',
address: 'Viestova 6784/28\n97401 Banská Bystrica\nSlovensko'
}
component
tapiexchangeratesapi.html · version 1
Reads exchange rates with Total.js API.
tapiexchangeratesapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
currency? |
String |
Currency. Default: EUR |
path? |
String |
Path for reading input data. |
Inputs: input (Input).
Outputs: output (Output), error (Error).
Reads exchange rates. It utilizes the Total.js Exchangerates API.
Input data:
// {String} Date, optional input default is current date
"2020-12-12"Output data:
{
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
}
component
tapiconvertapi.html · version 1
Converts a file to another file type with Total.js API.
tapiconvertapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
to? |
String |
Convert to. One of: pdf (PDF), jpg (JPG), png (PNG). Default: pdf |
output? |
String |
Response type. One of: buffer (Buffer), base64 (Base64), datauri (DataURI). Default: buffer |
Inputs: input (Input).
Outputs: output (Output), error (Error).
It converts file to another type of file. It utilizes the Total.js Convert API.
Input data:
// {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.
component
tapigeoipapi.html · version 1
Reads the location of an IP address with Total.js API.
tapigeoipapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
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.
Input data:
// {String} IP address
"78.98.116.204"Output data:
{
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'
}
component
tapiinvoiceparserapi.html · version 1
Reads the data of an invoice from a PDF, JPG or PNG file with Total.js API.
tapiinvoiceparserapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
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.
Input data:
// {String} dataURI of a file
"data": "data:application/pdf;base64,JVBERi0xLjcN..."Output data:
{
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
}
component
tlogger.html · version 2
Logs incoming messages into the Total.js Cloud Logger.
tlogger.html · version 2| Parameter | Type | Description |
|---|---|---|
token? |
String |
Total API token. |
type? |
String |
Type. One of: info (Info), error (Error), warning (Warning), success (Success). Default: info |
message? |
String |
Message. |
reference? |
String |
Reference. |
url? |
String |
URL address. |
app? |
String |
App name. |
Inputs: input (Input).
Outputs: none.
The component logs incoming messages into the Total.js Cloud Logger.
component
tapiocrapi.html · version 1
Reads the text of JPG, PNG or PDF files with Total.js API.
tapiocrapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
language? |
String |
Language. Default: eng |
Inputs: input (Input).
Outputs: output (Output), error (Error).
OCR reader for JPG, PNG or PDF files. It utilizes the Total.js OCR API.
Input data:
// {String} dataURI of a file
"data:image/png;base64,iVBORw0KGgo....."Output data:
{
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do...'
}
component
tapiplatenumber.html · version 1
Reads a vehicle plate number from a JPG or PNG picture with Total.js API.
tapiplatenumber.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
code? |
String |
Country code. One of: eu (EU), us (US). Default: eu |
first? |
Boolean |
Return only the first value. Default: false |
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.
Input data:
// {String} dataURI of an image
'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEB....'Output data:
[
{
"value": "H786P0J",
"confidence": 89.8356
},
{
"value": "H786POJ",
"confidence": 87.6114
},
{
"value": "HN786P0J",
"confidence": 85.2152
}
]
component
tapiprintapi.html · version 1
Prints HTML or a URL address to a PDF, JPG, PNG or DOCX file with Total.js API.
tapiprintapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
Path for reading input data. |
type? |
String |
Type. One of: pdf (PDF), jpg (JPG), png (PNG), docx (DOCX). Default: pdf |
page? |
String |
Page. Default: A4 |
width? |
Number |
Width. Default: 0 |
height? |
Number |
Height. Default: 0 |
dpi? |
Number |
DPI. Default: 96 |
top? |
Number |
Top. Default: 0 |
right? |
Number |
Right. Default: 0 |
bottom? |
Number |
Bottom. Default: 0 |
left? |
Number |
Left. Default: 0 |
viewport? |
String |
Viewport. One of: xs (XS), sm (SM), md (MD), lg (LG). |
quality? |
Number |
Quality. Default: 80 |
orientation? |
String |
Orientation. One of: portrait (Portrait), landscape (Landscape). Default: portrait |
grayscale? |
Boolean |
Grayscale. Default: false |
lowquality? |
Boolean |
Lowquality. Default: false |
zoom? |
Number |
Zoom. Default: 100 |
output? |
String |
Response type. One of: buffer (Buffer), base64 (Base64), datauri (DataURI). Default: buffer |
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.
Input data:
// {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.
component
sms.html · version 1
Sends a text message.
sms.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
Total API token. |
to? |
String |
To. |
from? |
String |
From. |
body? |
String |
Message. |
isdata? |
Boolean |
Send incoming message data only. Default: false |
path? |
String |
Path for reading message. |
Inputs: input (Input).
Outputs: none.
The component sends a SMS message.
component
tapismsapi.html · version 1
Sends a text message with Total.js API.
tapismsapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
from? |
String |
From. |
Inputs: input (Input).
Outputs: output (Output), error (Error).
By using this component, you can send SMS. It utilizes the Total.js SMS API.
Input data:
{
to: "+421903163302",
body: "Your message ..."
}Output data:
{ success: true }
component
tapiweatherapi.html · version 1
Reads the current weather for an address with Total.js API.
tapiweatherapi.html · version 1| Parameter | Type | Description |
|---|---|---|
token? |
String |
API token. |
path? |
String |
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.
Input data:
// {String} address without diacritics
'Banska Bystrica, Slovakia'Output data:
{
name: 'Bratislava',
temperature: 22,
wind: 20.2,
humidity: 65,
pressure: 1018,
cloud: 25,
uv: 6,
sky: 'Partly cloudy'
}