Introduction
Hybrid & On-prem
Hybrid cloud
Cloud data overview
Restrict data access by IP range
How to generate signed URLs
How to generate non-expiring signed URLs
On-prem
App
Overview
Ontology management
Projects
Data import
Labeling guides
Label export
Members
Workforce
Quality assurance
Automation
Model-assisted labeling
MAL import formats
Webhooks setup
Queue system
Real-time human-in-the-loop labeling
Custom label interface
Images
Videos
Text
Geospatial data
Python SDK
Getting started
Creating your first project
Project setup script
Projects
Datasets
Data Rows
Import annotations
Labels
General concepts
Python SDK FAQ
API reference
Model-assisted labeling Python script
GraphQL API
Intro to the GraphQL API
Getting started
Data types overview
Ontologies
Datasets
Data Rows
Bulk import requests
Labeling parameters
Labels
Members
Asset metadata
Review queue
Webhooks
Legacy editor
Migration guide
Legacy vs new editor ontology
Legacy vs new editor JSON exports
Legacy vs new editor hotkeys
Model predictions (legacy)
Multistep labeling
Release notes
Release definitions
January 6, 2021
December 7, 2020
November 4, 2020
October 9, 2020
September 25, 2020
August 21, 2020
August 6, 2020
July 6, 2020
June 22, 2020
June 2, 2020
May 19, 2020
April 14, 2020
April 1, 2020
March 3, 2020
February 18, 2020
February 5, 2020
January 17, 2020
Terms of use
Table of Contents
- All Categories
- App
- Data import
- Import URLs via JSON
Import URLs via JSON
Updated
by Alex Cota
Uploading your data via JSON provides the most flexibility. Follow these steps to format your JSON file and import your data to Labelbox.
Step 1: Format JSON file
To import your JSON in the Labelbox UI or via the GraphQL API, your JSON import file must follow the following formats.
Images
[
{
"externalId": "2017-Tesla-Model-S-P90D-102.jpg",
"imageUrl": "https://storage.googleapis.com/labelbox-example-datasets/tesla/2017-Tesla-Model-S-P90D-102.jpg"
},
{
"externalId": "2017-Tesla-Model-3-top-view.jpg",
"imageUrl": "https://storage.googleapis.com/labelbox-example-datasets/tesla/2017-Tesla-Model-3-top-view.jpg"
}
]
Where:
externalId
is OPTIONAL and is a user-generated file name or ID for the file.imageUrl
is REQUIRED and accepts anhttps://
path to an external image URL.
Videos
[
{
"externalId": "google-cast.mp4",
"videoUrl": "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/dash/DesigningForGoogleCastVideo.mp4"
},
{
"externalId": "bigger-blazes-video.mp4",
"videoUrl": "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/dash/ForBiggerBlazesVideo.mp4"
}
]
Where:
externalId
is OPTIONAL and is a user-generated file name or ID for the file.videoUrl
is REQUIRED and accepts anhttps://
path to an external video URL.
Text
[
{
"data": "Lucy has a set of medical conditions that are summarized as HERNS.\nIn 1996, Lucy experienced a minor stroke, which caused temporary paralysis in her left arm.\n3 years ago, Lucy was diagnosed as lupus carrier. Since the diagnosis, Lucy has been taking Warfarin and she expects to maintain Warfarin therapy for life."
},
{
"data": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
}
]
Where:
data
is REQUIRED and accepts a text string (emojis not supported) or anhttps://
path to an external text file URL.
Step 2: Import JSON file
There are three methods for importing your data via JSON.
Labelbox web app
If you have a paid Labelbox account, you can upload new data via JSON or CSV in the Labelbox web app.
Python SDK
To see the format for importing a local JSON file via the create_data_rows
method, see our Python docs on adding URLs via JSON.
GraphQL API
To learn how to use the appendRowsToDataset
GraphQL mutation to import a JSON file, see the Bulk import documentation.