Documentation

What is Ittybit?

Powerful media APIs you'll actually enjoy using. Handle all your media needs with a single API designed to be as concise as it is comprehensive. See how quickly you can get up and running. Make your first API calls right from this page, build along with our guides, or dive into the API reference.

Guides

Quick start

  • Make your first API calls right from this page.

Create a Youtube-like media player

API Reference

Quickstart

You can start making ittybit API calls in seconds:

1. Get your API key

Create a free account, then go to Projects > [Your Project] > API Keys.

2. Make your first API calls

Use the code examples below to test out the ittybit API

async function example() { 

const ENDPOINT = "https://api.ittybit.com/files";

// 1. Add your API Key. This code block is editable!
const ITTYBIT_API_KEY = "your_key_here";
// 2. Add the URL to a file you want to describe (or keep the example URL)
const DATA = {
  url: "https://images.unsplash.com/photo-1593955197981-ebf597c1abf8"
}
// 3. We're going to make a post request to our ENDPOINT. 
// We'll include the ITTYBIT_API_KEY in the request's "Authorization" header,
// and we'll send the DATA in the request body.
const response = await fetch(ENDPOINT, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${ITTYBIT_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify(DATA)
})
// 3. API responses return JSON, so we'll use express's .json() method
// and log the response to the console
const json = await response.json();
// console.log(JSON.stringify(json, null, 2));

// 4. That's it! Your file is now hosted on ittybit.
// console.log(`Open ${json.data.url}`);


}
export default example;

APIs

Ittybit APIs cover 5 broad areas of media handling tasks. They can be used independently or all together.

Guides

Learn how to use the Ittybit API to upload, transform, and extract intelligence from your media

Concepts

Learn the core concepts of the Ittybit API

Admin

Learn how to manage your ittybit organisation

Resources

Further reading about the Ittybit API