btcintel

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

GET /v1/export/stix
quién puede llamarla
Cualquiera
sin clave y sin sesión
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
En caché 5 minutos
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

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.

Parámetros

NombreDóndeTipoObligatorioQué hace
subjectconsultastringopcional<kind>:<key>, e.g. address:bc1q…
entityconsultastringopcionalAn entity's id: the entity, its annotations by pages, its relations and its events.
sourceconsultastringopcionalA source's id: its annotations by pages, with its relations and events on the first page. A source that is not redistributable answers 403.
campaignconsultastringopcionalAn event id, evt_<n>, or its slug: the campaign whose members export.
confidence_classconsultastringopcionalOnly 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_kindconsultastringopcionalOnly 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.
sinceconsultastringopcionalA date (2006-01-02) or an RFC 3339 timestamp; source, entity and campaign exports.
cursorconsultastringopcionalThe next page of an entity, a source or a campaign: the X-Next-Cursor of the page before. An invalid one is a 400.
limitconsultaintegeropcionalAnnotations 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.
communityconsultabooleanopcionalSubject exports only.

Qué responde

200 · application/stix+json;version=2.1

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

Cabeceras: X-Next-Cursor

CampoTipoQué lleva
typestringUno de bundle.
idstringel contrato no dice más de él
objectsarrayel contrato no dice más de él
objects[].typestringel contrato no dice más de él
objects[].idstringel contrato no dice más de él
x_btcintel_bundle_sha256stringSHA-256 of the RFC 8785 serialisation of objects.
x_btcintel_omitted_sourcesarrayel contrato no dice más de él
x_btcintel_next_cursorstringel contrato no dice más de él
esquema StixBundle
  • type string obligatorio · uno de "bundle"
  • id string obligatorio
  • objects array de object obligatorio
    • type string obligatorio
    • id string obligatorio
    • cualquier otra propiedad
  • x_btcintel_bundle_sha256 string obligatorio — SHA-256 of the RFC 8785 serialisation of objects.
  • x_btcintel_omitted_sources array de string
  • x_btcintel_next_cursor string

Ausente y vacío

El casoEn la respuesta
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.

Errores

EstadoCódigoCuándo
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.

Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.

Ejemplo

curl y jq, en cualquier shell.

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