btcintel

STIX 2.1 bundle of one subject, one entity, one source or one campaign

GET /v1/export/stix
who may call it
Anyone
no key and no session
what it costs
1 request of the quota
tiers and keys
how fresh
Cached for 5 minutes
every answer carries the index's height and the node's
MCP tool
None
On this page

Exactly one of subject, entity, source or campaign. A subject bundle carries its observable, every annotation on it (expired with valid_until, retracted with revoked), the events that name it and, with community=true (never by default), the Community notes and labels as note, opinion and identity objects. An entity bundle carries the entity, its annotations (paged), its relations and its events. A source bundle pages the source's annotations by id (since bounds updated_at; cursor from the previous page) and carries its relations and events on the first page. A campaign bundle pages the campaign's members the same way, delisted ones with valid_until, and carries the campaign's report on the first page and a campaign object on every page: a member with an abuse word is an indicator that indicates the campaign, and a victim is a note on its observable and the campaign, never an indicator. Only current claims export: a provisional member is in no bundle, and include=provisional is refused. confidence_class and source_kind narrow the claims (events follow the source kind only). Ids are deterministic (type--uuid5(NS, type + ":" + key); SCO ids per the STIX rule), so bundles merge.

Parameters

NameWhereTypeRequiredWhat it does
subjectquerystringoptional<kind>:<key>, e.g. address:bc1q…
entityquerystringoptionalAn entity's id: the entity, its annotations by pages, its relations and its events.
sourcequerystringoptionalA source's id: its annotations by pages, with its relations and events on the first page. A source that is not redistributable answers 403.
campaignquerystringoptionalAn event id, evt_<n>, or its slug: the campaign whose members export.
confidence_classquerystringoptionalOnly claims of this confidence class (e.g. authority_data; the confidence: prefix is optional). Levels are never combined. A class the vocabulary does not hold is a 400 invalid_input, never an empty list; one that no current claim carries answers nothing. GET /v1/taxonomy/concepts lists the classes, as confidence: concepts.
source_kindquerystringoptionalOnly claims from sources of this kind, one of the eleven a source can have; GET /v1/sources gives each source's kind. A kind that no registered source has answers nothing; any other value is a 400 invalid_input, never an empty list.
sincequerystringoptionalA date (2006-01-02) or an RFC 3339 timestamp; source, entity and campaign exports.
cursorquerystringoptionalThe next page of an entity, a source or a campaign: the X-Next-Cursor of the page before. An invalid one is a 400.
limitqueryintegeroptionalAnnotations per page of an entity, a source or a campaign: 200 by default, at most 500; a value outside 1 to 500 reads as 200.
communityquerybooleanoptionalSubject exports only.

What it answers

200 · application/stix+json;version=2.1

The bundle; X-Next-Cursor and x_btcintel_next_cursor when a further page exists.

Headers: X-Next-Cursor

FieldTypeWhat it carries
typestringOne of bundle.
idstringthe contract says nothing more of it
objectsarraythe contract says nothing more of it
objects[].typestringthe contract says nothing more of it
objects[].idstringthe contract says nothing more of it
x_btcintel_bundle_sha256stringSHA-256 of the RFC 8785 serialisation of objects.
x_btcintel_omitted_sourcesarraythe contract says nothing more of it
x_btcintel_next_cursorstringthe contract says nothing more of it
schema StixBundle
  • type string required · one of "bundle"
  • id string required
  • objects array of object required
    • type string required
    • id string required
    • any other property
  • x_btcintel_bundle_sha256 string required — SHA-256 of the RFC 8785 serialisation of objects.
  • x_btcintel_omitted_sources array of string
  • x_btcintel_next_cursor string

Absent and empty

The caseIn the answer
An object derived from a source that is not redistributable.It never enters a bundle; a note lists the omitted sources and x_btcintel_omitted_sources repeats them.
The last page.No X-Next-Cursor and no x_btcintel_next_cursor.

Errors

StatusCodeWhen
400invalid_inputA parameter outside the contract (invalid_input), named in the message. Among them a filter's value the API does not hold: a confidence_class the vocabulary does not hold, a source_kind outside the eleven. Such a request is never answered with an empty bundle. An include is refused too: an export takes none, and what it carries does not change with it.
403forbiddenforbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which.
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.

Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.

Example

curl and jq, in any shell.

curl -s 'https://api.btcintel.io/v1/export/stix?limit=200&community=false' | jq '{type, id, x_btcintel_bundle_sha256}'