My Data API
Base URL https://my.ejiapi.com/api/my/v1. Send your key in the X-API-Key header. My Data keys start with my_ and are made on your data page; keys of the other EJI API families do not work here. Every key is read only.
Endpoints
| Endpoint | What it returns |
|---|---|
GET /datasets | The datasets this key can read, each with its columns (name, label, type, masked) and row count. |
GET /datasets/{name} | One dataset's columns and key column. |
GET /datasets/{name}/rows | Rows, filtered, searched, sorted and paged (below). {data: [...], meta: {total, limit, offset, nextOffset, fields}}. |
GET /datasets/{name}/rows/{value} | The row whose key column equals the value (text ignores capitals). Without a key column, the row number _row. |
GET /datasets/{name}/facets?column=city | The 50 most common values of a column, with how many rows have each. Takes the same filters. |
Filters and options
| Parameter | Meaning |
|---|---|
city=Jaipur | Equal. Text ignores capitals. Repeat it for "any of": city=Jaipur&city=Ajmer. |
amount__gte=1000 | Compare: __gt, __gte, __lt, __lte, __ne. Numbers and dates (2026-03-31). |
name__contains=sharma | Text that contains, or __startswith. |
city__in=Jaipur,Ajmer | Any of, comma separated (up to 50). |
email__isnull=true | Empty (true) or filled in (false). |
q=sharma jaipur | Search every text column: each word must match, and a word matches the start of a word. |
sort=-amount,name | Up to 3 columns; - for largest first. |
fields=name,city | Only these columns. |
limit, offset | Page size (1 to 1,000, default 100) and where to start. meta.nextOffset is the next page's offset, or null on the last page. |
format=csv | CSV instead of JSON (cells that start with =, +, - or @ get a leading ', so a spreadsheet does not run them). format=toon gives TOON, fewer tokens for an AI model. |
Column names in the API are the short names on the dataset's Columns tab (small letters, digits and _). Values come back as their type: numbers as numbers, dates as YYYY-MM-DD, yes/no as true/false. Every row also has _row, its number in the file.
Sending new data (push)
A key made with Can update data can replace every row of a dataset it can read. Each push is a new version; the one before is kept for 7 days and can be put back from the data page. A dataset that updates itself from a link does not take pushes. Up to 60 pushes an hour.
| Endpoint | Body |
|---|---|
PUT /datasets/{name}/file | A multipart form with file: any type My Data reads (CSV, Excel, ODS, JSON, XML, PDF, Word, HTML). Optional sheet (a sheet or table name or number) and password (a locked PDF; used once, never saved). |
PUT /datasets/{name}/rows | JSON: a list of objects, [{"city": "Jaipur", "amount": 1200}, ...], or {"rows": [...]}. Nested objects become parent_child columns; lists become text. |
The answer is {data: {name, rows, version, updated}, notes}. Column names, masks and public choices are kept for columns that are still there. 403 means the key may only read.
File types
CSV, TSV and text (the separator is found by itself), Excel .xlsx and .xls (values, never formulas), OpenDocument .ods, JSON (a list of objects, or an object holding one; a path such as data.items picks another), JSON Lines, XML (repeated records; files that declare entities are refused), PDF (ruled tables, joined across pages; tables without lines are lined up from the words), Word .docx tables, HTML tables, and scans or photos (JPEG, PNG, WebP, GIF, or a PDF with no text) read with AI. When a file holds several sheets or tables, a workbook's first sheet or a document's biggest table is used; name another, or give its number, under "Sheet or table".
Scans and photos. A scanned PDF or a photo is read only when the request says so: ocr=1 in the upload or push form ("ocr": true for a link). Without it the answer is 422 with "reason": "needs_ocr". It runs on the account's own Anthropic API key, saved once under "AI reading" on the data page (stored encrypted, never shown again) and billed by Anthropic to that account; without a saved key the answer explains how to add one. The file goes to Anthropic (Claude) to copy the tables; the result then goes through the usual checks (types, personal data, Aadhaar and card numbers cut). Cells that could not be read come back as ?. Up to 20 pages at a time. iPhone HEIC photos must be shared as JPEG first.
Datasets that update from a link
On the data page, choose From a link. The file is fetched at once, then checked every hour, 6 hours, day or week; a new version is made only when the file changed (we send back ETag and Last-Modified, and compare a fingerprint of the bytes). A Google Sheet shared as "anyone with the link" works with its normal address, and so do Dropbox, OneDrive and GitHub file links. A link that needs a key takes a header name and value; the value is encrypted and sent only to that website. When a check fails the last good data stays, the reason is shown, and checks slow down; after 10 failures in a row the link pauses until you press "Check now". Only public websites on ports 80 and 443 can be linked.
Masked columns
Columns that hold personal data (PAN, bank account, and any you choose) can be masked: they come back with only the last 4 characters, for example XXXXX1234X. A masked column cannot be filtered, searched, sorted or counted, because that would let a caller test guesses of the hidden value. Aadhaar and card numbers are never kept in full at all. Only the dataset's owner can download the unmasked file, from the data page.
Public links
A dataset whose owner turned on a public link is readable with no key at https://my.ejiapi.com/api/my/public/{link}, with the same /rows, /rows/{value} and /facets, up to 200 rows a page. Columns the owner did not show (personal columns by default) are left out entirely. Limits: 60 requests a minute per network and a daily cap per link.
Limits and errors
Free during the beta: 120 calls a minute per key and 1,00,000 calls a month per account, across all its keys. Errors are application/problem+json ({title, status, detail}): 400 a bad filter or column, 401 a missing or revoked key, 404 a dataset the key cannot read (or that does not exist), 429 too many calls.
Examples
curl -H "X-API-Key: $KEY" "https://my.ejiapi.com/api/my/v1/datasets"
curl -H "X-API-Key: $KEY" "https://my.ejiapi.com/api/my/v1/datasets/clients/rows?city=Jaipur&sort=-amount&limit=20"
curl -H "X-API-Key: $KEY" "https://my.ejiapi.com/api/my/v1/datasets/clients/rows/ABC123"
fetch("https://my.ejiapi.com/api/my/v1/datasets/prices/rows?q=paracetamol", { headers: { "X-API-Key": KEY } }).then((r) => r.json())
Your data is yours: we serve it only to you, your keys and, if you turn one on, its public link. See the My Data terms.