cURL
curl --request GET \
--url https://api.transcribetube.com/api/me \
--header 'api-key: <api-key>'import requests
url = "https://api.transcribetube.com/api/me"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.transcribetube.com/api/me', 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.transcribetube.com/api/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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.transcribetube.com/api/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
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.transcribetube.com/api/me")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.transcribetube.com/api/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "you@example.com",
"currentPlan": "Free",
"availableCredit": 42,
"totalCredit": 60
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Account
Get Account
Returns the account the api-key belongs to, its plan and the minutes it has left.
GET
/
api
/
me
cURL
curl --request GET \
--url https://api.transcribetube.com/api/me \
--header 'api-key: <api-key>'import requests
url = "https://api.transcribetube.com/api/me"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.transcribetube.com/api/me', 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.transcribetube.com/api/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$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.transcribetube.com/api/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
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.transcribetube.com/api/me")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.transcribetube.com/api/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "you@example.com",
"currentPlan": "Free",
"availableCredit": 42,
"totalCredit": 60
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Returns the account your API key belongs to, its plan and the minutes it has left. Useful to check a key works and to see the balance before submitting a video.
Examples
curl "https://api.transcribetube.com/api/me" \
-H "api-key: $TRANSCRIBETUBE_API_KEY"
const res = await fetch("https://api.transcribetube.com/api/me", {
headers: { "api-key": process.env.TRANSCRIBETUBE_API_KEY },
});
const account = await res.json();
Response
200 OK:
{
"id": "0b6f7c1e-3a52-4d0e-9a41-5c2d8e7f1a90",
"email": "you@example.com",
"currentPlan": "Free",
"availableCredit": 42,
"totalCredit": 60
}
| Field | Type | Description |
|---|---|---|
id | string (UUID) | The user the API key belongs to. |
email | string or null | Account email. null if it could not be looked up. |
currentPlan | string | Plan name, e.g. Free. |
availableCredit | number | Minutes left. One credit is one minute of video. |
totalCredit | number | Minutes the plan includes per period. |
Errors
| Status | When |
|---|---|
| 401 | Missing or invalid api-key header. |
Response
The account behind the api-key

