CoinReceipts publishes its public record over a plain JSON API. Every route on this page is a read, answers without a key and returns the public record. Use it to chart a board, watch the crowd lean on a coin, embed a coin's crowd card, check the digest chain over settled calls, look up a receipt by id or pull the delayed call feed into your own tool.
Email hello@coinreceipts.com with the subject "API access" and we reply with the base address. The examples below write it as YOUR_API_BASE_ADDRESS.
Public routes that need no key
| Request | What it returns |
|---|---|
GET /v1/public/leaderboard | The accuracy board. Filter with asset, window (all, 30d or 7d) and limit; page with cursor. Ranks move as calls settle, so a walk through several pages is not a snapshot. |
GET /v1/public/leaderboard/highlights | Most predictions, most accurate and longest streak for a window, plus the biggest gain over the last seven days. |
GET /v1/public/crowd/{asset} | Open calls on one coin, up against down, among human members. |
GET /v1/public/crowd/{asset}/read | One coin's crowd read: the share of the last 24 hours of member calls going up, the 30 day call count and the crowd hit rate. Open to any website and cached for a minute. |
GET /v1/public/crowd/{asset}/card.svg | An image of that 24 hour lean, ready for an img tag, in a light or a dark theme. |
GET /v1/public/crowd.json | The crowd read for every coin: member calls over 30 days and our own agents over 24 hours, on separate lines. |
GET /v1/public/stats/crowd-index | Predictors, predictions, settled results and crowd accuracy. |
GET /v1/public/calibration | How often following or fading a strong crowd paid off, in buckets. |
GET /v1/public/feed | The call feed, delayed for readers with no plan, newest first. |
GET /v1/public/chain | The chain of daily digests over settled calls, with the recipe to recompute one. |
GET /v1/public/chain/{date} | The digest of one closed UTC day, and the digest it includes. |
GET /v1/public/chain/{date}/records | The settled calls that digest covers, in the order they are hashed. |
GET /v1/public/receipts/{id} | One receipt, with its settlement once settled. |
GET /v1/public/profiles/{handle} | One member profile: stats, followers and recent receipts. |
GET /v1/public/plans | Every plan with its price and entitlements. |
GET /v1/public/assets | The coins open for calls. |
GET /v1/public/digests/latest | The newest market digest. A digest for one UTC day is at /v1/public/digests/{date}. |
JSON in and out. Field names are snake_case, timestamps are ISO 8601 in UTC and prices are US dollars. The public feed holds calls and outcomes back for the same delay a reader with no plan sees. The call feed on the site reads the same data.
Example requests
Every request and response in this section was produced by running the CoinReceipts API on an example record when this site was built. The handles, counts and digests belong to that example record. They are examples and are not results from any member or from the crowd.
The accuracy board
curl "YOUR_API_BASE_ADDRESS/v1/public/leaderboard?window=7d&limit=2"
Example response:
{
"window": "7d",
"asset": null,
"rows": [
{
"rank": 1,
"handle": "example_caller",
"display_name": "Example Caller",
"badge": null,
"settled": 25,
"hits": 18,
"misses": 7,
"accuracy": 0.72,
"current_streak": 3,
"longest_streak": 5
},
{
"rank": 2,
"handle": "example_caller_two",
"display_name": "Example Caller Two",
"badge": "pro",
"settled": 20,
"hits": 13,
"misses": 7,
"accuracy": 0.65,
"current_streak": 0,
"longest_streak": 4
}
],
"next_cursor": null
}
Each row is a caller with enough settled calls to be ranked. accuracy is hits divided by hits plus misses, so ties and voids never enter it. asset is null when you do not filter by coin, and badge is null for a member without one.
The crowd index
curl "YOUR_API_BASE_ADDRESS/v1/public/stats/crowd-index"
Example response:
{
"generated_at": "2000-01-15T12:00:00.000Z",
"predictors": 14,
"predictions": 57,
"settled": 45,
"crowd_accuracy": 0.6888888888888889
}
crowd_accuracy is null until there is at least one hit or miss in the record. settled counts hits, misses and ties.
One coin's crowd read
curl "YOUR_API_BASE_ADDRESS/v1/public/crowd/BTC/read"
Example response:
{
"asset": {
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin"
},
"as_of": "2000-01-15T12:00:00.000Z",
"window_hours": 24,
"calls_24h": 12,
"up_24h": 7,
"down_24h": 5,
"share_up_24h": 0.5833333333333334,
"calls_30d": 12,
"results_30d": {
"hits": 0,
"misses": 0,
"hit_rate": null
}
}
Name the coin by id (bitcoin) or by ticker (BTC). share_up_24h is the share of the calls placed in the last 24 hours that went up, and it is null when nobody called in that window. hit_rate is a number from 10 hits plus misses and null below that. A coin with fewer than 10 member calls in 30 days answers 204 with no body, and an unknown coin answers 404. The answer is cached for 60 seconds and any website may read it from the browser, so you can call it from a page without a key.
An embeddable crowd card
Put the card for a coin in an image tag. Add ?theme=dark for the dark version.
<img src="YOUR_API_BASE_ADDRESS/v1/public/crowd/BTC/card.svg" alt="BTC crowd lean, last 24 hours" width="360" height="132">
The card shows the same lean as the crowd read, with the number of calls behind it. It follows the same rules: 60 second cache, open to any site, nothing under the member-call threshold.
One day of the digest chain
curl "YOUR_API_BASE_ADDRESS/v1/public/chain/2000-01-14"
Example response:
{
"date": "2000-01-14",
"previous_digest": "2932fd9dd131682226318814ca18833d77176351821cf5b3d9d99bf33c4c5b49",
"digest": "59a7b1b779885b5845193752198d2c8d687560dd7650b38dcfa245d27d0e9547",
"record_count": 9,
"sealed_at": "2000-01-15T12:00:00.000Z"
}
Each closed UTC day has one digest that includes the digest before it. How settlement works shows how to recompute one from the settled calls it covers.
Limits and response headers
Public routes are limited per client address to 60 requests per 10 seconds. Routes that take a sign-in token or a key are limited to 200 requests per 10 seconds. Going over the limit returns a 429 with a Retry-After header. Answers from these routes carry these headers:
| Header | Meaning |
|---|---|
X-Request-Id | A unique id for the request. It matches request_id in an error body. Quote it when you ask for help. |
X-RateLimit-Limit | Requests allowed in the current window. |
X-RateLimit-Remaining | Requests left in the current window. |
X-RateLimit-Reset | Unix time, in seconds, when the window is full again. |
Retry-After | Added to a 429 answer: seconds to wait before you try again. |
One error shape
Every failure uses the same envelope, so you can branch on one field.
{
"error": {
"code": "...",
"message": "What went wrong, for this request.",
"fix": "What to do next.",
"docs_url": "...",
"retryable": false,
"request_id": "..."
}
}
Branch on code, which is stable. retryable says whether sending the same request again can succeed. Every code is listed, with what to do, on the error codes page.
Keys
- Who can use a key: the Elite plan. A key on any other plan is refused with a
plan_requirederror. - What a key looks like: it starts with
cr_live_. Send it asAuthorization: Bearer <key>or in anX-API-Keyheader. - Where keys are used: routes outside
/v1/public, such as placing and reading your own calls. The public routes above never need one.
Where to start
- Follow getting started to make your first call from code.
- Read the API reference for every route, field and access level.
- See the developer API feature page for what the API is for, and pricing for the plan that includes keys.
- Look up how a result is decided in how settlement works.
Get access
Email hello@coinreceipts.com with the subject "API access". We reply with the base address for your account and, on Elite, your key.
Questions
Do I need an API key to read the leaderboard?
No. The routes under /v1/public answer without a credential and are limited per client address.
Which plan includes API keys?
Elite. A key used on any other plan is refused with a plan_required error.
How do I know I am close to the limit?
Read the X-RateLimit-Remaining and X-RateLimit-Reset headers on any answer. A 429 also carries Retry-After.
Are the example responses real data?
No. They come from running the API on an example record when this site was built, so the key names, their order and the types are exactly what the API sends, while the handles, counts and digests belong to the example record.
Can I put a coin's crowd lean on my own site?
Yes. The crowd read answers without a key to any website and is cached for 60 seconds, and the card is an image you can place in an img tag.
View moreView less
What does an error look like?
Every error is a JSON object with an error field holding code, message, fix, docs_url, retryable and request_id. Branch on code.
This page is general information, not financial advice.