TagPack (GraphSense YAML) of one source or one campaign
GET /v1/export/tagpack- 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 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
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
source | consulta | string | opcional | A source's id: its current address claims as tags. A source that is not redistributable answers 403. |
campaign | consulta | string | opcional | An event id, evt_<n>, or its slug: the campaign whose members are tags. |
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. |
Qué responde
200 · application/yaml
The TagPack file (YAML).
Cabeceras: X-Omitted-Sources
| Campo | Tipo | Qué lleva |
|---|---|---|
title | string | el contrato no dice más de él |
creator | string | el contrato no dice más de él |
description | string | el contrato no dice más de él |
lastmod | string | YYYY-MM-DD |
currency | string | Uno de BTC. |
confidence | string | The source's default confidence class id. |
source | string | el contrato no dice más de él |
tags | array | el contrato no dice más de él |
tags[].address | string | el contrato no dice más de él |
tags[].label | string | el contrato no dice más de él |
tags[].category | string | The DW-VA entity short id. |
tags[].abuse | string | The DW-VA abuse short id. |
tags[].confidence | string | Present when it differs from the header. |
tags[].lastmod | string | el contrato no dice más de él |
tags[].source | string | The fetch URL. |
tags[].context | string | JSON: claim_id, citation, entity_id, role. |
tags[].actor | string | el contrato no dice más de él |
esquema TagPack
titlestring obligatoriocreatorstring obligatoriodescriptionstringlastmodstring obligatorio — YYYY-MM-DDcurrencystring obligatorio · uno de "BTC"confidencestring — The source's default confidence class id.sourcestringtagsarray de object obligatorioaddressstring obligatoriolabelstring obligatoriocategorystring — The DW-VA entity short id.abusestring — The DW-VA abuse short id.confidencestring — Present when it differs from the header.lastmodstringsourcestring — The fetch URL.contextstring — JSON: claim_id, citation, entity_id, role.actorstring
Ausente y vacío
| El caso | En 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
| 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 pack. 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/tagpack