API quickstart

Getting started with the Labelbox Python SDK or GraphQL API.

We recommend that you use the Python SDK to make your workflows easier.

📘

Note

Only admins can create API keys.

Create an API key

  1. Log in to Labelbox.

  2. Click on your name in the top right corner.

  3. Click Account.

  4. Click API.

  5. Click Create API key.

  6. Enter a name for your API key and click Create.

  7. Copy the API key and save it somewhere as the key will eventually be hidden from view.

Getting started with Python SDK (recommended for all users)

To learn more about Python SDK, visit these end-to-end tutorials.

# install latest labelbox version
!pip3 install labelbox[data] 

import labelbox

# Enter your Labelbox API key here
LB_API_KEY = ""

# Create Labelbox client
lb = labelbox.Client(api_key=LB_API_KEY)

GraphQL API (for advanced users only)

If there is something you cannot accomplish with the Python SDK, first share the feedback on Github. It's likely we will consider and add the functionality. Otherwise, you may consider using the raw but powerful GraphQL API.

Explore GraphQL APIs here: https://app.labelbox.com/explorer

Rate limits

Tier

API (requests / min)

Free

1,500

Starter

5,000

Pro

5,000

Enterprise

20,000


Did this page help you?