Skip to content

Quick Start

Build applications around the features of VIDEO.TAXI. Manage your live and on-demand video content with the VIDEO.TAXI API. Live transcribe and translate your audio streams in real-time.

We use a GraphQL API to provide you with a flexible and powerful way to interact with VIDEO.TAXI. The GraphiQL interface is a great way to explore the API and test queries and mutations.

Setup:

  1. Create an API key in the VIDEO.TAXI dashboard to authenticate your requests.
  2. Put the API key in the Authorization header with the value Bearer YOUR_API_KEY.

Endpoint: https://service.video.taxi/graphiql
Header: Authorization Bearer YOUR_API_KEY

Language-specific Quick Start

We provide examples for the basic operations in popular programming languages.

Python

This example relies on the gql library to interact with the GraphQL API. Any other library or even raw HTTP requests can be used if you know what you are doing.

Setup the environment:

Terminal window
python3 -m venv .venv
source .venv/bin/activate
pip install gql

Create a video_taxi.py file and add the following code:

API_KEY = os.getenv("API_KEY")
API_URL = "https://service.video.taxi/graphiql"
from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport
import os
transport = AIOHTTPTransport(
url=API_URL, headers={"Authorization": f"Bearer {API_KEY}"}
)
client = Client(transport=transport, fetch_schema_from_transport=True)
query = gql(
# Your query/mutation goes here
)
result = client.execute(query)

Launch the script with API_KEY=YOUR_API_KEY python3 video_taxi.py.

Node.js

This example relies on the graphql-request library to interact with the GraphQL API. Any other library or even raw HTTP requests can be used if you know what you are doing.

Install the dependency:

Terminal window
npm install graphql-request # or yarn/pnpm/...

Create a video_taxi.js file and add the following code:

import { GraphQLClient, gql } from "graphql-request";
const endpoint = "https://service.video.taxi/graphql";
const client = new GraphQLClient(endpoint, {
headers: {
Authorization: `Bearer ${process.env.API_KEY}`,
}
});
const query = gql`
# Your query/mutation goes here
`;
client.request(query).then(data => console.log(data));

Launch the script with API_KEY=YOUR_API_KEY node video_taxi.js.