Skip to content

BEDbase API user guide

BEDbase exposes a REST API that lets you query metadata, download files, and search BED records and BEDsets programmatically.


https://api.bedbase.org/v1

All endpoints described below are relative to this base URL.


BEDbase stores two types of records:

TypeDescription
BEDA single BED file with associated metadata, statistics, and analysis outputs
BEDsetA named collection of BED files

The API is organized into four groups:

GroupPath prefixPurpose
BED/v1/bed/Metadata, statistics, and analysis for individual BED records
BEDset/v1/bedset/Metadata and contents for BEDset records
Search/v1/bed/search/Text, exact, and similarity-based search
Objects/v1/objects/File download URLs (implements GA4GH DRS)

Every BED and BEDset record has a record identifier — a hexadecimal digest, for example dcc005e8761ad5599545cc538f6a2a4d. Use this with the /bed/ and /bedset/ endpoints to retrieve metadata.

To download actual files you need an object identifier, which specifies both the record and the particular file associated with it. Object IDs follow this pattern:

<record_type>.<record_id>.<file_type>

For example, bed.dcc005e8761ad5599545cc538f6a2a4d.bedfile refers to the BED file for that record.

Common <file_type> values:

File typeDescription
bedfileThe BED file (gzipped)
bigbedBigBed format
bedfile_figureSummary statistics plots

GET /v1/bed/{bed_id}/metadata
Terminal window
curl https://api.bedbase.org/v1/bed/dcc005e8761ad5599545cc538f6a2a4d/metadata

Returns a JSON object with fields such as genome assembly, region count, file size, and tissue/assay annotations.


GET /v1/bed/search/text?query={query}
Terminal window
curl "https://api.bedbase.org/v1/bed/search/text?query=CTCF+K562&limit=5"

Returns a ranked list of BED records whose metadata matches the query. Supports optional genome and assay filters.


First, get the download URL via the Objects endpoint:

GET /v1/objects/{object_id}/access/http
Terminal window
curl "https://api.bedbase.org/v1/objects/bed.dcc005e8761ad5599545cc538f6a2a4d.bedfile/access/http"

The response contains an url field. You can then download the file directly from that URL.