{"id":"JapFKk1yM61f","url":"https://totaljs.es/docs/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"en","title":"What is Total API","summary":"Ready-made web services of the Total.js Platform that any application can call with a token.","markdown":"---\ntitle: What is Total API\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# What is Total API\n\n> Ready-made web services of the Total.js Platform that any application can call with a token.\n\nTotal API is a set of ready-made web services of the Total.js Platform. Your application sends a request with your token, and Total API does the work: it prints a PDF, reads text from an image, sends an email, checks a VAT number and more. You pay a small price for each request from the credits of your token.\n\nTotal.js applications call it with one line of code. Any other application calls it over HTTP.\n\n## Services\n\n| Service | What it does |\n| --- | --- |\n| [Printer](../../reference/documents-and-images/#print) | Prints HTML or a web page to PDF, JPG or PNG |\n| [Convertor](../../reference/documents-and-images/#convert) | Converts a file to PDF, JPG or PNG |\n| [OCR](../../reference/documents-and-images/#ocr) | Reads the text of an image or a PDF |\n| [Invoice parser](../../reference/documents-and-images/#invoiceparser) | Reads the data of an invoice from a PDF, JPG or PNG |\n| [Plate number parser](../../reference/documents-and-images/#platenumber) | Reads a license plate from a picture |\n| [Captcha image generator](../../reference/documents-and-images/#captcha) | Draws a captcha image |\n| [Email](../../reference/messages/#mail) | Sends an email |\n| [Send SMS](../../reference/messages/#sms) | Sends a text message |\n| [Logger](../../reference/messages/#logger) | Stores a log message in the Total.js Platform |\n| [IP geolocation](../../reference/data/#geoip) | Finds the place of an IP address |\n| [Exchange rates](../../reference/data/#exchangerates) | Reads the exchange rates of a day |\n| [Check company VAT ID](../../reference/data/#checkvat) | Checks a VAT number in the European Union |\n| [Current weather](../../reference/data/#weather) | Reads the weather of a place |\n| [Chat GPT](../../reference/ai/#chatgpt) | Asks ChatGPT a question |\n| [Check credits](../../reference/account/#check) | Returns the credits of your token, for free |\n\n## Read next\n\n1. [Get a token](../get-a-token/)\n2. [Call Total API from Total.js](../call-from-totaljs/) or [call it over HTTP](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKk1yM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"de","title":"Was ist Total API","summary":"Fertige Webdienste der Total.js Platform, die jede Anwendung mit einem Token aufrufen kann.","markdown":"---\ntitle: Was ist Total API\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Was ist Total API\n\n> Fertige Webdienste der Total.js Platform, die jede Anwendung mit einem Token aufrufen kann.\n\nTotal API ist eine Sammlung fertiger Webdienste der Total.js Platform. Deine Anwendung schickt eine Anfrage mit deinem Token, und Total API erledigt die Arbeit: Es druckt ein PDF, liest Text aus einem Bild, sendet eine E-Mail, prüft eine USt-IdNr. und mehr. Für jede Anfrage zahlst du einen kleinen Preis aus dem Guthaben deines Tokens.\n\nTotal.js-Anwendungen rufen es mit einer Zeile Code auf. Jede andere Anwendung ruft es über HTTP auf.\n\n## Dienste\n\n| Dienst | Was er macht |\n| --- | --- |\n| [Printer](../../reference/documents-and-images/#print) | Druckt HTML oder eine Webseite als PDF, JPG oder PNG |\n| [Convertor](../../reference/documents-and-images/#convert) | Wandelt eine Datei in PDF, JPG oder PNG um |\n| [OCR](../../reference/documents-and-images/#ocr) | Liest den Text eines Bildes oder eines PDFs |\n| [Invoice parser](../../reference/documents-and-images/#invoiceparser) | Liest die Daten einer Rechnung aus einem PDF, JPG oder PNG |\n| [Plate number parser](../../reference/documents-and-images/#platenumber) | Liest ein Kfz-Kennzeichen aus einem Bild |\n| [Captcha image generator](../../reference/documents-and-images/#captcha) | Zeichnet ein Captcha-Bild |\n| [Email](../../reference/messages/#mail) | Sendet eine E-Mail |\n| [Send SMS](../../reference/messages/#sms) | Sendet eine SMS |\n| [Logger](../../reference/messages/#logger) | Speichert eine Log-Meldung in der Total.js Platform |\n| [IP geolocation](../../reference/data/#geoip) | Findet den Ort einer IP-Adresse |\n| [Exchange rates](../../reference/data/#exchangerates) | Liest die Wechselkurse eines Tages |\n| [Check company VAT ID](../../reference/data/#checkvat) | Prüft eine USt-IdNr. in der Europäischen Union |\n| [Current weather](../../reference/data/#weather) | Liest das Wetter an einem Ort |\n| [Chat GPT](../../reference/ai/#chatgpt) | Stellt ChatGPT eine Frage |\n| [Check credits](../../reference/account/#check) | Gibt das Guthaben deines Tokens zurück, kostenlos |\n\n## Wie es weitergeht\n\n1. [Einen Token holen](../get-a-token/)\n2. [Total API aus Total.js aufrufen](../call-from-totaljs/) oder [über HTTP aufrufen](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKk1yM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"es","title":"Qué es Total API","summary":"Servicios web listos para usar de la Total.js Platform a los que cualquier aplicación puede llamar con un token.","markdown":"---\ntitle: \"Qué es Total API\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Qué es Total API\n\n> Servicios web listos para usar de la Total.js Platform a los que cualquier aplicación puede llamar con un token.\n\nTotal API es un conjunto de servicios web listos para usar de la Total.js Platform. Tu aplicación envía una petición con tu token y Total API hace el trabajo: imprime un PDF, lee el texto de una imagen, envía un correo, comprueba un número de IVA y mucho más. Pagas un pequeño precio por cada petición con los créditos de tu token.\n\nLas aplicaciones Total.js lo llaman con una sola línea de código. Cualquier otra aplicación lo llama por HTTP.\n\n## Servicios\n\n| Servicio | Qué hace |\n| --- | --- |\n| [Printer](../../reference/documents-and-images/#print) | Imprime HTML o una página web en PDF, JPG o PNG |\n| [Convertor](../../reference/documents-and-images/#convert) | Convierte un archivo a PDF, JPG o PNG |\n| [OCR](../../reference/documents-and-images/#ocr) | Lee el texto de una imagen o de un PDF |\n| [Invoice parser](../../reference/documents-and-images/#invoiceparser) | Lee los datos de una factura en PDF, JPG o PNG |\n| [Plate number parser](../../reference/documents-and-images/#platenumber) | Lee una matrícula en una foto |\n| [Captcha image generator](../../reference/documents-and-images/#captcha) | Dibuja una imagen captcha |\n| [Email](../../reference/messages/#mail) | Envía un correo |\n| [Send SMS](../../reference/messages/#sms) | Envía un mensaje de texto |\n| [Logger](../../reference/messages/#logger) | Guarda un mensaje de registro en la Total.js Platform |\n| [IP geolocation](../../reference/data/#geoip) | Encuentra la ubicación de una dirección IP |\n| [Exchange rates](../../reference/data/#exchangerates) | Lee los tipos de cambio de un día |\n| [Check company VAT ID](../../reference/data/#checkvat) | Comprueba un número de IVA en la Unión Europea |\n| [Current weather](../../reference/data/#weather) | Lee el tiempo de un lugar |\n| [Chat GPT](../../reference/ai/#chatgpt) | Hace una pregunta a ChatGPT |\n| [Check credits](../../reference/account/#check) | Devuelve los créditos de tu token, gratis |\n\n## Qué leer a continuación\n\n1. [Consigue un token](../get-a-token/)\n2. [Llama a Total API desde Total.js](../call-from-totaljs/) o [llámalo por HTTP](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKk1yM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"fr","title":"Qu’est-ce que Total API","summary":"Des services web prêts à l’emploi de la Total.js Platform, que n’importe quelle application peut appeler avec un token.","markdown":"---\ntitle: \"Qu’est-ce que Total API\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Qu’est-ce que Total API\n\n> Des services web prêts à l’emploi de la Total.js Platform, que n’importe quelle application peut appeler avec un token.\n\nTotal API est un ensemble de services web prêts à l’emploi de la Total.js Platform. Ton application envoie une requête avec ton token, et Total API fait le travail : il imprime un PDF, lit le texte d’une image, envoie un e-mail, vérifie un numéro de TVA et plus encore. Tu paies un petit prix pour chaque requête sur les crédits de ton token.\n\nLes applications Total.js l’appellent avec une seule ligne de code. Toute autre application l’appelle en HTTP.\n\n## Services\n\n| Service | Ce qu’il fait |\n| --- | --- |\n| [Printer](../../reference/documents-and-images/#print) | Imprime du HTML ou une page web en PDF, JPG ou PNG |\n| [Convertor](../../reference/documents-and-images/#convert) | Convertit un fichier en PDF, JPG ou PNG |\n| [OCR](../../reference/documents-and-images/#ocr) | Lit le texte d’une image ou d’un PDF |\n| [Invoice parser](../../reference/documents-and-images/#invoiceparser) | Lit les données d’une facture à partir d’un PDF, JPG ou PNG |\n| [Plate number parser](../../reference/documents-and-images/#platenumber) | Lit une plaque d’immatriculation sur une photo |\n| [Captcha image generator](../../reference/documents-and-images/#captcha) | Dessine une image captcha |\n| [Email](../../reference/messages/#mail) | Envoie un e-mail |\n| [Send SMS](../../reference/messages/#sms) | Envoie un SMS |\n| [Logger](../../reference/messages/#logger) | Enregistre un message de journal dans la Total.js Platform |\n| [IP geolocation](../../reference/data/#geoip) | Trouve le lieu d’une adresse IP |\n| [Exchange rates](../../reference/data/#exchangerates) | Lit les taux de change d’un jour |\n| [Check company VAT ID](../../reference/data/#checkvat) | Vérifie un numéro de TVA dans l’Union européenne |\n| [Current weather](../../reference/data/#weather) | Lit la météo d’un lieu |\n| [Chat GPT](../../reference/ai/#chatgpt) | Pose une question à ChatGPT |\n| [Check credits](../../reference/account/#check) | Renvoie les crédits de ton token, gratuitement |\n\n## Que lire ensuite\n\n1. [Obtenir un token](../get-a-token/)\n2. [Appeler Total API depuis Total.js](../call-from-totaljs/) ou [l’appeler en HTTP](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKk1yM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"it","title":"Cos'è Total API","summary":"Servizi web pronti della Total.js Platform che qualsiasi applicazione può chiamare con un token.","markdown":"---\ntitle: \"Cos'è Total API\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Cos'è Total API\n\n> Servizi web pronti della Total.js Platform che qualsiasi applicazione può chiamare con un token.\n\nTotal API è un insieme di servizi web pronti della Total.js Platform. La tua applicazione invia una richiesta con il tuo token e Total API fa il lavoro: stampa un PDF, legge il testo di un'immagine, invia un'email, verifica una partita IVA e altro ancora. Per ogni richiesta paghi un piccolo prezzo con i crediti del tuo token.\n\nLe applicazioni Total.js lo chiamano con una riga di codice. Qualsiasi altra applicazione lo chiama via HTTP.\n\n## Servizi\n\n| Servizio | Cosa fa |\n| --- | --- |\n| [Printer](../../reference/documents-and-images/#print) | Stampa HTML o una pagina web in PDF, JPG o PNG |\n| [Convertor](../../reference/documents-and-images/#convert) | Converte un file in PDF, JPG o PNG |\n| [OCR](../../reference/documents-and-images/#ocr) | Legge il testo di un'immagine o di un PDF |\n| [Invoice parser](../../reference/documents-and-images/#invoiceparser) | Legge i dati di una fattura da un PDF, JPG o PNG |\n| [Plate number parser](../../reference/documents-and-images/#platenumber) | Legge una targa da una foto |\n| [Captcha image generator](../../reference/documents-and-images/#captcha) | Disegna un'immagine captcha |\n| [Email](../../reference/messages/#mail) | Invia un'email |\n| [Send SMS](../../reference/messages/#sms) | Invia un SMS |\n| [Logger](../../reference/messages/#logger) | Salva un messaggio di log nella Total.js Platform |\n| [IP geolocation](../../reference/data/#geoip) | Trova il luogo di un indirizzo IP |\n| [Exchange rates](../../reference/data/#exchangerates) | Legge i tassi di cambio di un giorno |\n| [Check company VAT ID](../../reference/data/#checkvat) | Verifica una partita IVA nell'Unione Europea |\n| [Current weather](../../reference/data/#weather) | Legge il meteo di un luogo |\n| [Chat GPT](../../reference/ai/#chatgpt) | Fa una domanda a ChatGPT |\n| [Check credits](../../reference/account/#check) | Restituisce i crediti del tuo token, gratis |\n\n## Leggi anche\n\n1. [Ottenere un token](../get-a-token/)\n2. [Chiamare Total API da Total.js](../call-from-totaljs/) oppure [chiamarlo via HTTP](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKk1yM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/guides/introduction/","project":"total-api","version":"2026","section":"guides","language":"sk","title":"Čo je Total API","summary":"Hotové webové služby Total.js Platform, ktoré môže s tokenom volať akákoľvek aplikácia.","markdown":"---\ntitle: \"Čo je Total API\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/guides/introduction/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Čo je Total API\n\n> Hotové webové služby Total.js Platform, ktoré môže s tokenom volať akákoľvek aplikácia.\n\nTotal API je súbor hotových webových služieb Total.js Platform. Tvoja aplikácia pošle požiadavku s tvojím tokenom a Total API urobí prácu: vytlačí PDF, prečíta text z obrázka, pošle e-mail, overí IČ DPH a ďalšie. Za každú požiadavku zaplatíš malú sumu z kreditov svojho tokenu.\n\nAplikácie Total.js ho volajú jedným riadkom kódu. Akákoľvek iná aplikácia ho volá cez HTTP.\n\n## Služby\n\n| Služba | Čo robí |\n| --- | --- |\n| [Tlačiareň](../../reference/documents-and-images/#print) | Vytlačí HTML alebo webovú stránku do PDF, JPG alebo PNG |\n| [Konvertor](../../reference/documents-and-images/#convert) | Prevedie súbor do PDF, JPG alebo PNG |\n| [OCR](../../reference/documents-and-images/#ocr) | Prečíta text z obrázka alebo PDF |\n| [Čítačka faktúr](../../reference/documents-and-images/#invoiceparser) | Prečíta údaje faktúry z PDF, JPG alebo PNG |\n| [Čítačka evidenčných čísel](../../reference/documents-and-images/#platenumber) | Prečíta evidenčné číslo vozidla z fotky |\n| [Generátor captcha obrázkov](../../reference/documents-and-images/#captcha) | Nakreslí captcha obrázok |\n| [E-mail](../../reference/messages/#mail) | Pošle e-mail |\n| [Poslať SMS](../../reference/messages/#sms) | Pošle textovú správu |\n| [Logger](../../reference/messages/#logger) | Uloží záznam do logu v Total.js Platform |\n| [Geolokácia IP](../../reference/data/#geoip) | Zistí polohu IP adresy |\n| [Výmenné kurzy](../../reference/data/#exchangerates) | Načíta výmenné kurzy za daný deň |\n| [Overenie IČ DPH firmy](../../reference/data/#checkvat) | Overí IČ DPH v Európskej únii |\n| [Aktuálne počasie](../../reference/data/#weather) | Načíta počasie na danom mieste |\n| [Chat GPT](../../reference/ai/#chatgpt) | Položí otázku ChatGPT |\n| [Kontrola kreditov](../../reference/account/#check) | Zadarmo vráti kredity tvojho tokenu |\n\n## Čo si prečítať ďalej\n\n1. [Získaj token](../get-a-token/)\n2. [Volanie Total API z Total.js](../call-from-totaljs/) alebo [volanie cez HTTP](../call-over-http/)\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f","url":"https://totaljs.es/docs/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"en","title":"Get a token","summary":"Get the token that every request to Total API needs, and check its credits.","markdown":"---\ntitle: Get a token\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Get a token\n\n> Get the token that every request to Total API needs, and check its credits.\n\nEvery request to Total API needs your token. The token identifies you, and each request takes its price from the credits of the token.\n\n## Get it\n\n1. Open the [Total.js Platform](https://platform.totaljs.com?open=api) and sign in with your Total.js account.\n2. Open the **API** section. It shows your token, your credits and the current price of each service.\n3. Copy the token.\n\nKeep the token secret, like a password: anyone who has it can spend its credits. Put it in the configuration of your application, never in code that a browser downloads.\n\n## Check the credits\n\nThe [check](../../reference/account/#check) service returns the credits that remain. It is free.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"de","title":"Einen Token holen","summary":"Hol dir den Token, den jede Anfrage an Total API braucht, und prüfe sein Guthaben.","markdown":"---\ntitle: Einen Token holen\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Einen Token holen\n\n> Hol dir den Token, den jede Anfrage an Total API braucht, und prüfe sein Guthaben.\n\nJede Anfrage an Total API braucht deinen Token. Der Token weist dich aus, und jede Anfrage zieht ihren Preis vom Guthaben des Tokens ab.\n\n## So bekommst du ihn\n\n1. Öffne die [Total.js Platform](https://platform.totaljs.com?open=api) und melde dich mit deinem Total.js-Konto an.\n2. Öffne den Bereich **API**. Dort siehst du deinen Token, dein Guthaben und den aktuellen Preis jedes Dienstes.\n3. Kopiere den Token.\n\nHalte den Token geheim wie ein Passwort: Wer ihn hat, kann sein Guthaben ausgeben. Leg ihn in der Konfiguration deiner Anwendung ab, niemals in Code, den ein Browser herunterlädt.\n\n## Das Guthaben prüfen\n\nDer Dienst [check](../../reference/account/#check) gibt das verbleibende Guthaben zurück. Er ist kostenlos.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"es","title":"Consigue un token","summary":"Consigue el token que necesita cada petición a Total API y revisa sus créditos.","markdown":"---\ntitle: Consigue un token\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Consigue un token\n\n> Consigue el token que necesita cada petición a Total API y revisa sus créditos.\n\nCada petición a Total API necesita tu token. El token te identifica, y cada petición descuenta su precio de los créditos del token.\n\n## Consíguelo\n\n1. Abre la [Total.js Platform](https://platform.totaljs.com?open=api) e inicia sesión con tu cuenta de Total.js.\n2. Abre la sección **API**. Muestra tu token, tus créditos y el precio actual de cada servicio.\n3. Copia el token.\n\nGuarda el token en secreto, como una contraseña: cualquiera que lo tenga puede gastar sus créditos. Ponlo en la configuración de tu aplicación, nunca en código que descargue un navegador.\n\n## Revisa los créditos\n\nEl servicio [check](../../reference/account/#check) devuelve los créditos que te quedan. Es gratis.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"fr","title":"Obtenir un token","summary":"Obtiens le token dont chaque requête à Total API a besoin, et vérifie ses crédits.","markdown":"---\ntitle: Obtenir un token\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Obtenir un token\n\n> Obtiens le token dont chaque requête à Total API a besoin, et vérifie ses crédits.\n\nChaque requête à Total API a besoin de ton token. Le token t’identifie, et chaque requête prend son prix sur les crédits du token.\n\n## L’obtenir\n\n1. Ouvre la [Total.js Platform](https://platform.totaljs.com?open=api) et connecte-toi avec ton compte Total.js.\n2. Ouvre la section **API**. Elle affiche ton token, tes crédits et le prix actuel de chaque service.\n3. Copie le token.\n\nGarde le token secret, comme un mot de passe : toute personne qui l’a peut dépenser ses crédits. Mets-le dans la configuration de ton application, jamais dans du code qu’un navigateur télécharge.\n\n## Vérifier les crédits\n\nLe service [check](../../reference/account/#check) renvoie les crédits qui restent. Il est gratuit.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"it","title":"Ottenere un token","summary":"Ottieni il token che serve a ogni richiesta a Total API e controlla i suoi crediti.","markdown":"---\ntitle: Ottenere un token\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Ottenere un token\n\n> Ottieni il token che serve a ogni richiesta a Total API e controlla i suoi crediti.\n\nOgni richiesta a Total API ha bisogno del tuo token. Il token ti identifica, e ogni richiesta scala il suo prezzo dai crediti del token.\n\n## Ottenerlo\n\n1. Apri la [Total.js Platform](https://platform.totaljs.com?open=api) e accedi con il tuo account Total.js.\n2. Apri la sezione **API**. Mostra il tuo token, i tuoi crediti e il prezzo attuale di ogni servizio.\n3. Copia il token.\n\nTieni segreto il token, come una password: chiunque lo abbia può spendere i suoi crediti. Mettilo nella configurazione della tua applicazione, mai nel codice che scarica un browser.\n\n## Controllare i crediti\n\nIl servizio [check](../../reference/account/#check) restituisce i crediti rimasti. È gratuito.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKj1wM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/guides/get-a-token/","project":"total-api","version":"2026","section":"guides","language":"sk","title":"Získaj token","summary":"Získaj token, ktorý potrebuje každá požiadavka na Total API, a skontroluj jeho kredity.","markdown":"---\ntitle: \"Získaj token\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/guides/get-a-token/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Získaj token\n\n> Získaj token, ktorý potrebuje každá požiadavka na Total API, a skontroluj jeho kredity.\n\nKaždá požiadavka na Total API potrebuje tvoj token. Token ťa identifikuje a každá požiadavka si svoju cenu strhne z kreditov tokenu.\n\n## Ako ho získať\n\n1. Otvor [Total.js Platform](https://platform.totaljs.com?open=api) a prihlás sa svojím účtom Total.js.\n2. Otvor sekciu **API**. Uvidíš v nej svoj token, svoje kredity a aktuálnu cenu každej služby.\n3. Skopíruj token.\n\nToken drž v tajnosti ako heslo: ktokoľvek, kto ho má, môže míňať jeho kredity. Daj ho do konfigurácie svojej aplikácie, nikdy nie do kódu, ktorý si stiahne prehliadač.\n\n## Kontrola kreditov\n\nSlužba [check](../../reference/account/#check) vráti zostávajúce kredity. Je zadarmo.\n\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f","url":"https://totaljs.es/docs/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"en","title":"Call Total API from Total.js","summary":"Configure the token and call any service with API('TAPI') or TotalAPI() in a Total.js application.","markdown":"---\ntitle: Call Total API from Total.js\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Call Total API from Total.js\n\n> Configure the token and call any service with API('TAPI') or TotalAPI() in a Total.js application.\n\nTotal.js applications have a built-in client for Total API. You only add your token to the configuration.\n\n## Configure the token\n\nAdd the `totalapi` key to the `config` file of your application:\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Call a service\n\n`API('TAPI', service, data)` calls a service. The first argument is always `TAPI`, the second one is the name of the service and the third one its data.\n\nWith `await`:\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nWith a callback:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` does the same in a shorter form:\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Data as text\n\nWhen the data is text, a number or a boolean instead of an object, the client sends it as `{ value: ... }`. These two calls are the same:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Errors\n\nWhen Total API refuses a request, the error is its message, for example `Invalid token` when the token is missing or wrong.\n\n## Send the emails of the app through Total API\n\nWith `$tapimail` set to `true`, the emails that the application sends with `MAIL()` go through the [mail](../../reference/messages/#mail) service instead of an SMTP server:\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Send the audit logs to Total API\n\nWith `$tapilogger` set to `true`, the audit logs of the application (`AUDIT()`) go to the [logger](../../reference/messages/#logger) service:\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"de","title":"Total API aus Total.js aufrufen","summary":"Richte den Token ein und rufe in einer Total.js-Anwendung jeden Dienst mit API('TAPI') oder TotalAPI() auf.","markdown":"---\ntitle: Total API aus Total.js aufrufen\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Total API aus Total.js aufrufen\n\n> Richte den Token ein und rufe in einer Total.js-Anwendung jeden Dienst mit API('TAPI') oder TotalAPI() auf.\n\nTotal.js-Anwendungen haben einen eingebauten Client für Total API. Du musst nur deinen Token in die Konfiguration eintragen.\n\n## Den Token einrichten\n\nFüge den Schlüssel `totalapi` in die Datei `config` deiner Anwendung ein:\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Einen Dienst aufrufen\n\n`API('TAPI', service, data)` ruft einen Dienst auf. Das erste Argument ist immer `TAPI`, das zweite der Name des Dienstes und das dritte seine Daten.\n\nMit `await`:\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nMit einem Callback:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` macht dasselbe in kürzerer Form:\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Daten als Text\n\nWenn die Daten ein Text, eine Zahl oder ein Boolean statt eines Objekts sind, schickt der Client sie als `{ value: ... }`. Diese beiden Aufrufe sind gleich:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Fehler\n\nWenn Total API eine Anfrage ablehnt, ist der Fehler die Meldung des Dienstes, zum Beispiel `Invalid token`, wenn der Token fehlt oder falsch ist.\n\n## Die E-Mails der App über Total API senden\n\nWenn `$tapimail` auf `true` steht, gehen die E-Mails, die die Anwendung mit `MAIL()` sendet, über den Dienst [mail](../../reference/messages/#mail) statt über einen SMTP-Server:\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Die Audit-Logs an Total API senden\n\nWenn `$tapilogger` auf `true` steht, gehen die Audit-Logs der Anwendung (`AUDIT()`) an den Dienst [logger](../../reference/messages/#logger):\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"es","title":"Llama a Total API desde Total.js","summary":"Configura el token y llama a cualquier servicio con API('TAPI') o TotalAPI() en una aplicación Total.js.","markdown":"---\ntitle: Llama a Total API desde Total.js\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Llama a Total API desde Total.js\n\n> Configura el token y llama a cualquier servicio con API('TAPI') o TotalAPI() en una aplicación Total.js.\n\nLas aplicaciones Total.js traen un cliente integrado para Total API. Solo tienes que añadir tu token a la configuración.\n\n## Configura el token\n\nAñade la clave `totalapi` al archivo `config` de tu aplicación:\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Llama a un servicio\n\n`API('TAPI', service, data)` llama a un servicio. El primer argumento siempre es `TAPI`, el segundo es el nombre del servicio y el tercero, sus datos.\n\nCon `await`:\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nCon un callback:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` hace lo mismo de forma más corta:\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Datos como texto\n\nCuando los datos son un texto, un número o un booleano en lugar de un objeto, el cliente los envía como `{ value: ... }`. Estas dos llamadas son iguales:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Errores\n\nCuando Total API rechaza una petición, el error es su mensaje, por ejemplo `Invalid token` cuando falta el token o no es correcto.\n\n## Envía los correos de la app a través de Total API\n\nCon `$tapimail` en `true`, los correos que la aplicación envía con `MAIL()` pasan por el servicio [mail](../../reference/messages/#mail) en lugar de por un servidor SMTP:\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Envía los registros de auditoría a Total API\n\nCon `$tapilogger` en `true`, los registros de auditoría de la aplicación (`AUDIT()`) van al servicio [logger](../../reference/messages/#logger):\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"fr","title":"Appeler Total API depuis Total.js","summary":"Configure le token et appelle n’importe quel service avec API('TAPI') ou TotalAPI() dans une application Total.js.","markdown":"---\ntitle: Appeler Total API depuis Total.js\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Appeler Total API depuis Total.js\n\n> Configure le token et appelle n’importe quel service avec API('TAPI') ou TotalAPI() dans une application Total.js.\n\nLes applications Total.js ont un client intégré pour Total API. Tu ajoutes seulement ton token à la configuration.\n\n## Configurer le token\n\nAjoute la clé `totalapi` au fichier `config` de ton application :\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Appeler un service\n\n`API('TAPI', service, data)` appelle un service. Le premier argument est toujours `TAPI`, le deuxième est le nom du service et le troisième ses données.\n\nAvec `await` :\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nAvec un callback :\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` fait la même chose sous une forme plus courte :\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Des données sous forme de texte\n\nQuand les données sont un texte, un nombre ou un booléen au lieu d’un objet, le client les envoie sous la forme `{ value: ... }`. Ces deux appels sont identiques :\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Erreurs\n\nQuand Total API refuse une requête, l’erreur est son message, par exemple `Invalid token` quand le token manque ou n’est pas le bon.\n\n## Envoyer les e-mails de l’application via Total API\n\nAvec `$tapimail` à `true`, les e-mails que l’application envoie avec `MAIL()` passent par le service [mail](../../reference/messages/#mail) au lieu d’un serveur SMTP :\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Envoyer les journaux d’audit à Total API\n\nAvec `$tapilogger` à `true`, les journaux d’audit de l’application (`AUDIT()`) vont vers le service [logger](../../reference/messages/#logger) :\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"it","title":"Chiamare Total API da Total.js","summary":"Configura il token e chiama qualsiasi servizio con API('TAPI') o TotalAPI() in un'applicazione Total.js.","markdown":"---\ntitle: Chiamare Total API da Total.js\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Chiamare Total API da Total.js\n\n> Configura il token e chiama qualsiasi servizio con API('TAPI') o TotalAPI() in un'applicazione Total.js.\n\nLe applicazioni Total.js hanno un client integrato per Total API. Devi solo aggiungere il tuo token alla configurazione.\n\n## Configurare il token\n\nAggiungi la chiave `totalapi` al file `config` della tua applicazione:\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Chiamare un servizio\n\n`API('TAPI', service, data)` chiama un servizio. Il primo argomento è sempre `TAPI`, il secondo è il nome del servizio e il terzo i suoi dati.\n\nCon `await`:\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nCon una callback:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` fa lo stesso in forma più breve:\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Dati come testo\n\nQuando i dati sono un testo, un numero o un booleano invece di un oggetto, il client li invia come `{ value: ... }`. Queste due chiamate sono uguali:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Errori\n\nQuando Total API rifiuta una richiesta, l'errore è il suo messaggio, per esempio `Invalid token` quando il token manca o è sbagliato.\n\n## Inviare le email dell'app tramite Total API\n\nCon `$tapimail` impostato a `true`, le email che l'applicazione invia con `MAIL()` passano dal servizio [mail](../../reference/messages/#mail) invece che da un server SMTP:\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Inviare i log di audit a Total API\n\nCon `$tapilogger` impostato a `true`, i log di audit dell'applicazione (`AUDIT()`) vanno al servizio [logger](../../reference/messages/#logger):\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKg1sM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/guides/call-from-totaljs/","project":"total-api","version":"2026","section":"guides","language":"sk","title":"Volanie Total API z Total.js","summary":"Nastav token a volaj ľubovoľnú službu cez API('TAPI') alebo TotalAPI() v aplikácii Total.js.","markdown":"---\ntitle: Volanie Total API z Total.js\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/guides/call-from-totaljs/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Volanie Total API z Total.js\n\n> Nastav token a volaj ľubovoľnú službu cez API('TAPI') alebo TotalAPI() v aplikácii Total.js.\n\nAplikácie Total.js majú zabudovaného klienta pre Total API. Stačí, keď do konfigurácie pridáš svoj token.\n\n## Nastav token\n\nPridaj kľúč `totalapi` do súboru `config` svojej aplikácie:\n\n```text\ntotalapi : YOUR_TOKEN\n```\n\n## Zavolaj službu\n\n`API('TAPI', service, data)` zavolá službu. Prvý argument je vždy `TAPI`, druhý je názov služby a tretí jej dáta.\n\nS `await`:\n\n```js\nvar response = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nS callbackom:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava').callback(function(err, response) {\n\tif (err)\n\t\tconsole.log('Error:', err);\n\telse\n\t\tconsole.log(response.temperature);\n});\n```\n\n`TotalAPI(service, data, callback)` robí to isté v kratšej forme:\n\n```js\nTotalAPI('weather', 'Bratislava', function(err, response) {\n\tconsole.log(err, response);\n});\n```\n\n## Dáta ako text\n\nKeď sú dáta text, číslo alebo boolean namiesto objektu, klient ich pošle ako `{ value: ... }`. Tieto dve volania sú rovnaké:\n\n```js\nAPI('TAPI', 'weather', 'Bratislava');\nAPI('TAPI', 'weather', { value: 'Bratislava' });\n```\n\n## Chyby\n\nKeď Total API požiadavku odmietne, chybou je jeho správa, napríklad `Invalid token`, keď token chýba alebo je nesprávny.\n\n## Posielanie e-mailov aplikácie cez Total API\n\nKeď nastavíš `$tapimail` na `true`, e-maily, ktoré aplikácia posiela cez `MAIL()`, idú cez službu [mail](../../reference/messages/#mail) namiesto SMTP servera:\n\n```text\ntotalapi  : YOUR_TOKEN\n$tapimail : true\n```\n\n## Posielanie auditných záznamov do Total API\n\nKeď nastavíš `$tapilogger` na `true`, auditné záznamy aplikácie (`AUDIT()`) idú do služby [logger](../../reference/messages/#logger):\n\n```text\ntotalapi    : YOUR_TOKEN\n$tapilogger : true\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f","url":"https://totaljs.es/docs/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"en","title":"Call Total API over HTTP","summary":"Call any service from any language with a POST request, your token and a JSON body.","markdown":"---\ntitle: Call Total API over HTTP\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Call Total API over HTTP\n\n> Call any service from any language with a POST request, your token and a JSON body.\n\nEvery service is a `POST` request to its own address. Any language or tool that sends HTTP requests can use Total API.\n\n## The request\n\n| Part | Value |\n| --- | --- |\n| Method | `POST` |\n| Address | `https://api.totaljs.com/{service}/`, for example `https://api.totaljs.com/weather/` |\n| Header `Content-Type` | `application/json` |\n| Header `X-Token` | Your token |\n| Body | The data of the service as JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## The answer\n\n- **Success:** status `200` and the result: JSON, or the file itself for the services that create files ([print](../../reference/documents-and-images/#print) and [convert](../../reference/documents-and-images/#convert)).\n- **Error:** status `400` and a JSON array with the message:\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"de","title":"Total API über HTTP aufrufen","summary":"Rufe jeden Dienst aus jeder Sprache mit einer POST-Anfrage, deinem Token und einem JSON-Body auf.","markdown":"---\ntitle: \"Total API über HTTP aufrufen\"\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Total API über HTTP aufrufen\n\n> Rufe jeden Dienst aus jeder Sprache mit einer POST-Anfrage, deinem Token und einem JSON-Body auf.\n\nJeder Dienst ist eine `POST`-Anfrage an seine eigene Adresse. Jede Sprache und jedes Werkzeug, das HTTP-Anfragen senden kann, kann Total API nutzen.\n\n## Die Anfrage\n\n| Teil | Wert |\n| --- | --- |\n| Methode | `POST` |\n| Adresse | `https://api.totaljs.com/{service}/`, zum Beispiel `https://api.totaljs.com/weather/` |\n| Header `Content-Type` | `application/json` |\n| Header `X-Token` | Dein Token |\n| Body | Die Daten des Dienstes als JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## Die Antwort\n\n- **Erfolg:** Status `200` und das Ergebnis: JSON oder, bei den Diensten, die Dateien erzeugen ([print](../../reference/documents-and-images/#print) und [convert](../../reference/documents-and-images/#convert)), die Datei selbst.\n- **Fehler:** Status `400` und ein JSON-Array mit der Meldung:\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"es","title":"Llama a Total API por HTTP","summary":"Llama a cualquier servicio desde cualquier lenguaje con una petición POST, tu token y un cuerpo JSON.","markdown":"---\ntitle: Llama a Total API por HTTP\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Llama a Total API por HTTP\n\n> Llama a cualquier servicio desde cualquier lenguaje con una petición POST, tu token y un cuerpo JSON.\n\nCada servicio es una petición `POST` a su propia dirección. Cualquier lenguaje o herramienta que envíe peticiones HTTP puede usar Total API.\n\n## La petición\n\n| Parte | Valor |\n| --- | --- |\n| Método | `POST` |\n| Dirección | `https://api.totaljs.com/{service}/`, por ejemplo `https://api.totaljs.com/weather/` |\n| Cabecera `Content-Type` | `application/json` |\n| Cabecera `X-Token` | Tu token |\n| Cuerpo | Los datos del servicio en JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## La respuesta\n\n- **Éxito:** estado `200` y el resultado: JSON, o el propio archivo en los servicios que crean archivos ([print](../../reference/documents-and-images/#print) y [convert](../../reference/documents-and-images/#convert)).\n- **Error:** estado `400` y un array JSON con el mensaje:\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"fr","title":"Appeler Total API en HTTP","summary":"Appelle n’importe quel service depuis n’importe quel langage avec une requête POST, ton token et un corps JSON.","markdown":"---\ntitle: Appeler Total API en HTTP\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Appeler Total API en HTTP\n\n> Appelle n’importe quel service depuis n’importe quel langage avec une requête POST, ton token et un corps JSON.\n\nChaque service est une requête `POST` vers sa propre adresse. Tout langage ou outil qui envoie des requêtes HTTP peut utiliser Total API.\n\n## La requête\n\n| Élément | Valeur |\n| --- | --- |\n| Méthode | `POST` |\n| Adresse | `https://api.totaljs.com/{service}/`, par exemple `https://api.totaljs.com/weather/` |\n| En-tête `Content-Type` | `application/json` |\n| En-tête `X-Token` | Ton token |\n| Corps | Les données du service en JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## La réponse\n\n- **Succès :** le statut `200` et le résultat : du JSON, ou le fichier lui-même pour les services qui créent des fichiers ([print](../../reference/documents-and-images/#print) et [convert](../../reference/documents-and-images/#convert)).\n- **Erreur :** le statut `400` et un tableau JSON avec le message :\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"it","title":"Chiamare Total API via HTTP","summary":"Chiama qualsiasi servizio da qualsiasi linguaggio con una richiesta POST, il tuo token e un corpo JSON.","markdown":"---\ntitle: Chiamare Total API via HTTP\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Chiamare Total API via HTTP\n\n> Chiama qualsiasi servizio da qualsiasi linguaggio con una richiesta POST, il tuo token e un corpo JSON.\n\nOgni servizio è una richiesta `POST` al suo indirizzo. Qualsiasi linguaggio o strumento che invia richieste HTTP può usare Total API.\n\n## La richiesta\n\n| Parte | Valore |\n| --- | --- |\n| Metodo | `POST` |\n| Indirizzo | `https://api.totaljs.com/{service}/`, per esempio `https://api.totaljs.com/weather/` |\n| Header `Content-Type` | `application/json` |\n| Header `X-Token` | Il tuo token |\n| Corpo | I dati del servizio in JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## La risposta\n\n- **Successo:** stato `200` e il risultato: JSON, oppure il file stesso per i servizi che creano file ([print](../../reference/documents-and-images/#print) e [convert](../../reference/documents-and-images/#convert)).\n- **Errore:** stato `400` e un array JSON con il messaggio:\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKh1uM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/guides/call-over-http/","project":"total-api","version":"2026","section":"guides","language":"sk","title":"Volanie Total API cez HTTP","summary":"Volaj ľubovoľnú službu z akéhokoľvek jazyka požiadavkou POST, svojím tokenom a telom v JSON.","markdown":"---\ntitle: Volanie Total API cez HTTP\nproject: Total API\nversion: 2026\nsection: guides\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/guides/call-over-http/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Volanie Total API cez HTTP\n\n> Volaj ľubovoľnú službu z akéhokoľvek jazyka požiadavkou POST, svojím tokenom a telom v JSON.\n\nKaždá služba je požiadavka `POST` na vlastnú adresu. Total API môže používať akýkoľvek jazyk alebo nástroj, ktorý posiela HTTP požiadavky.\n\n## Požiadavka\n\n| Časť | Hodnota |\n| --- | --- |\n| Metóda | `POST` |\n| Adresa | `https://api.totaljs.com/{service}/`, napríklad `https://api.totaljs.com/weather/` |\n| Hlavička `Content-Type` | `application/json` |\n| Hlavička `X-Token` | Tvoj token |\n| Telo | Dáta služby ako JSON |\n\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\n## Odpoveď\n\n- **Úspech:** stav `200` a výsledok: JSON, alebo priamo súbor pri službách, ktoré vytvárajú súbory ([print](../../reference/documents-and-images/#print) a [convert](../../reference/documents-and-images/#convert)).\n- **Chyba:** stav `400` a pole JSON so správou:\n\n```json\n[{ \"error\": \"Invalid token\" }]\n```\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFL52IM61f","url":"https://totaljs.es/docs/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"en","title":"Documents and images","summary":"Print, convert and read files: PDF, OCR, invoices, license plates and captcha images.","markdown":"---\ntitle: Documents and images\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Documents and images\n\n> Print, convert and read files: PDF, OCR, invoices, license plates and captcha images.\n\nEvery service is a `POST` request with your token. See [Call Total API from Total.js](../../guides/call-from-totaljs/) and [Call Total API over HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nPrints HTML or a web page to PDF, JPG or PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` or `png`. |\n| `html` | `String` | no |  | The HTML to print. Send `html` or `url`. |\n| `url` | `String` | no |  | The address of a web page to print. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` or `Letter`. |\n| `width` | `Number` | no |  | PDF: the width of the page. Image: the width of the browser, in pixels. |\n| `height` | `Number` | no |  | PDF: the height of the page. Image: the height of the browser, in pixels. |\n| `dpi` | `Number` | no | `96` | PDF only. |\n| `margin` | `String` | no | `0 0 0 0` | PDF only: `top right bottom left` in millimeters. |\n| `viewport` | `String` | no |  | `xs` (phone), `sm` (tablet), `md` (medium screen) or `lg` (large screen). |\n| `quality` | `Number` | no |  | The quality of an image. |\n| `orientation` | `String` | no | `portrait` | `portrait` or `landscape`. |\n| `grayscale` | `Boolean` | no |  | PDF only: a grayscale document. |\n| `lowquality` | `Boolean` | no |  | PDF only: a smaller document of lower quality. |\n| `zoom` | `Number` | no | `100` | The zoom in percent. |\n\nReturns: `Binary` The file itself (binary data).\n\nThe HTML or the web page can have up to 512 kB.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nConverts a file to PDF, JPG or PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` or `png`. |\n| `data` | `String` | yes |  | The file as a data URI, for example `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` The converted file (binary data).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nReads the text of a JPG, PNG or PDF file.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | The file as a data URI: JPG, PNG or PDF. |\n| `language` | `String` | no | `eng` | The language of the text in an image, for example `eng` or `slk+eng` for two languages. PDF files ignore it. |\n\nReturns: `Object` An object with the text in `text`.\n\nImages are read with the Tesseract 5 engine, and the text keeps the layout of the image. The text of a PDF file is read from the file itself. The file can have up to 5 MB.\n\nThe codes of the languages are in the [list of Tesseract languages](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Response\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nReads the data of an invoice from a PDF, JPG or PNG file.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | The invoice as a data URI: PDF, JPG or PNG. |\n\nReturns: `Object` The supplier, the customer and the numbers of the invoice.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Response\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nReads a license plate from a JPG or PNG picture.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | The picture as a data URI: JPG or PNG. |\n| `code` | `String` | no | `eu` | The kind of plates: `eu` or `us`. |\n\nReturns: `Array` An array of the plates found, each with its confidence in percent.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Response\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nDraws a captcha image with the text that you send.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | The text of the image. |\n| `width` | `Number` | no | `200` | The width in pixels. |\n| `height` | `Number` | no | `80` | The height in pixels. |\n| `dark` | `Boolean` | no | `false` | A dark image. |\n\nReturns: `String` A JPEG image as a data URI.\n\nKeep the text of the captcha on your server and compare it with what the user types.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Response\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFL52IM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"de","title":"Dokumente und Bilder","summary":"Dateien drucken, umwandeln und auslesen: PDF, OCR, Rechnungen, Kfz-Kennzeichen und Captcha-Bilder.","markdown":"---\ntitle: Dokumente und Bilder\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Dokumente und Bilder\n\n> Dateien drucken, umwandeln und auslesen: PDF, OCR, Rechnungen, Kfz-Kennzeichen und Captcha-Bilder.\n\nJeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nDruckt HTML oder eine Webseite als PDF, JPG oder PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` oder `png`. |\n| `html` | `String` | no |  | Das HTML, das gedruckt wird. Schick `html` oder `url`. |\n| `url` | `String` | no |  | Die Adresse einer Webseite, die gedruckt wird. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` oder `Letter`. |\n| `width` | `Number` | no |  | PDF: die Breite der Seite. Bild: die Breite des Browsers in Pixeln. |\n| `height` | `Number` | no |  | PDF: die Höhe der Seite. Bild: die Höhe des Browsers in Pixeln. |\n| `dpi` | `Number` | no | `96` | Nur für PDF. |\n| `margin` | `String` | no | `0 0 0 0` | Nur für PDF: `top right bottom left` in Millimetern. |\n| `viewport` | `String` | no |  | `xs` (Smartphone), `sm` (Tablet), `md` (mittlerer Bildschirm) oder `lg` (großer Bildschirm). |\n| `quality` | `Number` | no |  | Die Qualität eines Bildes. |\n| `orientation` | `String` | no | `portrait` | `portrait` oder `landscape`. |\n| `grayscale` | `Boolean` | no |  | Nur für PDF: ein Dokument in Graustufen. |\n| `lowquality` | `Boolean` | no |  | Nur für PDF: ein kleineres Dokument mit geringerer Qualität. |\n| `zoom` | `Number` | no | `100` | Der Zoom in Prozent. |\n\nReturns: `Binary` Die Datei selbst (Binärdaten).\n\nDas HTML oder die Webseite darf bis zu 512 kB groß sein.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nWandelt eine Datei in PDF, JPG oder PNG um.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` oder `png`. |\n| `data` | `String` | yes |  | Die Datei als Data-URI, zum Beispiel `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` Die umgewandelte Datei (Binärdaten).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nLiest den Text einer JPG-, PNG- oder PDF-Datei.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Die Datei als Data-URI: JPG, PNG oder PDF. |\n| `language` | `String` | no | `eng` | Die Sprache des Textes in einem Bild, zum Beispiel `eng` oder `slk+eng` für zwei Sprachen. Bei PDF-Dateien wird sie ignoriert. |\n\nReturns: `Object` Ein Objekt mit dem Text in `text`.\n\nBilder werden mit der Engine Tesseract 5 gelesen, und der Text behält das Layout des Bildes. Der Text einer PDF-Datei wird direkt aus der Datei gelesen. Die Datei darf bis zu 5 MB groß sein.\n\nDie Codes der Sprachen findest du in der [Liste der Tesseract-Sprachen](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Antwort\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nLiest die Daten einer Rechnung aus einer PDF-, JPG- oder PNG-Datei.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Die Rechnung als Data-URI: PDF, JPG oder PNG. |\n\nReturns: `Object` Lieferant, Kunde und die Zahlen der Rechnung.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Antwort\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nLiest ein Kfz-Kennzeichen aus einem JPG- oder PNG-Bild.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Das Bild als Data-URI: JPG oder PNG. |\n| `code` | `String` | no | `eu` | Die Art der Kennzeichen: `eu` oder `us`. |\n\nReturns: `Array` Ein Array der gefundenen Kennzeichen, jeweils mit ihrer Sicherheit in Prozent.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Antwort\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nZeichnet ein Captcha-Bild mit dem Text, den du schickst.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Der Text des Bildes. |\n| `width` | `Number` | no | `200` | Die Breite in Pixeln. |\n| `height` | `Number` | no | `80` | Die Höhe in Pixeln. |\n| `dark` | `Boolean` | no | `false` | Ein dunkles Bild. |\n\nReturns: `String` Ein JPEG-Bild als Data-URI.\n\nBewahre den Text des Captchas auf deinem Server auf und vergleiche ihn mit dem, was die Person eintippt.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Antwort\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFL52IM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"es","title":"Documentos e imágenes","summary":"Imprime, convierte y lee archivos: PDF, OCR, facturas, matrículas e imágenes captcha.","markdown":"---\ntitle: \"Documentos e imágenes\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Documentos e imágenes\n\n> Imprime, convierte y lee archivos: PDF, OCR, facturas, matrículas e imágenes captcha.\n\nCada servicio es una petición `POST` con tu token. Consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/) y [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nImprime HTML o una página web en PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` o `png`. |\n| `html` | `String` | no |  | El HTML que quieres imprimir. Envía `html` o `url`. |\n| `url` | `String` | no |  | La dirección de una página web que quieres imprimir. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` o `Letter`. |\n| `width` | `Number` | no |  | PDF: el ancho de la página. Imagen: el ancho del navegador, en píxeles. |\n| `height` | `Number` | no |  | PDF: el alto de la página. Imagen: el alto del navegador, en píxeles. |\n| `dpi` | `Number` | no | `96` | Solo PDF. |\n| `margin` | `String` | no | `0 0 0 0` | Solo PDF: `top right bottom left` en milímetros. |\n| `viewport` | `String` | no |  | `xs` (móvil), `sm` (tableta), `md` (pantalla mediana) o `lg` (pantalla grande). |\n| `quality` | `Number` | no |  | La calidad de una imagen. |\n| `orientation` | `String` | no | `portrait` | `portrait` o `landscape`. |\n| `grayscale` | `Boolean` | no |  | Solo PDF: un documento en escala de grises. |\n| `lowquality` | `Boolean` | no |  | Solo PDF: un documento más pequeño y de menor calidad. |\n| `zoom` | `Number` | no | `100` | El zoom en porcentaje. |\n\nReturns: `Binary` El propio archivo (datos binarios).\n\nEl HTML o la página web pueden ocupar hasta 512 kB.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nConvierte un archivo a PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` o `png`. |\n| `data` | `String` | yes |  | El archivo como data URI, por ejemplo `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` El archivo convertido (datos binarios).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nLee el texto de un archivo JPG, PNG o PDF.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | El archivo como data URI: JPG, PNG o PDF. |\n| `language` | `String` | no | `eng` | El idioma del texto de una imagen, por ejemplo `eng`, o `slk+eng` para dos idiomas. Los archivos PDF lo ignoran. |\n\nReturns: `Object` Un objeto con el texto en `text`.\n\nLas imágenes se leen con el motor Tesseract 5, y el texto conserva la disposición de la imagen. El texto de un archivo PDF se lee del propio archivo. El archivo puede ocupar hasta 5 MB.\n\nLos códigos de los idiomas están en la [lista de idiomas de Tesseract](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Respuesta\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nLee los datos de una factura de un archivo PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La factura como data URI: PDF, JPG o PNG. |\n\nReturns: `Object` El proveedor, el cliente y las cifras de la factura.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Respuesta\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nLee una matrícula en una foto JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La foto como data URI: JPG o PNG. |\n| `code` | `String` | no | `eu` | El tipo de matrículas: `eu` o `us`. |\n\nReturns: `Array` Un array con las matrículas encontradas, cada una con su nivel de confianza en porcentaje.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Respuesta\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nDibuja una imagen captcha con el texto que envías.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | El texto de la imagen. |\n| `width` | `Number` | no | `200` | El ancho en píxeles. |\n| `height` | `Number` | no | `80` | El alto en píxeles. |\n| `dark` | `Boolean` | no | `false` | Una imagen oscura. |\n\nReturns: `String` Una imagen JPEG como data URI.\n\nGuarda el texto del captcha en tu servidor y compáralo con lo que escribe el usuario.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Respuesta\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFL52IM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"fr","title":"Documents et images","summary":"Imprime, convertis et lis des fichiers : PDF, OCR, factures, plaques d’immatriculation et images captcha.","markdown":"---\ntitle: Documents et images\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Documents et images\n\n> Imprime, convertis et lis des fichiers : PDF, OCR, factures, plaques d’immatriculation et images captcha.\n\nChaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nImprime du HTML ou une page web en PDF, JPG ou PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` ou `png`. |\n| `html` | `String` | no |  | Le HTML à imprimer. Envoie `html` ou `url`. |\n| `url` | `String` | no |  | L’adresse d’une page web à imprimer. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` ou `Letter`. |\n| `width` | `Number` | no |  | PDF : la largeur de la page. Image : la largeur du navigateur, en pixels. |\n| `height` | `Number` | no |  | PDF : la hauteur de la page. Image : la hauteur du navigateur, en pixels. |\n| `dpi` | `Number` | no | `96` | PDF seulement. |\n| `margin` | `String` | no | `0 0 0 0` | PDF seulement : `top right bottom left` en millimètres. |\n| `viewport` | `String` | no |  | `xs` (téléphone), `sm` (tablette), `md` (écran moyen) ou `lg` (grand écran). |\n| `quality` | `Number` | no |  | La qualité d’une image. |\n| `orientation` | `String` | no | `portrait` | `portrait` ou `landscape`. |\n| `grayscale` | `Boolean` | no |  | PDF seulement : un document en niveaux de gris. |\n| `lowquality` | `Boolean` | no |  | PDF seulement : un document plus léger, de qualité inférieure. |\n| `zoom` | `Number` | no | `100` | Le zoom en pourcentage. |\n\nReturns: `Binary` Le fichier lui-même (données binaires).\n\nLe HTML ou la page web peut faire jusqu’à 512 Ko.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nConvertit un fichier en PDF, JPG ou PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` ou `png`. |\n| `data` | `String` | yes |  | Le fichier sous forme de data URI, par exemple `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` Le fichier converti (données binaires).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nLit le texte d’un fichier JPG, PNG ou PDF.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Le fichier sous forme de data URI : JPG, PNG ou PDF. |\n| `language` | `String` | no | `eng` | La langue du texte d’une image, par exemple `eng`, ou `slk+eng` pour deux langues. Les fichiers PDF l’ignorent. |\n\nReturns: `Object` Un objet avec le texte dans `text`.\n\nLes images sont lues avec le moteur Tesseract 5, et le texte garde la mise en page de l’image. Le texte d’un fichier PDF est lu directement dans le fichier. Le fichier peut faire jusqu’à 5 Mo.\n\nLes codes des langues se trouvent dans la [liste des langues de Tesseract](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Réponse\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nLit les données d’une facture à partir d’un fichier PDF, JPG ou PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La facture sous forme de data URI : PDF, JPG ou PNG. |\n\nReturns: `Object` Le fournisseur, le client et les chiffres de la facture.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Réponse\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nLit une plaque d’immatriculation sur une photo JPG ou PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La photo sous forme de data URI : JPG ou PNG. |\n| `code` | `String` | no | `eu` | Le type de plaques : `eu` ou `us`. |\n\nReturns: `Array` Un tableau des plaques trouvées, chacune avec son niveau de confiance en pourcentage.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Réponse\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nDessine une image captcha avec le texte que tu envoies.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Le texte de l’image. |\n| `width` | `Number` | no | `200` | La largeur en pixels. |\n| `height` | `Number` | no | `80` | La hauteur en pixels. |\n| `dark` | `Boolean` | no | `false` | Une image sombre. |\n\nReturns: `String` Une image JPEG sous forme de data URI.\n\nGarde le texte du captcha sur ton serveur et compare-le avec ce que l’utilisateur tape.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Réponse\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFL52IM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"it","title":"Documenti e immagini","summary":"Stampa, converti e leggi file: PDF, OCR, fatture, targhe e immagini captcha.","markdown":"---\ntitle: Documenti e immagini\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Documenti e immagini\n\n> Stampa, converti e leggi file: PDF, OCR, fatture, targhe e immagini captcha.\n\nOgni 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/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nStampa HTML o una pagina web in PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` o `png`. |\n| `html` | `String` | no |  | L'HTML da stampare. Invia `html` oppure `url`. |\n| `url` | `String` | no |  | L'indirizzo di una pagina web da stampare. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` o `Letter`. |\n| `width` | `Number` | no |  | PDF: la larghezza della pagina. Immagine: la larghezza del browser, in pixel. |\n| `height` | `Number` | no |  | PDF: l'altezza della pagina. Immagine: l'altezza del browser, in pixel. |\n| `dpi` | `Number` | no | `96` | Solo PDF. |\n| `margin` | `String` | no | `0 0 0 0` | Solo PDF: `top right bottom left` in millimetri. |\n| `viewport` | `String` | no |  | `xs` (telefono), `sm` (tablet), `md` (schermo medio) o `lg` (schermo grande). |\n| `quality` | `Number` | no |  | La qualità di un'immagine. |\n| `orientation` | `String` | no | `portrait` | `portrait` o `landscape`. |\n| `grayscale` | `Boolean` | no |  | Solo PDF: un documento in scala di grigi. |\n| `lowquality` | `Boolean` | no |  | Solo PDF: un documento più leggero, di qualità inferiore. |\n| `zoom` | `Number` | no | `100` | Lo zoom in percentuale. |\n\nReturns: `Binary` Il file stesso (dati binari).\n\nL'HTML o la pagina web possono pesare fino a 512 kB.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nConverte un file in PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` o `png`. |\n| `data` | `String` | yes |  | Il file come data URI, per esempio `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` Il file convertito (dati binari).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nLegge il testo di un file JPG, PNG o PDF.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Il file come data URI: JPG, PNG o PDF. |\n| `language` | `String` | no | `eng` | La lingua del testo di un'immagine, per esempio `eng`, oppure `slk+eng` per due lingue. I file PDF la ignorano. |\n\nReturns: `Object` Un oggetto con il testo in `text`.\n\nLe immagini vengono lette con il motore Tesseract 5, e il testo mantiene l'impaginazione dell'immagine. Il testo di un file PDF viene letto dal file stesso. Il file può pesare fino a 5 MB.\n\nI codici delle lingue sono nell'[elenco delle lingue di Tesseract](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Risposta\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nLegge i dati di una fattura da un file PDF, JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La fattura come data URI: PDF, JPG o PNG. |\n\nReturns: `Object` Il fornitore, il cliente e gli importi della fattura.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Risposta\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nLegge una targa da una foto JPG o PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | La foto come data URI: JPG o PNG. |\n| `code` | `String` | no | `eu` | Il tipo di targhe: `eu` o `us`. |\n\nReturns: `Array` Un array delle targhe trovate, ognuna con la sua affidabilità in percentuale.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Risposta\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nDisegna un'immagine captcha con il testo che invii.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Il testo dell'immagine. |\n| `width` | `Number` | no | `200` | La larghezza in pixel. |\n| `height` | `Number` | no | `80` | L'altezza in pixel. |\n| `dark` | `Boolean` | no | `false` | Un'immagine scura. |\n\nReturns: `String` Un'immagine JPEG come data URI.\n\nConserva il testo del captcha sul tuo server e confrontalo con quello che scrive l'utente.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Risposta\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFL52IM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/reference/documents-and-images/","project":"total-api","version":"2026","section":"reference","language":"sk","title":"Dokumenty a obrázky","summary":"Tlač, prevod a čítanie súborov: PDF, OCR, faktúry, evidenčné čísla a captcha obrázky.","markdown":"---\ntitle: \"Dokumenty a obrázky\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/reference/documents-and-images/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Dokumenty a obrázky\n\n> Tlač, prevod a čítanie súborov: PDF, OCR, faktúry, evidenčné čísla a captcha obrázky.\n\nKaždá služba je požiadavka `POST` s tvojím tokenom. Pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/) a [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/print/\n\nType: `rest`\n\nVytlačí HTML alebo webovú stránku do PDF, JPG alebo PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `type` | `String` | yes |  | `pdf`, `jpg` alebo `png`. |\n| `html` | `String` | no |  | HTML na tlač. Pošli `html` alebo `url`. |\n| `url` | `String` | no |  | Adresa webovej stránky na tlač. |\n| `page` | `String` | no | `A4` | `A3`, `A4`, `A5` alebo `Letter`. |\n| `width` | `Number` | no |  | PDF: šírka stránky. Obrázok: šírka prehliadača v pixeloch. |\n| `height` | `Number` | no |  | PDF: výška stránky. Obrázok: výška prehliadača v pixeloch. |\n| `dpi` | `Number` | no | `96` | Len pre PDF. |\n| `margin` | `String` | no | `0 0 0 0` | Len pre PDF: `top right bottom left` v milimetroch. |\n| `viewport` | `String` | no |  | `xs` (telefón), `sm` (tablet), `md` (stredná obrazovka) alebo `lg` (veľká obrazovka). |\n| `quality` | `Number` | no |  | Kvalita obrázka. |\n| `orientation` | `String` | no | `portrait` | `portrait` alebo `landscape`. |\n| `grayscale` | `Boolean` | no |  | Len pre PDF: dokument v odtieňoch sivej. |\n| `lowquality` | `Boolean` | no |  | Len pre PDF: menší dokument v nižšej kvalite. |\n| `zoom` | `Number` | no | `100` | Priblíženie v percentách. |\n\nReturns: `Binary` Priamo súbor (binárne dáta).\n\nHTML alebo webová stránka môže mať najviac 512 kB.\n\nExample: Total.js\n```js\nvar file = await API('TAPI', 'print', { type: 'pdf', html: '<h1>Invoice 2026-001</h1>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/print/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"type\": \"pdf\", \"html\": \"<h1>Invoice 2026-001</h1>\" }' \\\n\t-o invoice.pdf\n```\n\n### POST https://api.totaljs.com/convert/\n\nType: `rest`\n\nPrevedie súbor do PDF, JPG alebo PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `String` | yes |  | `pdf`, `jpg` alebo `png`. |\n| `data` | `String` | yes |  | Súbor ako data URI, napríklad `data:application/pdf;base64,JVBERi0x...` |\n\nReturns: `Binary` Prevedený súbor (binárne dáta).\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'convert', { to: 'jpg', data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/convert/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"to\": \"jpg\", \"data\": \"data:application/pdf;base64,JVBERi0x...\" }' \\\n\t-o page.jpg\n```\n\n### POST https://api.totaljs.com/ocr/\n\nType: `rest`\n\nPrečíta text zo súboru JPG, PNG alebo PDF.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Súbor ako data URI: JPG, PNG alebo PDF. |\n| `language` | `String` | no | `eng` | Jazyk textu na obrázku, napríklad `eng`, alebo `slk+eng` pre dva jazyky. Pri súboroch PDF sa ignoruje. |\n\nReturns: `Object` Objekt s textom v `text`.\n\nObrázky sa čítajú enginom Tesseract 5 a text si zachová rozloženie obrázka. Text súboru PDF sa číta priamo zo súboru. Súbor môže mať najviac 5 MB.\n\nKódy jazykov nájdeš v [zozname jazykov Tesseractu](https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html).\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'ocr', { data: 'data:image/png;base64,iVBORw0KGgo...', language: 'eng' }).promise();\nconsole.log(response.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/ocr/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/png;base64,iVBORw0KGgo...\", \"language\": \"eng\" }'\n```\n\nExample: Odpoveď\n```json\n{ \"text\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\" }\n```\n\n### POST https://api.totaljs.com/invoiceparser/\n\nType: `rest`\n\nPrečíta údaje faktúry zo súboru PDF, JPG alebo PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Faktúra ako data URI: PDF, JPG alebo PNG. |\n\nReturns: `Object` Dodávateľ, odberateľ a čísla faktúry.\n\nExample: Total.js\n```js\nvar invoice = await API('TAPI', 'invoiceparser', { data: 'data:application/pdf;base64,JVBERi0x...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/invoiceparser/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:application/pdf;base64,JVBERi0x...\" }'\n```\n\nExample: Odpoveď\n```json\n{\n\t\"supplier\": {\n\t\t\"name\": \"Example Supplies Ltd.\",\n\t\t\"address\": \"Main Street 1, 10000 Example City\",\n\t\t\"vatid\": \"CZ00000000\"\n\t},\n\t\"customer\": {\n\t\t\"name\": \"Demo Company Ltd.\",\n\t\t\"address\": \"Demo Street 2, 20000 Demo City\",\n\t\t\"vatid\": \"SK0000000000\"\n\t},\n\t\"date\": \"2026-07-17\",\n\t\"number\": \"2026-0042\",\n\t\"amount\": 120.5,\n\t\"total\": 145.81,\n\t\"currency\": \"EUR\",\n\t\"language\": null,\n\t\"tax\": 25.31\n}\n```\n\n### POST https://api.totaljs.com/platenumber/\n\nType: `rest`\n\nPrečíta evidenčné číslo vozidla z fotky JPG alebo PNG.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `data` | `String` | yes |  | Fotka ako data URI: JPG alebo PNG. |\n| `code` | `String` | no | `eu` | Druh tabuliek: `eu` alebo `us`. |\n\nReturns: `Array` Pole nájdených evidenčných čísel, každé s istotou v percentách.\n\nExample: Total.js\n```js\nvar plates = await API('TAPI', 'platenumber', { data: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/platenumber/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"data\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\" }'\n```\n\nExample: Odpoveď\n```json\n[\n\t{ \"value\": \"BB197FJ\", \"confidence\": 87.434 }\n]\n```\n\n### POST https://api.totaljs.com/captcha/\n\nType: `rest`\n\nNakreslí captcha obrázok s textom, ktorý pošleš.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Text obrázka. |\n| `width` | `Number` | no | `200` | Šírka v pixeloch. |\n| `height` | `Number` | no | `80` | Výška v pixeloch. |\n| `dark` | `Boolean` | no | `false` | Tmavý obrázok. |\n\nReturns: `String` Obrázok JPEG ako data URI.\n\nText captchy si nechaj na svojom serveri a porovnaj ho s tým, čo používateľ napíše.\n\nExample: Total.js\n```js\nvar image = await API('TAPI', 'captcha', { value: '123456' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/captcha/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"123456\" }'\n```\n\nExample: Odpoveď\n```text\ndata:image/jpeg;base64,/9j/4AAQSkZ...\n```\n","entries":[{"type":"rest","name":"POST /print/","signature":"POST https://api.totaljs.com/print/","since":"","deprecated":false},{"type":"rest","name":"POST /convert/","signature":"POST https://api.totaljs.com/convert/","since":"","deprecated":false},{"type":"rest","name":"POST /ocr/","signature":"POST https://api.totaljs.com/ocr/","since":"","deprecated":false},{"type":"rest","name":"POST /invoiceparser/","signature":"POST https://api.totaljs.com/invoiceparser/","since":"","deprecated":false},{"type":"rest","name":"POST /platenumber/","signature":"POST https://api.totaljs.com/platenumber/","since":"","deprecated":false},{"type":"rest","name":"POST /captcha/","signature":"POST https://api.totaljs.com/captcha/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f","url":"https://totaljs.es/docs/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"en","title":"Messages","summary":"Send emails and text messages, and store log messages.","markdown":"---\ntitle: Messages\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Messages\n\n> Send emails and text messages, and store log messages.\n\nEvery service is a `POST` request with your token. See [Call Total API from Total.js](../../guides/call-from-totaljs/) and [Call Total API over HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nSends an email.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | The email addresses of the recipients. |\n| `subject` | `String` | yes |  | The subject. |\n| `body` | `String` | yes |  | The message as HTML. |\n| `from` | `String` | no |  | The name of the sender (a name, not an email address). |\n| `cc` | `Array` | no |  | Email addresses for a copy. |\n| `bcc` | `Array` | no |  | Email addresses for a hidden copy. |\n| `reply` | `Array` | no |  | Email addresses for the answers. |\n| `priority` | `Number` | no | `3` | `1` high, `3` normal, `5` low. |\n| `confidential` | `Boolean` | no |  | Marks the email as confidential. |\n| `unsubscribe` | `String` | no |  | The address of a page to unsubscribe. |\n\nReturns: `Object` `{ \"success\": true }` when the email is sent.\n\nThe emails are sent from `noreply@totaljs.com`. A Total.js application can send all its emails through this service: see [Call Total API from Total.js](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Response\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nSends a text message.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | The name of the sender. |\n| `to` | `String` | yes |  | The phone number with its country code, for example `+421900000000`. |\n| `body` | `String` | yes |  | The message. |\n\nReturns: `Object` `{ \"success\": true }` when the message is sent.\n\nThe price of a message can vary.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Response\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nStores a log message in the Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | The name of the application, up to 40 characters. |\n| `message` | `String` | yes |  | The message, up to 500 characters. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` or `success`. |\n| `url` | `String` | no |  | An address, up to 100 characters. |\n| `reference` | `String` | no |  | A reference of your own, up to 50 characters. |\n| `data` | `String` | no |  | Data of your own as JSON text. |\n| `ua` | `String` | no |  | The user agent, up to 30 characters. |\n| `ip` | `String` | no |  | The IP address, up to 60 characters. |\n| `userid` | `String` | no |  | The id of the user, up to 25 characters. |\n| `username` | `String` | no |  | The name of the user, up to 50 characters. |\n\nReturns: `Object` The answer of the service.\n\nA request can have up to 50 kB. A Total.js application can send all its audit logs to this service: see [Call Total API from Total.js](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"de","title":"Nachrichten","summary":"E-Mails und SMS senden und Log-Meldungen speichern.","markdown":"---\ntitle: Nachrichten\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Nachrichten\n\n> E-Mails und SMS senden und Log-Meldungen speichern.\n\nJeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nSendet eine E-Mail.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | Die E-Mail-Adressen der Empfänger. |\n| `subject` | `String` | yes |  | Der Betreff. |\n| `body` | `String` | yes |  | Die Nachricht als HTML. |\n| `from` | `String` | no |  | Der Name des Absenders (ein Name, keine E-Mail-Adresse). |\n| `cc` | `Array` | no |  | E-Mail-Adressen für eine Kopie. |\n| `bcc` | `Array` | no |  | E-Mail-Adressen für eine Blindkopie. |\n| `reply` | `Array` | no |  | E-Mail-Adressen für die Antworten. |\n| `priority` | `Number` | no | `3` | `1` hoch, `3` normal, `5` niedrig. |\n| `confidential` | `Boolean` | no |  | Markiert die E-Mail als vertraulich. |\n| `unsubscribe` | `String` | no |  | Die Adresse einer Seite zum Abmelden. |\n\nReturns: `Object` `{ \"success\": true }`, wenn die E-Mail gesendet wurde.\n\nDie E-Mails werden von `noreply@totaljs.com` gesendet. Eine Total.js-Anwendung kann alle ihre E-Mails über diesen Dienst senden: Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Antwort\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nSendet eine SMS.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | Der Name des Absenders. |\n| `to` | `String` | yes |  | Die Telefonnummer mit Ländervorwahl, zum Beispiel `+421900000000`. |\n| `body` | `String` | yes |  | Die Nachricht. |\n\nReturns: `Object` `{ \"success\": true }`, wenn die Nachricht gesendet wurde.\n\nDer Preis einer Nachricht kann schwanken.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Antwort\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nSpeichert eine Log-Meldung in der Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | Der Name der Anwendung, bis zu 40 Zeichen. |\n| `message` | `String` | yes |  | Die Meldung, bis zu 500 Zeichen. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` oder `success`. |\n| `url` | `String` | no |  | Eine Adresse, bis zu 100 Zeichen. |\n| `reference` | `String` | no |  | Eine eigene Referenz, bis zu 50 Zeichen. |\n| `data` | `String` | no |  | Eigene Daten als JSON-Text. |\n| `ua` | `String` | no |  | Der User-Agent, bis zu 30 Zeichen. |\n| `ip` | `String` | no |  | Die IP-Adresse, bis zu 60 Zeichen. |\n| `userid` | `String` | no |  | Die ID des Benutzers, bis zu 25 Zeichen. |\n| `username` | `String` | no |  | Der Name des Benutzers, bis zu 50 Zeichen. |\n\nReturns: `Object` Die Antwort des Dienstes.\n\nEine Anfrage darf bis zu 50 kB groß sein. Eine Total.js-Anwendung kann alle ihre Audit-Logs an diesen Dienst senden: Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"es","title":"Mensajes","summary":"Envía correos y mensajes de texto, y guarda mensajes de registro.","markdown":"---\ntitle: Mensajes\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Mensajes\n\n> Envía correos y mensajes de texto, y guarda mensajes de registro.\n\nCada servicio es una petición `POST` con tu token. Consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/) y [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nEnvía un correo.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | Las direcciones de correo de los destinatarios. |\n| `subject` | `String` | yes |  | El asunto. |\n| `body` | `String` | yes |  | El mensaje en HTML. |\n| `from` | `String` | no |  | El nombre del remitente (un nombre, no una dirección de correo). |\n| `cc` | `Array` | no |  | Direcciones de correo que reciben una copia. |\n| `bcc` | `Array` | no |  | Direcciones de correo que reciben una copia oculta. |\n| `reply` | `Array` | no |  | Direcciones de correo para las respuestas. |\n| `priority` | `Number` | no | `3` | `1` alta, `3` normal, `5` baja. |\n| `confidential` | `Boolean` | no |  | Marca el correo como confidencial. |\n| `unsubscribe` | `String` | no |  | La dirección de una página para darse de baja. |\n\nReturns: `Object` `{ \"success\": true }` cuando el correo se ha enviado.\n\nLos correos se envían desde `noreply@totaljs.com`. Una aplicación Total.js puede enviar todos sus correos a través de este servicio: consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Respuesta\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nEnvía un mensaje de texto.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | El nombre del remitente. |\n| `to` | `String` | yes |  | El número de teléfono con su prefijo de país, por ejemplo `+421900000000`. |\n| `body` | `String` | yes |  | El mensaje. |\n\nReturns: `Object` `{ \"success\": true }` cuando el mensaje se ha enviado.\n\nEl precio de un mensaje puede variar.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Respuesta\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nGuarda un mensaje de registro en la Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | El nombre de la aplicación, hasta 40 caracteres. |\n| `message` | `String` | yes |  | El mensaje, hasta 500 caracteres. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` o `success`. |\n| `url` | `String` | no |  | Una dirección, hasta 100 caracteres. |\n| `reference` | `String` | no |  | Una referencia propia, hasta 50 caracteres. |\n| `data` | `String` | no |  | Datos propios como texto JSON. |\n| `ua` | `String` | no |  | El user agent, hasta 30 caracteres. |\n| `ip` | `String` | no |  | La dirección IP, hasta 60 caracteres. |\n| `userid` | `String` | no |  | El id del usuario, hasta 25 caracteres. |\n| `username` | `String` | no |  | El nombre del usuario, hasta 50 caracteres. |\n\nReturns: `Object` La respuesta del servicio.\n\nUna petición puede ocupar hasta 50 kB. Una aplicación Total.js puede enviar todos sus registros de auditoría a este servicio: consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"fr","title":"Messages","summary":"Envoie des e-mails et des SMS, et enregistre des messages de journal.","markdown":"---\ntitle: Messages\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Messages\n\n> Envoie des e-mails et des SMS, et enregistre des messages de journal.\n\nChaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nEnvoie un e-mail.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | Les adresses e-mail des destinataires. |\n| `subject` | `String` | yes |  | L’objet. |\n| `body` | `String` | yes |  | Le message en HTML. |\n| `from` | `String` | no |  | Le nom de l’expéditeur (un nom, pas une adresse e-mail). |\n| `cc` | `Array` | no |  | Des adresses e-mail pour une copie. |\n| `bcc` | `Array` | no |  | Des adresses e-mail pour une copie cachée. |\n| `reply` | `Array` | no |  | Des adresses e-mail pour les réponses. |\n| `priority` | `Number` | no | `3` | `1` haute, `3` normale, `5` basse. |\n| `confidential` | `Boolean` | no |  | Marque l’e-mail comme confidentiel. |\n| `unsubscribe` | `String` | no |  | L’adresse d’une page de désinscription. |\n\nReturns: `Object` `{ \"success\": true }` quand l’e-mail est envoyé.\n\nLes e-mails sont envoyés depuis `noreply@totaljs.com`. Une application Total.js peut envoyer tous ses e-mails via ce service : consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Réponse\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nEnvoie un SMS.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | Le nom de l’expéditeur. |\n| `to` | `String` | yes |  | Le numéro de téléphone avec son indicatif pays, par exemple `+421900000000`. |\n| `body` | `String` | yes |  | Le message. |\n\nReturns: `Object` `{ \"success\": true }` quand le message est envoyé.\n\nLe prix d’un message peut varier.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Réponse\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nEnregistre un message de journal dans la Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | Le nom de l’application, jusqu’à 40 caractères. |\n| `message` | `String` | yes |  | Le message, jusqu’à 500 caractères. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` ou `success`. |\n| `url` | `String` | no |  | Une adresse, jusqu’à 100 caractères. |\n| `reference` | `String` | no |  | Une référence à toi, jusqu’à 50 caractères. |\n| `data` | `String` | no |  | Des données à toi sous forme de texte JSON. |\n| `ua` | `String` | no |  | Le user agent, jusqu’à 30 caractères. |\n| `ip` | `String` | no |  | L’adresse IP, jusqu’à 60 caractères. |\n| `userid` | `String` | no |  | L’identifiant de l’utilisateur, jusqu’à 25 caractères. |\n| `username` | `String` | no |  | Le nom de l’utilisateur, jusqu’à 50 caractères. |\n\nReturns: `Object` La réponse du service.\n\nUne requête peut faire jusqu’à 50 Ko. Une application Total.js peut envoyer tous ses journaux d’audit à ce service : consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"it","title":"Messaggi","summary":"Invia email e SMS e salva messaggi di log.","markdown":"---\ntitle: Messaggi\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Messaggi\n\n> Invia email e SMS e salva messaggi di log.\n\nOgni 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/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nInvia un'email.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | Gli indirizzi email dei destinatari. |\n| `subject` | `String` | yes |  | L'oggetto. |\n| `body` | `String` | yes |  | Il messaggio in HTML. |\n| `from` | `String` | no |  | Il nome del mittente (un nome, non un indirizzo email). |\n| `cc` | `Array` | no |  | Indirizzi email per una copia. |\n| `bcc` | `Array` | no |  | Indirizzi email per una copia nascosta. |\n| `reply` | `Array` | no |  | Indirizzi email per le risposte. |\n| `priority` | `Number` | no | `3` | `1` alta, `3` normale, `5` bassa. |\n| `confidential` | `Boolean` | no |  | Segna l'email come riservata. |\n| `unsubscribe` | `String` | no |  | L'indirizzo di una pagina per annullare l'iscrizione. |\n\nReturns: `Object` `{ \"success\": true }` quando l'email è stata inviata.\n\nLe email vengono inviate da `noreply@totaljs.com`. Un'applicazione Total.js può inviare tutte le sue email tramite questo servizio: leggi [Chiamare Total API da Total.js](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Risposta\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nInvia un SMS.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | Il nome del mittente. |\n| `to` | `String` | yes |  | Il numero di telefono con il prefisso internazionale, per esempio `+421900000000`. |\n| `body` | `String` | yes |  | Il messaggio. |\n\nReturns: `Object` `{ \"success\": true }` quando il messaggio è stato inviato.\n\nIl prezzo di un messaggio può variare.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Risposta\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nSalva un messaggio di log nella Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | Il nome dell'applicazione, fino a 40 caratteri. |\n| `message` | `String` | yes |  | Il messaggio, fino a 500 caratteri. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` o `success`. |\n| `url` | `String` | no |  | Un indirizzo, fino a 100 caratteri. |\n| `reference` | `String` | no |  | Un tuo riferimento, fino a 50 caratteri. |\n| `data` | `String` | no |  | Dati tuoi come testo JSON. |\n| `ua` | `String` | no |  | Lo user agent, fino a 30 caratteri. |\n| `ip` | `String` | no |  | L'indirizzo IP, fino a 60 caratteri. |\n| `userid` | `String` | no |  | L'id dell'utente, fino a 25 caratteri. |\n| `username` | `String` | no |  | Il nome dell'utente, fino a 50 caratteri. |\n\nReturns: `Object` La risposta del servizio.\n\nUna richiesta può pesare fino a 50 kB. Un'applicazione Total.js può inviare tutti i suoi log di audit a questo servizio: leggi [Chiamare Total API da Total.js](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFLI2WM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/reference/messages/","project":"total-api","version":"2026","section":"reference","language":"sk","title":"Správy","summary":"Posielaj e-maily a textové správy a ukladaj záznamy do logu.","markdown":"---\ntitle: \"Správy\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/reference/messages/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Správy\n\n> Posielaj e-maily a textové správy a ukladaj záznamy do logu.\n\nKaždá služba je požiadavka `POST` s tvojím tokenom. Pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/) a [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/mail/\n\nType: `rest`\n\nPošle e-mail.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `to` | `Array` | yes |  | E-mailové adresy príjemcov. |\n| `subject` | `String` | yes |  | Predmet. |\n| `body` | `String` | yes |  | Správa ako HTML. |\n| `from` | `String` | no |  | Meno odosielateľa (meno, nie e-mailová adresa). |\n| `cc` | `Array` | no |  | E-mailové adresy na kópiu. |\n| `bcc` | `Array` | no |  | E-mailové adresy na skrytú kópiu. |\n| `reply` | `Array` | no |  | E-mailové adresy na odpovede. |\n| `priority` | `Number` | no | `3` | `1` vysoká, `3` normálna, `5` nízka. |\n| `confidential` | `Boolean` | no |  | Označí e-mail ako dôverný. |\n| `unsubscribe` | `String` | no |  | Adresa stránky na odhlásenie z odberu. |\n\nReturns: `Object` `{ \"success\": true }`, keď sa e-mail odošle.\n\nE-maily sa posielajú z `noreply@totaljs.com`. Aplikácia Total.js môže cez túto službu posielať všetky svoje e-maily: pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/#send-the-emails-of-the-app-through-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'mail', { from: 'Demo Shop', to: ['jane@example.com'], subject: 'Your order', body: '<p>Thank you for your order.</p>' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/mail/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": [\"jane@example.com\"], \"subject\": \"Your order\", \"body\": \"<p>Thank you for your order.</p>\" }'\n```\n\nExample: Odpoveď\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/sms/\n\nType: `rest`\n\nPošle textovú správu.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `from` | `String` | yes |  | Meno odosielateľa. |\n| `to` | `String` | yes |  | Telefónne číslo s predvoľbou krajiny, napríklad `+421900000000`. |\n| `body` | `String` | yes |  | Správa. |\n\nReturns: `Object` `{ \"success\": true }`, keď sa správa odošle.\n\nCena správy sa môže líšiť.\n\nExample: Total.js\n```js\nawait API('TAPI', 'sms', { from: 'Demo Shop', to: '+421900000000', body: 'Your order is on its way.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/sms/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"from\": \"Demo Shop\", \"to\": \"+421900000000\", \"body\": \"Your order is on its way.\" }'\n```\n\nExample: Odpoveď\n```json\n{ \"success\": true }\n```\n\n### POST https://api.totaljs.com/logger/\n\nType: `rest`\n\nUloží záznam do logu v Total.js Platform.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `app` | `String` | yes |  | Názov aplikácie, najviac 40 znakov. |\n| `message` | `String` | yes |  | Správa, najviac 500 znakov. |\n| `type` | `String` | no | `info` | `info`, `warning`, `error` alebo `success`. |\n| `url` | `String` | no |  | Adresa, najviac 100 znakov. |\n| `reference` | `String` | no |  | Tvoj vlastný odkaz, najviac 50 znakov. |\n| `data` | `String` | no |  | Tvoje vlastné dáta ako text JSON. |\n| `ua` | `String` | no |  | User agent, najviac 30 znakov. |\n| `ip` | `String` | no |  | IP adresa, najviac 60 znakov. |\n| `userid` | `String` | no |  | Id používateľa, najviac 25 znakov. |\n| `username` | `String` | no |  | Meno používateľa, najviac 50 znakov. |\n\nReturns: `Object` Odpoveď služby.\n\nPožiadavka môže mať najviac 50 kB. Aplikácia Total.js môže do tejto služby posielať všetky svoje auditné záznamy: pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/#send-the-audit-logs-to-total-api).\n\nExample: Total.js\n```js\nawait API('TAPI', 'logger', { app: 'Demo Shop', type: 'info', message: 'The daily import has finished.' }).promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/logger/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"app\": \"Demo Shop\", \"type\": \"info\", \"message\": \"The daily import has finished.\" }'\n```\n","entries":[{"type":"rest","name":"POST /mail/","signature":"POST https://api.totaljs.com/mail/","since":"","deprecated":false},{"type":"rest","name":"POST /sms/","signature":"POST https://api.totaljs.com/sms/","since":"","deprecated":false},{"type":"rest","name":"POST /logger/","signature":"POST https://api.totaljs.com/logger/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f","url":"https://totaljs.es/docs/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"en","title":"Data","summary":"Look up places of IP addresses, exchange rates, VAT numbers and the weather.","markdown":"---\ntitle: Data\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Data\n\n> Look up places of IP addresses, exchange rates, VAT numbers and the weather.\n\nEvery service is a `POST` request with your token. See [Call Total API from Total.js](../../guides/call-from-totaljs/) and [Call Total API over HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nFinds the place of an IP address.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | The IP address. |\n\nReturns: `Object` The country, region, city, coordinates, provider and time zone of the address.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Response\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nReads the exchange rates of a currency on a day.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | The base currency. |\n| `date` | `String` | no | `today` | The day, for example `2026-11-19`. |\n\nReturns: `Object` An object with one rate for each currency.\n\nThe answer has more currencies than this example shows.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Response\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nChecks whether a company is a VAT payer in the European Union.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | The VAT ID, for example `SK2120417167`. |\n\nReturns: `Object` Whether the company pays VAT, the VAT rate of its country, its name and its address.\n\nIt works only with VAT IDs of the European Union. `is` says whether the company is a VAT payer, and `vat` is the VAT rate of its country.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Response\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nReads the current weather of a place.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | The place, for example `Bratislava`. |\n\nReturns: `Object` The temperature, wind, humidity, pressure, clouds, UV index and sky.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Response\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f-de","url":"https://totaljs.es/docs/de/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"de","title":"Daten","summary":"Finde den Ort von IP-Adressen und schlag Wechselkurse, USt-IdNrn. und das Wetter nach.","markdown":"---\ntitle: Daten\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Daten\n\n> Finde den Ort von IP-Adressen und schlag Wechselkurse, USt-IdNrn. und das Wetter nach.\n\nJeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nFindet den Ort einer IP-Adresse.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Die IP-Adresse. |\n\nReturns: `Object` Land, Region, Stadt, Koordinaten, Anbieter und Zeitzone der Adresse.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Antwort\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nLiest die Wechselkurse einer Währung an einem Tag.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | Die Basiswährung. |\n| `date` | `String` | no | `today` | Der Tag, zum Beispiel `2026-11-19`. |\n\nReturns: `Object` Ein Objekt mit einem Kurs für jede Währung.\n\nDie Antwort enthält mehr Währungen, als dieses Beispiel zeigt.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Antwort\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nPrüft, ob eine Firma in der Europäischen Union umsatzsteuerpflichtig ist.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Die USt-IdNr., zum Beispiel `SK2120417167`. |\n\nReturns: `Object` Ob die Firma Umsatzsteuer zahlt, den Umsatzsteuersatz ihres Landes, ihren Namen und ihre Adresse.\n\nDer Dienst funktioniert nur mit USt-IdNrn. aus der Europäischen Union. `is` sagt, ob die Firma umsatzsteuerpflichtig ist, und `vat` ist der Umsatzsteuersatz ihres Landes.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Antwort\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nLiest das aktuelle Wetter an einem Ort.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Der Ort, zum Beispiel `Bratislava`. |\n\nReturns: `Object` Temperatur, Wind, Luftfeuchtigkeit, Luftdruck, Bewölkung, UV-Index und Himmel.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Antwort\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f-es","url":"https://totaljs.es/docs/es/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"es","title":"Datos","summary":"Consulta la ubicación de direcciones IP, tipos de cambio, números de IVA y el tiempo.","markdown":"---\ntitle: Datos\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Datos\n\n> Consulta la ubicación de direcciones IP, tipos de cambio, números de IVA y el tiempo.\n\nCada servicio es una petición `POST` con tu token. Consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/) y [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nEncuentra la ubicación de una dirección IP.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | La dirección IP. |\n\nReturns: `Object` El país, la región, la ciudad, las coordenadas, el proveedor y la zona horaria de la dirección.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Respuesta\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nLee los tipos de cambio de una moneda en un día.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | La moneda base. |\n| `date` | `String` | no | `today` | El día, por ejemplo `2026-11-19`. |\n\nReturns: `Object` Un objeto con un tipo de cambio para cada moneda.\n\nLa respuesta tiene más monedas de las que muestra este ejemplo.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Respuesta\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nComprueba si una empresa está registrada a efectos de IVA en la Unión Europea.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | El número de IVA, por ejemplo `SK2120417167`. |\n\nReturns: `Object` Si la empresa paga IVA, el tipo de IVA de su país, su nombre y su dirección.\n\nSolo funciona con números de IVA de la Unión Europea. `is` indica si la empresa está registrada a efectos de IVA, y `vat` es el tipo de IVA de su país.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Respuesta\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nLee el tiempo actual de un lugar.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | El lugar, por ejemplo `Bratislava`. |\n\nReturns: `Object` La temperatura, el viento, la humedad, la presión, las nubes, el índice UV y el estado del cielo.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Respuesta\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"fr","title":"Données","summary":"Trouve le lieu d’une adresse IP, les taux de change, les numéros de TVA et la météo.","markdown":"---\ntitle: \"Données\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Données\n\n> Trouve le lieu d’une adresse IP, les taux de change, les numéros de TVA et la météo.\n\nChaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nTrouve le lieu d’une adresse IP.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | L’adresse IP. |\n\nReturns: `Object` Le pays, la région, la ville, les coordonnées, le fournisseur d’accès et le fuseau horaire de l’adresse.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Réponse\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nLit les taux de change d’une devise pour un jour donné.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | La devise de base. |\n| `date` | `String` | no | `today` | Le jour, par exemple `2026-11-19`. |\n\nReturns: `Object` Un objet avec un taux pour chaque devise.\n\nLa réponse contient plus de devises que cet exemple n’en montre.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Réponse\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nVérifie si une entreprise est assujettie à la TVA dans l’Union européenne.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Le numéro de TVA, par exemple `SK2120417167`. |\n\nReturns: `Object` Si l’entreprise paie la TVA, le taux de TVA de son pays, son nom et son adresse.\n\nCela fonctionne seulement avec les numéros de TVA de l’Union européenne. `is` indique si l’entreprise est assujettie à la TVA, et `vat` est le taux de TVA de son pays.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Réponse\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nLit la météo actuelle d’un lieu.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Le lieu, par exemple `Bratislava`. |\n\nReturns: `Object` La température, le vent, l’humidité, la pression, les nuages, l’indice UV et l’état du ciel.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Réponse\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f-it","url":"https://totaljs.es/docs/it/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"it","title":"Dati","summary":"Trova il luogo di indirizzi IP, tassi di cambio, partite IVA e meteo.","markdown":"---\ntitle: Dati\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Dati\n\n> Trova il luogo di indirizzi IP, tassi di cambio, partite IVA e meteo.\n\nOgni 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/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nTrova il luogo di un indirizzo IP.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | L'indirizzo IP. |\n\nReturns: `Object` Paese, regione, città, coordinate, provider e fuso orario dell'indirizzo.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Risposta\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nLegge i tassi di cambio di una valuta in un giorno.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | La valuta di base. |\n| `date` | `String` | no | `today` | Il giorno, per esempio `2026-11-19`. |\n\nReturns: `Object` Un oggetto con un tasso per ogni valuta.\n\nLa risposta contiene più valute di quelle che mostra questo esempio.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Risposta\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nVerifica se un'azienda è soggetta a IVA nell'Unione Europea.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | La partita IVA, per esempio `SK2120417167`. |\n\nReturns: `Object` Se l'azienda è soggetta a IVA, l'aliquota IVA del suo paese, il suo nome e il suo indirizzo.\n\nFunziona solo con partite IVA dell'Unione Europea. `is` indica se l'azienda è soggetta a IVA, e `vat` è l'aliquota IVA del suo paese.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Risposta\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nLegge il meteo attuale di un luogo.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Il luogo, per esempio `Bratislava`. |\n\nReturns: `Object` Temperatura, vento, umidità, pressione, nuvole, indice UV e cielo.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Risposta\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKv28M61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/reference/data/","project":"total-api","version":"2026","section":"reference","language":"sk","title":"Dáta","summary":"Zisti polohu IP adries, výmenné kurzy, IČ DPH a počasie.","markdown":"---\ntitle: \"Dáta\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/reference/data/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Dáta\n\n> Zisti polohu IP adries, výmenné kurzy, IČ DPH a počasie.\n\nKaždá služba je požiadavka `POST` s tvojím tokenom. Pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/) a [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/geoip/\n\nType: `rest`\n\nZistí polohu IP adresy.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | IP adresa. |\n\nReturns: `Object` Krajina, región, mesto, súradnice, poskytovateľ a časové pásmo adresy.\n\nExample: Total.js\n```js\nvar place = await API('TAPI', 'geoip', '78.98.116.204').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/geoip/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"78.98.116.204\" }'\n```\n\nExample: Odpoveď\n```json\n{\n\t\"ip\": \"78.98.116.204\",\n\t\"isp\": \"Slovak Telekom, a.s.\",\n\t\"country\": \"Slovakia\",\n\t\"country_code\": \"SK\",\n\t\"region\": \"Banska Bystrica\",\n\t\"region_code\": \"BC\",\n\t\"city\": \"Banská Bystrica\",\n\t\"zip\": \"974 01\",\n\t\"continent\": \"Europe\",\n\t\"continent_code\": \"EU\",\n\t\"lat\": 48.804,\n\t\"lng\": 19.1363,\n\t\"timezone\": \"Europe/Bratislava\"\n}\n```\n\n### POST https://api.totaljs.com/exchangerates/\n\nType: `rest`\n\nNačíta výmenné kurzy meny za daný deň.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `currency` | `String` | no | `EUR` | Základná mena. |\n| `date` | `String` | no | `today` | Deň, napríklad `2026-11-19`. |\n\nReturns: `Object` Objekt s jedným kurzom pre každú menu.\n\nOdpoveď obsahuje viac mien, než ukazuje tento príklad.\n\nExample: Total.js\n```js\nvar rates = await API('TAPI', 'exchangerates', { currency: 'EUR', date: '2026-11-19' }).promise();\nconsole.log(rates.USD);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/exchangerates/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"currency\": \"EUR\", \"date\": \"2026-11-19\" }'\n```\n\nExample: Odpoveď\n```json\n{\n\t\"USD\": 1.2109,\n\t\"GBP\": 0.9,\n\t\"CHF\": 1.0764,\n\t\"CZK\": 26.239,\n\t\"PLN\": 4.4246,\n\t\"JPY\": 126.05\n}\n```\n\n### POST https://api.totaljs.com/checkvat/\n\nType: `rest`\n\nOverí, či je firma platiteľom DPH v Európskej únii.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | IČ DPH, napríklad `SK2120417167`. |\n\nReturns: `Object` Či firma platí DPH, sadzba DPH v jej krajine, jej názov a adresa.\n\nFunguje len s IČ DPH z Európskej únie. `is` hovorí, či je firma platiteľom DPH, a `vat` je sadzba DPH v jej krajine.\n\nExample: Total.js\n```js\nvar company = await API('TAPI', 'checkvat', 'SK2120417167').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/checkvat/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"SK2120417167\" }'\n```\n\nExample: Odpoveď\n```json\n{\n\t\"is\": true,\n\t\"vat\": 20,\n\t\"name\": \"Total Avengers s. r. o.\",\n\t\"address\": \"Viestova 6784/28\\n97401 Banská Bystrica\\nSlovensko\"\n}\n```\n\n### POST https://api.totaljs.com/weather/\n\nType: `rest`\n\nNačíta aktuálne počasie na danom mieste.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Miesto, napríklad `Bratislava`. |\n\nReturns: `Object` Teplota, vietor, vlhkosť, tlak, oblačnosť, UV index a obloha.\n\nExample: Total.js\n```js\nvar weather = await API('TAPI', 'weather', 'Bratislava').promise();\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/weather/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"Bratislava\" }'\n```\n\nExample: Odpoveď\n```json\n{\n\t\"name\": \"Bratislava\",\n\t\"temperature\": 22,\n\t\"wind\": 20.2,\n\t\"humidity\": 65,\n\t\"pressure\": 1018,\n\t\"cloud\": 25,\n\t\"uv\": 6,\n\t\"sky\": \"Partly cloudy\"\n}\n```\n","entries":[{"type":"rest","name":"POST /geoip/","signature":"POST https://api.totaljs.com/geoip/","since":"","deprecated":false},{"type":"rest","name":"POST /exchangerates/","signature":"POST https://api.totaljs.com/exchangerates/","since":"","deprecated":false},{"type":"rest","name":"POST /checkvat/","signature":"POST https://api.totaljs.com/checkvat/","since":"","deprecated":false},{"type":"rest","name":"POST /weather/","signature":"POST https://api.totaljs.com/weather/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f","url":"https://totaljs.es/docs/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"en","title":"AI","summary":"Ask ChatGPT.","markdown":"---\ntitle: AI\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# AI\n\n> Ask ChatGPT.\n\nEvery service is a `POST` request with your token. See [Call Total API from Total.js](../../guides/call-from-totaljs/) and [Call Total API over HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nAsks ChatGPT a question.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | The question. |\n| `output` | `String` | no | `text` | `text` or `image`. |\n| `size` | `String` | no |  | The size of an image: `small`, `medium` or `large`. Only with `output: image`. |\n\nReturns: `Object` An object with the answer in `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Response\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f-de","url":"https://totaljs.es/docs/de/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"de","title":"KI","summary":"Frag ChatGPT.","markdown":"---\ntitle: KI\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# KI\n\n> Frag ChatGPT.\n\nJeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nStellt ChatGPT eine Frage.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Die Frage. |\n| `output` | `String` | no | `text` | `text` oder `image`. |\n| `size` | `String` | no |  | Die Größe eines Bildes: `small`, `medium` oder `large`. Nur mit `output: image`. |\n\nReturns: `Object` Ein Objekt mit der Antwort in `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Antwort\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f-es","url":"https://totaljs.es/docs/es/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"es","title":"IA","summary":"Pregunta a ChatGPT.","markdown":"---\ntitle: IA\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# IA\n\n> Pregunta a ChatGPT.\n\nCada servicio es una petición `POST` con tu token. Consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/) y [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nHace una pregunta a ChatGPT.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | La pregunta. |\n| `output` | `String` | no | `text` | `text` o `image`. |\n| `size` | `String` | no |  | El tamaño de una imagen: `small`, `medium` o `large`. Solo con `output: image`. |\n\nReturns: `Object` Un objeto con la respuesta en `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Respuesta\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"fr","title":"IA","summary":"Interroge ChatGPT.","markdown":"---\ntitle: IA\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# IA\n\n> Interroge ChatGPT.\n\nChaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nPose une question à ChatGPT.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | La question. |\n| `output` | `String` | no | `text` | `text` ou `image`. |\n| `size` | `String` | no |  | La taille d’une image : `small`, `medium` ou `large`. Seulement avec `output: image`. |\n\nReturns: `Object` Un objet avec la réponse dans `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Réponse\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f-it","url":"https://totaljs.es/docs/it/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"it","title":"AI","summary":"Fai una domanda a ChatGPT.","markdown":"---\ntitle: AI\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# AI\n\n> Fai una domanda a ChatGPT.\n\nOgni 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/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nFa una domanda a ChatGPT.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | La domanda. |\n| `output` | `String` | no | `text` | `text` o `image`. |\n| `size` | `String` | no |  | La dimensione di un'immagine: `small`, `medium` o `large`. Solo con `output: image`. |\n\nReturns: `Object` Un oggetto con la risposta in `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Risposta\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKr24M61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/reference/ai/","project":"total-api","version":"2026","section":"reference","language":"sk","title":"AI","summary":"Opýtaj sa ChatGPT.","markdown":"---\ntitle: AI\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/reference/ai/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# AI\n\n> Opýtaj sa ChatGPT.\n\nKaždá služba je požiadavka `POST` s tvojím tokenom. Pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/) a [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/chatgpt/\n\nType: `rest`\n\nPoloží otázku ChatGPT.\n\n| Parameter | Type | Required | Default | Description |\n| --- | --- | --- | --- | --- |\n| `value` | `String` | yes |  | Otázka. |\n| `output` | `String` | no | `text` | `text` alebo `image`. |\n| `size` | `String` | no |  | Veľkosť obrázka: `small`, `medium` alebo `large`. Len s `output: image`. |\n\nReturns: `Object` Objekt s odpoveďou v `text`.\n\nExample: Total.js\n```js\nvar answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();\nconsole.log(answer.text);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/chatgpt/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\" \\\n\t-d '{ \"value\": \"What is Total.js Platform?\" }'\n```\n\nExample: Odpoveď\n```json\n{ \"text\": \"Total.js Platform is a web development platform for Node.js...\" }\n```\n","entries":[{"type":"rest","name":"POST /chatgpt/","signature":"POST https://api.totaljs.com/chatgpt/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f","url":"https://totaljs.es/docs/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"en","title":"Account","summary":"Check the credits of your token.","markdown":"---\ntitle: Account\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Account\n\n> Check the credits of your token.\n\nEvery service is a `POST` request with your token. See [Call Total API from Total.js](../../guides/call-from-totaljs/) and [Call Total API over HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nReturns the credits that remain on your token.\n\nReturns: `Object` An object with the credits in `credits`.\n\nIt is free.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Response\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f-de","url":"https://totaljs.es/docs/de/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"de","title":"Konto","summary":"Prüfe das Guthaben deines Tokens.","markdown":"---\ntitle: Konto\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Konto\n\n> Prüfe das Guthaben deines Tokens.\n\nJeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nGibt das Guthaben zurück, das auf deinem Token übrig ist.\n\nReturns: `Object` Ein Objekt mit dem Guthaben in `credits`.\n\nDer Dienst ist kostenlos.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Antwort\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f-es","url":"https://totaljs.es/docs/es/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"es","title":"Cuenta","summary":"Revisa los créditos de tu token.","markdown":"---\ntitle: Cuenta\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Cuenta\n\n> Revisa los créditos de tu token.\n\nCada servicio es una petición `POST` con tu token. Consulta [Llama a Total API desde Total.js](../../guides/call-from-totaljs/) y [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nDevuelve los créditos que le quedan a tu token.\n\nReturns: `Object` Un objeto con los créditos en `credits`.\n\nEs gratis.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Respuesta\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"fr","title":"Compte","summary":"Vérifie les crédits de ton token.","markdown":"---\ntitle: Compte\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Compte\n\n> Vérifie les crédits de ton token.\n\nChaque service est une requête `POST` avec ton token. Consulte [Appeler Total API depuis Total.js](../../guides/call-from-totaljs/) et [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nRenvoie les crédits qui restent sur ton token.\n\nReturns: `Object` Un objet avec les crédits dans `credits`.\n\nIl est gratuit.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Réponse\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f-it","url":"https://totaljs.es/docs/it/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"it","title":"Account","summary":"Controlla i crediti del tuo token.","markdown":"---\ntitle: Account\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Account\n\n> Controlla i crediti del tuo token.\n\nOgni 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/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nRestituisce i crediti rimasti sul tuo token.\n\nReturns: `Object` Un oggetto con i crediti in `credits`.\n\nÈ gratuito.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Risposta\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKm20M61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/reference/account/","project":"total-api","version":"2026","section":"reference","language":"sk","title":"Účet","summary":"Skontroluj kredity svojho tokenu.","markdown":"---\ntitle: \"Účet\"\nproject: Total API\nversion: 2026\nsection: reference\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/reference/account/\nupdated: 2026-11-20T06:51:47.968Z\n---\n\n# Účet\n\n> Skontroluj kredity svojho tokenu.\n\nKaždá služba je požiadavka `POST` s tvojím tokenom. Pozri si [Volanie Total API z Total.js](../../guides/call-from-totaljs/) a [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## API\n\n### POST https://api.totaljs.com/check/\n\nType: `rest`\n\nVráti kredity, ktoré ti na tokene zostávajú.\n\nReturns: `Object` Objekt s kreditmi v `credits`.\n\nJe zadarmo.\n\nExample: Total.js\n```js\nvar response = await API('TAPI', 'check').promise();\nconsole.log(response.credits);\n```\n\nExample: REST\n```bash\ncurl -X POST https://api.totaljs.com/check/ \\\n\t-H \"Content-Type: application/json\" \\\n\t-H \"X-Token: YOUR_TOKEN\"\n```\n\nExample: Odpoveď\n```json\n{ \"credits\": 34.49 }\n```\n","entries":[{"type":"rest","name":"POST /check/","signature":"POST https://api.totaljs.com/check/","since":"","deprecated":false}],"license":"","updated":"2026-11-20T06:51:47.968Z"}
{"id":"JapFKe1qM61f","url":"https://totaljs.es/docs/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"en","title":"Questions about Total API","summary":"Short answers about the price, the token, errors and the address of the services.","markdown":"---\ntitle: Questions about Total API\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: en\nlicense: \nurl: https://totaljs.es/docs/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Questions about Total API\n\n> Short answers about the price, the token, errors and the address of the services.\n\n## How much does a request cost?\n\nEach service has its own price per request. The **API** section of the [Total.js Platform](https://platform.totaljs.com?open=api) shows the current prices and your credits. [check](../../reference/account/#check) is free.\n\n## Why does every request fail with `Invalid token`?\n\nThe token is missing or wrong. In a Total.js application, check the `totalapi` key of the `config` file. Over HTTP, check the `X-Token` header. See [Get a token](../../guides/get-a-token/).\n\n## Can I use Total API without Total.js?\n\nYes. Every service is a `POST` request with JSON. See [Call Total API over HTTP](../../guides/call-over-http/).\n\n## Which address does a Total.js application use?\n\nA Total.js 5 application calls `https://eu.api.totaljs.com/{service}/`. Requests from other applications go to `https://api.totaljs.com/{service}/`. Both answer in the same way.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKe1qM61f-de","url":"https://totaljs.es/docs/de/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"de","title":"Fragen zu Total API","summary":"Kurze Antworten zum Preis, zum Token, zu Fehlern und zur Adresse der Dienste.","markdown":"---\ntitle: Fragen zu Total API\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: de\nlicense: \nurl: https://totaljs.es/docs/de/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Fragen zu Total API\n\n> Kurze Antworten zum Preis, zum Token, zu Fehlern und zur Adresse der Dienste.\n\n## Was kostet eine Anfrage?\n\nJeder Dienst hat seinen eigenen Preis pro Anfrage. Der Bereich **API** der [Total.js Platform](https://platform.totaljs.com?open=api) zeigt dir die aktuellen Preise und dein Guthaben. [check](../../reference/account/#check) ist kostenlos.\n\n## Warum schlägt jede Anfrage mit `Invalid token` fehl?\n\nDer Token fehlt oder ist falsch. In einer Total.js-Anwendung prüfst du den Schlüssel `totalapi` in der Datei `config`. Über HTTP prüfst du den Header `X-Token`. Mehr dazu unter [Einen Token holen](../../guides/get-a-token/).\n\n## Kann ich Total API ohne Total.js nutzen?\n\nJa. Jeder Dienst ist eine `POST`-Anfrage mit JSON. Mehr dazu unter [Total API über HTTP aufrufen](../../guides/call-over-http/).\n\n## Welche Adresse nutzt eine Total.js-Anwendung?\n\nEine Anwendung mit Total.js 5 ruft `https://eu.api.totaljs.com/{service}/` auf. Anfragen aus anderen Anwendungen gehen an `https://api.totaljs.com/{service}/`. Beide antworten auf dieselbe Weise.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKe1qM61f-es","url":"https://totaljs.es/docs/es/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"es","title":"Preguntas sobre Total API","summary":"Respuestas breves sobre el precio, el token, los errores y la dirección de los servicios.","markdown":"---\ntitle: Preguntas sobre Total API\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: es\nlicense: \nurl: https://totaljs.es/docs/es/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Preguntas sobre Total API\n\n> Respuestas breves sobre el precio, el token, los errores y la dirección de los servicios.\n\n## ¿Cuánto cuesta una petición?\n\nCada servicio tiene su propio precio por petición. La sección **API** de la [Total.js Platform](https://platform.totaljs.com?open=api) muestra los precios actuales y tus créditos. [check](../../reference/account/#check) es gratis.\n\n## ¿Por qué todas las peticiones fallan con `Invalid token`?\n\nFalta el token o no es correcto. En una aplicación Total.js, revisa la clave `totalapi` del archivo `config`. Por HTTP, revisa la cabecera `X-Token`. Consulta [Consigue un token](../../guides/get-a-token/).\n\n## ¿Puedo usar Total API sin Total.js?\n\nSí. Cada servicio es una petición `POST` con JSON. Consulta [Llama a Total API por HTTP](../../guides/call-over-http/).\n\n## ¿Qué dirección usa una aplicación Total.js?\n\nUna aplicación Total.js 5 llama a `https://eu.api.totaljs.com/{service}/`. Las peticiones de otras aplicaciones van a `https://api.totaljs.com/{service}/`. Las dos responden de la misma forma.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKe1qM61f-fr","url":"https://totaljs.es/docs/fr/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"fr","title":"Questions sur Total API","summary":"Des réponses courtes sur le prix, le token, les erreurs et l’adresse des services.","markdown":"---\ntitle: Questions sur Total API\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: fr\nlicense: \nurl: https://totaljs.es/docs/fr/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Questions sur Total API\n\n> Des réponses courtes sur le prix, le token, les erreurs et l’adresse des services.\n\n## Combien coûte une requête ?\n\nChaque service a son propre prix par requête. La section **API** de la [Total.js Platform](https://platform.totaljs.com?open=api) affiche les prix actuels et tes crédits. [check](../../reference/account/#check) est gratuit.\n\n## Pourquoi chaque requête échoue-t-elle avec `Invalid token` ?\n\nLe token manque ou n’est pas le bon. Dans une application Total.js, vérifie la clé `totalapi` du fichier `config`. En HTTP, vérifie l’en-tête `X-Token`. Consulte [Obtenir un token](../../guides/get-a-token/).\n\n## Peux-tu utiliser Total API sans Total.js ?\n\nOui. Chaque service est une requête `POST` avec du JSON. Consulte [Appeler Total API en HTTP](../../guides/call-over-http/).\n\n## Quelle adresse une application Total.js utilise-t-elle ?\n\nUne application Total.js 5 appelle `https://eu.api.totaljs.com/{service}/`. Les requêtes des autres applications vont vers `https://api.totaljs.com/{service}/`. Les deux répondent de la même façon.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKe1qM61f-it","url":"https://totaljs.es/docs/it/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"it","title":"Domande su Total API","summary":"Risposte brevi su prezzo, token, errori e indirizzo dei servizi.","markdown":"---\ntitle: Domande su Total API\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: it\nlicense: \nurl: https://totaljs.es/docs/it/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Domande su Total API\n\n> Risposte brevi su prezzo, token, errori e indirizzo dei servizi.\n\n## Quanto costa una richiesta?\n\nOgni servizio ha il suo prezzo per richiesta. La sezione **API** della [Total.js Platform](https://platform.totaljs.com?open=api) mostra i prezzi attuali e i tuoi crediti. [check](../../reference/account/#check) è gratuito.\n\n## Perché ogni richiesta fallisce con `Invalid token`?\n\nIl token manca o è sbagliato. In un'applicazione Total.js, controlla la chiave `totalapi` del file `config`. Via HTTP, controlla l'header `X-Token`. Leggi [Ottenere un token](../../guides/get-a-token/).\n\n## Posso usare Total API senza Total.js?\n\nSì. Ogni servizio è una richiesta `POST` con JSON. Leggi [Chiamare Total API via HTTP](../../guides/call-over-http/).\n\n## Quale indirizzo usa un'applicazione Total.js?\n\nUn'applicazione Total.js 5 chiama `https://eu.api.totaljs.com/{service}/`. Le richieste delle altre applicazioni vanno a `https://api.totaljs.com/{service}/`. Entrambi rispondono allo stesso modo.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
{"id":"JapFKe1qM61f-sk","url":"https://totaljs.es/docs/sk/total-api/2026/faq/questions/","project":"total-api","version":"2026","section":"faq","language":"sk","title":"Otázky o Total API","summary":"Krátke odpovede o cene, tokene, chybách a adrese služieb.","markdown":"---\ntitle: \"Otázky o Total API\"\nproject: Total API\nversion: 2026\nsection: faq\nlanguage: sk\nlicense: \nurl: https://totaljs.es/docs/sk/total-api/2026/faq/questions/\nupdated: 2026-11-19T06:09:14.885Z\n---\n\n# Otázky o Total API\n\n> Krátke odpovede o cene, tokene, chybách a adrese služieb.\n\n## Koľko stojí jedna požiadavka?\n\nKaždá služba má vlastnú cenu za požiadavku. Sekcia **API** v [Total.js Platform](https://platform.totaljs.com?open=api) ti ukáže aktuálne ceny aj tvoje kredity. [check](../../reference/account/#check) je zadarmo.\n\n## Prečo každá požiadavka zlyhá s `Invalid token`?\n\nToken chýba alebo je nesprávny. V aplikácii Total.js skontroluj kľúč `totalapi` v súbore `config`. Cez HTTP skontroluj hlavičku `X-Token`. Pozri si [Získaj token](../../guides/get-a-token/).\n\n## Môžem používať Total API bez Total.js?\n\nÁno. Každá služba je požiadavka `POST` s JSON. Pozri si [Volanie Total API cez HTTP](../../guides/call-over-http/).\n\n## Akú adresu používa aplikácia Total.js?\n\nAplikácia Total.js 5 volá `https://eu.api.totaljs.com/{service}/`. Požiadavky z iných aplikácií idú na `https://api.totaljs.com/{service}/`. Obe odpovedajú rovnako.\n","entries":[],"license":"","updated":"2026-11-19T06:09:14.885Z"}
