btcintel

TagPack (GraphSense YAML) of one source or one campaign

GET /v1/export/tagpack
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 source or campaign. A source's file: its current address annotations as tags, confidence the class id (in the header, and on a tag when it differs), category and abuse the DW-VA short ids, context a JSON string with the claim id, its citation, the entity, and for a campaign member its role and campaign; 403 when the source is not redistributable. A campaign's file: its current address members as tags, each with its own confidence and source; victims are never tags; members of non-redistributable sources are left out and named in a comment and in X-Omitted-Sources. Only current claims export: include=provisional is refused. confidence_class and source_kind narrow the tags.

Parámetros

NombreDóndeTipoObligatorioQué hace
sourceconsultastringopcionalA source's id: its current address claims as tags. A source that is not redistributable answers 403.
campaignconsultastringopcionalAn event id, evt_<n>, or its slug: the campaign whose members are tags.
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.

Qué responde

200 · application/yaml

The TagPack file (YAML).

Cabeceras: X-Omitted-Sources

CampoTipoQué lleva
titlestringel contrato no dice más de él
creatorstringel contrato no dice más de él
descriptionstringel contrato no dice más de él
lastmodstringYYYY-MM-DD
currencystringUno de BTC.
confidencestringThe source's default confidence class id.
sourcestringel contrato no dice más de él
tagsarrayel contrato no dice más de él
tags[].addressstringel contrato no dice más de él
tags[].labelstringel contrato no dice más de él
tags[].categorystringThe DW-VA entity short id.
tags[].abusestringThe DW-VA abuse short id.
tags[].confidencestringPresent when it differs from the header.
tags[].lastmodstringel contrato no dice más de él
tags[].sourcestringThe fetch URL.
tags[].contextstringJSON: claim_id, citation, entity_id, role.
tags[].actorstringel contrato no dice más de él
esquema TagPack
  • title string obligatorio
  • creator string obligatorio
  • description string
  • lastmod string obligatorio — YYYY-MM-DD
  • currency string obligatorio · uno de "BTC"
  • confidence string — The source's default confidence class id.
  • source string
  • tags array de object obligatorio
    • address string obligatorio
    • label string obligatorio
    • category string — The DW-VA entity short id.
    • abuse string — The DW-VA abuse short id.
    • confidence string — Present when it differs from the header.
    • lastmod string
    • source string — The fetch URL.
    • context string — JSON: claim_id, citation, entity_id, role.
    • actor string

Ausente y vacío

El casoEn la respuesta
A campaign's member from a source that is not redistributable.It is left out, and its source is named in a comment and in X-Omitted-Sources.

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 pack. 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/tagpack