btcintel

TagPack (GraphSense YAML) of one source or one campaign

GET /v1/export/tagpack
who may call it
Anyone
no key and no session
what it costs
1 request of the quota
tiers and keys
how fresh
Cached for 5 minutes
every answer carries the index's height and the node's
MCP tool
None
On this page

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

NameWhereTypeRequiredWhat it does
sourcequerystringoptionalA source's id: its current address claims as tags. A source that is not redistributable answers 403.
campaignquerystringoptionalAn event id, evt_<n>, or its slug: the campaign whose members are tags.
confidence_classquerystringoptionalOnly 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_kindquerystringoptionalOnly 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

FieldTypeWhat it carries
titlestringthe contract says nothing more of it
creatorstringthe contract says nothing more of it
descriptionstringthe contract says nothing more of it
lastmodstringYYYY-MM-DD
currencystringOne of BTC.
confidencestringThe source's default confidence class id.
sourcestringthe contract says nothing more of it
tagsarraythe contract says nothing more of it
tags[].addressstringthe contract says nothing more of it
tags[].labelstringthe contract says nothing more of it
tags[].categorystringThe DW-VA entity short id.
tags[].abusestringThe DW-VA abuse short id.
tags[].confidencestringPresent when it differs from the header.
tags[].lastmodstringthe contract says nothing more of it
tags[].sourcestringThe fetch URL.
tags[].contextstringJSON: claim_id, citation, entity_id, role.
tags[].actorstringthe contract says nothing more of it
schema TagPack
  • title string required
  • creator string required
  • description string
  • lastmod string required — YYYY-MM-DD
  • currency string required · one of "BTC"
  • confidence string — The source's default confidence class id.
  • source string
  • tags array of object required
    • address string required
    • label string required
    • 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

Absent and empty

The caseIn 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

StatusCodeWhen
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.

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