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
- 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
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
subject | consulta | string | opcional | <kind>:<key>, e.g. address:bc1q… |
entity | consulta | string | opcional | An entity's id: the entity, its annotations by pages, its relations and its events. |
source | consulta | string | opcional | A source's id: its annotations by pages, with its relations and events on the first page. A source that is not redistributable answers 403. |
campaign | consulta | string | opcional | An event id, evt_<n>, or its slug: the campaign whose members export. |
confidence_class | consulta | string | opcional | Only 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_kind | consulta | string | opcional | Only 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. |
since | consulta | string | opcional | A date (2006-01-02) or an RFC 3339 timestamp; source, entity and campaign exports. |
cursor | consulta | string | opcional | The next page of an entity, a source or a campaign: the X-Next-Cursor of the page before. An invalid one is a 400. |
limit | consulta | integer | opcional | Annotations 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. |
community | consulta | boolean | opcional | Subject 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
| Campo | Tipo | Qué lleva |
|---|---|---|
type | string | Uno de bundle. |
id | string | el contrato no dice más de él |
objects | array | el contrato no dice más de él |
objects[].type | string | el contrato no dice más de él |
objects[].id | string | el contrato no dice más de él |
x_btcintel_bundle_sha256 | string | SHA-256 of the RFC 8785 serialisation of objects. |
x_btcintel_omitted_sources | array | el contrato no dice más de él |
x_btcintel_next_cursor | string | el contrato no dice más de él |
esquema StixBundle
typestring obligatorio · uno de "bundle"idstring obligatorioobjectsarray de object obligatoriotypestring obligatorioidstring obligatorio- cualquier otra propiedad
x_btcintel_bundle_sha256string obligatorio — SHA-256 of the RFC 8785 serialisation ofobjects.x_btcintel_omitted_sourcesarray de stringx_btcintel_next_cursorstring
Ausente y vacío
| El caso | En 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
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | A 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. |
| 403 | forbidden | forbidden: 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. |
| 404 | not_found | not_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}'