Price list export
GET
/pricelist/{country}
Download a price list for SMS services. Returns prices for Direct and Text2Speech routes in JSON, XLSX or CSV format. Specify a 2-letter ISO country code (e.g., DE, CH) or ‘all’ for all countries. Response includes currency and country-specific requirements.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” country
required
string
Two-letter ISO country code or ‘all’ for all countries
Query Parameters
Section titled “Query Parameters ” format
string
Output format
currency
string
Currency for prices
lang
string
Language for country names
Responses
Section titled “ Responses ”Price list file
string format: binary
string format: binary
One of:
Single country response
object
country
ISO-2 country code
string
name
Human-readable country name in the requested language
string
currency
Price currency
string
requirements
Country-specific requirements for sending SMS
string | null
rates
Price rates keyed by service code
object
key
additional properties
S, M, L, XL rate tiers
Array<number>
All countries response
Array<object>
object
country
string
name
string
currency
string
requirements
object | null
rates
object
key
additional properties
Array<number>
Examples
Example pricelist
Price list for Italy in CHF
Example response for /pricelist/it?currency=chf
{ "country": "IT", "name": "Italy", "currency": "CHF", "requirements": "Text Sender-ID needs to be registered. Only for companies with VAT and PEC in ITALY. Numeric sender-ID possible.", "rates": { "pro": [ 0.06, 0.05, 0.049, 0.048 ], "economy": [ 0.05, 0.044, 0.043, 0.042 ], "direct": [ 0.072, 0.062, 0.061, 0.06 ], "text2speech": [ 0.038, 0.032, 0.031, 0.03 ] }}Invalid input
Code Samples
#!/usr/bin/env bashcurl -s 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de'#!/usr/bin/env bashcurl -s 'https://api.lox24.eu/pricelist/all?format=xlsx¤cy=eur&lang=de' -o lox24_pricelist_eur_all.xlsxusing System;using System.IO;using System.Net;using System.Text;
namespace Lox24.Api{ class Pricelist { static void Main() { string url = "https://api.lox24.eu/pricelist/de?currency=chf&lang=de";
var httpWebRequest = (HttpWebRequest)WebRequest.Create(url); httpWebRequest.Method = "GET";
try { using (HttpWebResponse resp = (HttpWebResponse)httpWebRequest.GetResponse()) { using (StreamReader sr = new StreamReader(resp.GetResponseStream(), Encoding.UTF8)) { Console.WriteLine(sr.ReadToEnd()); } } } catch (WebException ex) { var webResponse = ex.Response as HttpWebResponse; Console.WriteLine("Error: " + webResponse.StatusCode); using (StreamReader sr = new StreamReader(webResponse.GetResponseStream(), Encoding.UTF8)) { Console.WriteLine(sr.ReadToEnd()); } } } }}package main
import ( "fmt" "io" "log" "net/http")
func main() { url := "https://api.lox24.eu/pricelist/de?currency=chf&lang=de"
res, err := http.Get(url) if err != nil { log.Fatal(err) } defer res.Body.Close()
body, err := io.ReadAll(res.Body) if err != nil { log.Fatal(err) }
if res.StatusCode == 200 { fmt.Println(string(body)) } else { fmt.Printf("Error: %d\n%s\n", res.StatusCode, string(body)) }}package eu.lox24.doc.user;
import java.io.IOException;import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;import java.time.Duration;
public class GetPricelist {
public static void main(String[] args) {
var url = "https://api.lox24.eu/pricelist/de?currency=chf&lang=de";
var httpRequest = HttpRequest.newBuilder(URI.create(url)) .timeout(Duration.ofMillis(100000)) .GET() .build();
var client = HttpClient.newBuilder().build();
try { var httpResponse = client.send(httpRequest, HttpResponse.BodyHandlers.ofString());
if (httpResponse.statusCode() == 200) { System.out.println(httpResponse.body()); } else { System.out.println("Error: " + httpResponse.statusCode()); System.out.println(httpResponse.body()); }
} catch (IOException | InterruptedException e) { e.printStackTrace(); } }}const https = require('https');
const url = 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de';
https.get(url, res => { let data = ''; res.on('data', chunk => data += chunk); res.on('end', () => { if (res.statusCode === 200) { console.log(JSON.parse(data)); } else { console.log(`Error: ${res.statusCode}`); console.log(data); } });}).on('error', err => { console.error(err);});<?php
$uri = 'https://api.lox24.eu/pricelist/de?currency=chf&lang=de';
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => $uri, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 20,]);
$response = curl_exec($curl);$code = curl_getinfo($curl, CURLINFO_HTTP_CODE);curl_close($curl);
$data = json_decode($response, true);
if (200 === $code) { echo json_encode($data, JSON_PRETTY_PRINT);} else { echo "Error: code = {$code}\n" . $response;}import jsonimport requests
url = 'https://api.lox24.eu/pricelist/de'params = {'currency': 'chf', 'lang': 'de'}
try: res = requests.get(url, params=params, timeout=100) res.raise_for_status() print(json.dumps(res.json(), indent=4))except requests.HTTPError: print(f'Error: {res.status_code}') print(res.text)