ListOrders
curl --request GET \
--url https://api.nitrotranslate.com/v1/orders \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.nitrotranslate.com/v1/orders"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.nitrotranslate.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nitrotranslate.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nitrotranslate.com/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nitrotranslate.com/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nitrotranslate.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"status": "QUEUE",
"source_language": "<string>",
"target_language": "<string>",
"snippet": "<string>",
"volume": 123,
"price": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]Orders
List Orders
List orders, newest first by default, with pagination.
GET
/
v1
/
orders
ListOrders
curl --request GET \
--url https://api.nitrotranslate.com/v1/orders \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.nitrotranslate.com/v1/orders"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.nitrotranslate.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nitrotranslate.com/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nitrotranslate.com/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nitrotranslate.com/v1/orders")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nitrotranslate.com/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"status": "QUEUE",
"source_language": "<string>",
"target_language": "<string>",
"snippet": "<string>",
"volume": 123,
"price": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]Authorizations
BasicAuthBearerAuthPaymentAuth
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
Sort by creation time: "asc" or "desc" (default).
Available options:
asc, desc Zero-based page index. Defaults to 0.
Required range:
x >= 0Page size. Defaults to 20.
Required range:
x >= 1Response
200 - application/json
Success
Lifecycle status: QUEUE -> PROGRESS -> DONE. REVISION marks a completed order pending revision; active rework reports as PROGRESS again.
Available options:
QUEUE, PROGRESS, DONE, REVISION Example:
"QUEUE"
Short preview of the source text. ListOrders only.
Billable character volume.
Order price in US dollars. Always returned.