ECHO Web API

ECHO's Web API is a set of static files: no sign-up, no keys, nothing to install. Every dataset has a JSON record, and every data package lists its files, tables and columns, so code can find and read the data directly. The API is version 1: fields may be added, but existing fields will not be removed or renamed.

Start here

What URL
Index of everything below https://echo.directory/api/v1/
OpenAPI description https://echo.directory/api/v1/openapi.json
Catalogue (JSON) https://echo.directory/api/v1/datasets.json
Catalogue as one table Parquet, SQLite, CSV
One dataset https://echo.directory/api/v1/dataset/{slug}.json
Its package versions https://echo.directory/api/v1/dataset/{slug}/versions.json
Every file of a version https://echo.directory/api/v1/dataset/{slug}/{version}/files.json
Tables and columns https://echo.directory/api/v1/dataset/{slug}/{version}/schema.json
How to cite https://echo.directory/cite/{slug}.json (also .bib, .ris)

The slug is the dataset's name in its page address, e.g. advogato in https://advogato.echo.directory/.

Reading data in place

Package tables are Parquet files served with HTTP range requests and CORS, so DuckDB, pyarrow, R's arrow package and browser tools can query them without downloading everything first. Each dataset page has a "Use from code" box with ready-made lines; for example (advogato, table edges):

SELECT * FROM 'https://echo.directory/download/advogato/v1.0.0/data/edges.parquet' LIMIT 10;
import duckdb  # pip install duckdb
df = duckdb.sql("SELECT * FROM 'https://echo.directory/download/advogato/v1.0.0/data/edges.parquet' LIMIT 1000").df()  # drop LIMIT for the whole table
library(arrow)  # install.packages("arrow")
df <- read_parquet("https://echo.directory/download/advogato/v1.0.0/data/edges.parquet")

Large tables come in several Parquet parts; files.json lists them (field table, format).

Licences and citation

Each dataset keeps its own licence, stated in the package's LICENSE.md and in the API records; some are for research use only. The catalogue and ECHO-written metadata are CC0. When you use a dataset, cite ECHO and the dataset: the /cite/ files give both, ECHO first.

Limits

Metadata (records, files.json, schema.json, datapackage.json, READMEs) is not rate-limited. Data files count toward a per-address daily download limit that keeps ECHO from being mirrored wholesale. For bulk or full-collection access, write to echo@data.syr.edu.

Also