curl -X GET "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/export-xlsx" \
-H "X-Api-Key: <your-api-key>" \
--output order_export.xlsx
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/export-xlsx`,
{
method: "GET",
headers: {
"X-Api-Key": "<your-api-key>",
},
},
);
const blob = await response.blob();
const url = URL.createObjectURL(blob);
// Download or process the XLSX file
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
response = requests.get(
f"https://api-integration.ollang.com/integration/orders/{order_id}/export-xlsx",
headers={"X-Api-Key": "<your-api-key>"},
)
with open("order_export.xlsx", "wb") as f:
f.write(response.content)
Binary XLSX file (spreadsheet with segment data)
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
{
"statusCode": 500,
"message": "No segment data found for order 60b8d6f1e1b9b1d8c6c0d8e1 with target language tr."
}
Ollang API Reference
Export Order XLSX
Export video timestamps, transcriptions, and translations for a single order as an XLSX spreadsheet
GET
/
integration
/
orders
/
{orderId}
/
export-xlsx
curl -X GET "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/export-xlsx" \
-H "X-Api-Key: <your-api-key>" \
--output order_export.xlsx
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/export-xlsx`,
{
method: "GET",
headers: {
"X-Api-Key": "<your-api-key>",
},
},
);
const blob = await response.blob();
const url = URL.createObjectURL(blob);
// Download or process the XLSX file
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
response = requests.get(
f"https://api-integration.ollang.com/integration/orders/{order_id}/export-xlsx",
headers={"X-Api-Key": "<your-api-key>"},
)
with open("order_export.xlsx", "wb") as f:
f.write(response.content)
Binary XLSX file (spreadsheet with segment data)
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
{
"statusCode": 500,
"message": "No segment data found for order 60b8d6f1e1b9b1d8c6c0d8e1 with target language tr."
}
Returns an XLSX spreadsheet containing segment data (timecodes, source transcription, translated text) for the given order. The target language is resolved automatically from the order.
The spreadsheet contains the following columns:
| Column | Description |
|---|---|
| SR NO | Sequential row number |
| TCR | Timecode (start timestamp) |
| SPEAKER | Speaker name |
| DIALOGUES | Source transcription text |
| Target Language | Translated text (column header is the target language code) |
curl -X GET "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/export-xlsx" \
-H "X-Api-Key: <your-api-key>" \
--output order_export.xlsx
const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";
const response = await fetch(
`https://api-integration.ollang.com/integration/orders/${orderId}/export-xlsx`,
{
method: "GET",
headers: {
"X-Api-Key": "<your-api-key>",
},
},
);
const blob = await response.blob();
const url = URL.createObjectURL(blob);
// Download or process the XLSX file
import requests
order_id = "60b8d6f1e1b9b1d8c6c0d8e1"
response = requests.get(
f"https://api-integration.ollang.com/integration/orders/{order_id}/export-xlsx",
headers={"X-Api-Key": "<your-api-key>"},
)
with open("order_export.xlsx", "wb") as f:
f.write(response.content)
Authorizations
This endpoint requires API key authentication. Include your API key in the request header:- Header name:
X-Api-Key - Header value: Your API key from the Ollang dashboard
Path Parameters
string
required
The unique identifier of the order to export.
Response
The response is a binary XLSX file download. The response headers include:Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheetContent-Disposition: attachment; filename="{OrderName}_{targetLanguage}.xlsx"
Binary XLSX file (spreadsheet with segment data)
{
"error": "Unauthorized",
"message": "Invalid or missing API key",
"code": "UNAUTHORIZED"
}
{
"statusCode": 500,
"message": "No segment data found for order 60b8d6f1e1b9b1d8c6c0d8e1 with target language tr."
}
Was this page helpful?