TagPack (GraphSense YAML) of one source or one campaign
GET /v1/export/tagpack- who may call it
- Anyone
- no key and no session
- how fresh
- Cached for 5 minutes
- every answer carries the index's height and the node's
- MCP tool
- None
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.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
source | query | string | optional | A source's id: its current address claims as tags. A source that is not redistributable answers 403. |
campaign | query | string | optional | An event id, evt_<n>, or its slug: the campaign whose members are tags. |
confidence_class | query | string | optional | 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 | query | string | optional | 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. |
What it answers
200 · application/yaml
The TagPack file (YAML).
Headers: X-Omitted-Sources
| Field | Type | What it carries |
|---|---|---|
title | string | the contract says nothing more of it |
creator | string | the contract says nothing more of it |
description | string | the contract says nothing more of it |
lastmod | string | YYYY-MM-DD |
currency | string | One of BTC. |
confidence | string | The source's default confidence class id. |
source | string | the contract says nothing more of it |
tags | array | the contract says nothing more of it |
tags[].address | string | the contract says nothing more of it |
tags[].label | string | the contract says nothing more of it |
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 | the contract says nothing more of it |
tags[].source | string | The fetch URL. |
tags[].context | string | JSON: claim_id, citation, entity_id, role. |
tags[].actor | string | the contract says nothing more of it |
schema TagPack
titlestring requiredcreatorstring requireddescriptionstringlastmodstring required — YYYY-MM-DDcurrencystring required · one of "BTC"confidencestring — The source's default confidence class id.sourcestringtagsarray of object requiredaddressstring requiredlabelstring requiredcategorystring — 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
Absent and empty
| The case | In the answer |
|---|---|
| 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. |
Errors
| Status | Code | When |
|---|---|---|
| 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. |
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/tagpack