📘

Supported file formats and import methods

Format: HTML
Import methods:

  • IAM Delegated Access
  • Signed URLs (https URLs only)

When importing HTML data to Labelbox, your JSON file must include the following information for each HTML file.

Parameter

Required

Description

externalId

Yes

User-generated file name or ID for the file. For the best experience, this ID should be unique.

data

Yes

https path to a cloud-hosted HTML file. For IAM Delegated Access, this URL must be in virtual-hosted-style format. For older regions, your S3 bucket may be in https://<bucket-name>.s3-<region>.amazonaws.com/<key> format. If your object URLs are formatted this way, make sure they are in the virtual-hosted-style format before importing.

attachments

No

Attachments
Asset overlays

🚧

Note:

Thumbnail previews are not yet supported for HTML files; currently they'll display the raw HTML.

[
    {
        "externalId": "email_1.html",
        "data": "https://lb-test-data.s3.us-west-1.amazonaws.com/email_1.html"
    },
    {
        "externalId": "email_2.html",
        "data": "https://lb-test-data.s3.us-west-1.amazonaws.com/email_2.html"
    }
]
[ 
    { 
        "externalId": "website-example", 
        "data": "https://storage.googleapis.com/labelbox-test/website_example.html"
    }, 
    { 
        "externalId": "email-example", 
        "data": "https://storage.googleapis.com/labelbox-test/email_example.html"
    }
]
<html>
  <head>
    <title>HTML File Example</title>
  </head>
<body bgcolor="ffffff">

<center><img src="https://labelbox.com/static/images/logo-v4.svg" align="bottom">

<hr>

<h1>Get to production AI faster</h1>

<p>Save time by creating and managing your training data, people, and processes in a single place — so you can focus on building the next big thing.</p>

<p><a href="https://labelbox.com/sales">Get a demo</a> or <a href="https://app.labelbox.com/">start for free.</a>
</center>
<hr>

</body>

</html>