btcintel

Bulk lookup of claims by subject

POST /v1/annotations/lookup
who may call it
Anyone
no key and no session
what it costs
1 request of the quota
held to bulk_max_subjects · One request, whatever the number of subjects; the tier's bulk_max_subjects caps how many one lookup names. · tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
lookup_subjects
on the MCP server
On this page

Up to 20 subjects per call at tier T0; keys are canonicalised and duplicates collapsed.

Parameters

NameWhereTypeRequiredWhat it does
subjectsbodyarrayrequiredThe subjects to look up, at least one and at most the tier's bulk_max_subjects (20 at t0); more is a 413 too_large. A subject named twice, once canonicalised, is looked up once.
includebodyarrayoptionalWhat to return: annotations (the default), attributions, and provisional to add the provisional claims a human has not promoted yet.
confidence_classbodystringoptionalOnly 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, before any subject is read.
source_kindbodystringoptionalOnly claims from sources of this kind, one of the eleven a source can have. Any other value is a 400 invalid_input, before any subject is read.

The body is application/json.

schema
  • subjects array of object required — The subjects to look up, at least one and at most the tier's bulk_max_subjects (20 at t0); more is a 413 too_large. A subject named twice, once canonicalised, is looked up once.
    • kind string required — The kind of subject: address, script, tx, block, outpoint, pool, descriptor or pubkey. Another kind lands in not_found with its reason.
    • key string required — Its key, canonicalised as its kind wants. A key that does not parse lands in not_found with its reason; a key that holds a private key, a WIF key or an extended private key such as a descriptor may carry, refuses the whole lookup with 400 instead, never repeated.
  • include array of string — What to return: annotations (the default), attributions, and provisional to add the provisional claims a human has not promoted yet.
  • confidence_class string — 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, before any subject is read. · at most 100 characters
  • source_kind string — Only claims from sources of this kind, one of the eleven a source can have. Any other value is a 400 invalid_input, before any subject is read. · one of "sanctions", "advisory", "crime-intel", "osint-report", "pool-catalog", "taxonomy", "tagpack", "service-disclosure", "research", "rule", "manual"

What it answers

Results per subject.

FieldTypeWhat it carries
resultsarrayOne entry for each subject with something found, in the order asked.
results[].subjectobjectThe subject, canonicalised.
results[].annotationsarrayIts claims that the filters keep. Present unless include leaves annotations out; empty when the subject has none but its attributions were found.
results[].attributionsarrayIts attributions, in the read policy's order. Present only when include names attributions.
results[].disputedbooleanTrue when its two first attributions name different entities. Present with attributions.
not_foundarrayThe subjects with nothing found, and those that do not parse, in the order asked. Empty when every subject was found.
not_found[].kindstringThe subject's kind: canonical, or as sent when the subject does not parse.
not_found[].keystringIts key: canonicalised, or as sent when the subject does not parse.
not_found[].reasonstringWhy the subject does not parse. Absent for a subject that parsed and has nothing.
schema
  • results array of object — One entry for each subject with something found, in the order asked.
    • subject Subject — The subject, canonicalised.
      • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
      • key string — Canonical key.
    • annotations array of Claim — Its claims that the filters keep. Present unless include leaves annotations out; empty when the subject has none but its attributions were found.
      • source object — The source that states the claim: its id, name, kind and attribution text.
        • id string — The source's id, as in GET /v1/sources.
        • name string — The source's name.
        • kind string — The source's kind: sanctions, crime-intel, osint-report, …
        • attribution string — The text to render with every claim of the source. Empty when it asks for none.
      • fetch object — The fetch that first stated the claim's current content: the one content_sha256 covers.
        • id integer — The fetch's id.
        • sha256 string — The SHA-256 of the file as fetched, hex. The file itself is not kept.
        • fetched_at string (date-time) — When the file was fetched.
        • url string — Where the file was downloaded from. Absent when the fetch records no address, as for a file pushed to the API.
      • confidence object — The claim's confidence: its class, and the level of that class.
        • class string — The confidence class, without its confidence: prefix: authority_data, service_data, web_crawl, …
        • level integer — The class's level, 0 to 100, as the confidence vocabulary sets it: the same for every claim of that class.
      • validity object — When the claim holds, and whether it was retracted.
        • from string (date-time) — The instant the claim holds from.
        • to string | null (date-time) — The instant it stops holding. Null when no end is set.
        • retracted_at string | null (date-time) — When the claim was retracted. Null when it was not.
        • retraction_reason string | null — Why it was retracted. Null when it was not.
      • claim_id string — The claim's id, ann_<n>: the id GET /v1/claims/{claim_id} takes.
      • kind string required — Always annotation: a claim on a subject. · one of "annotation"
      • disputes DisputeCounts — How many of the claim's disputes are open and how many were resolved. Only the claim's own read (GET /v1/claims/{claim_id}) carries it, and only when the disputes could be counted; every other read leaves it out.
        • open integer required — How many of the disputes are open.
        • resolved integer required — How many of them were resolved. A withdrawn dispute counts in neither.
      • version integer — The claim's version in force, counted from 1. Absent when no version of the claim is recorded, and content_sha256, citation and content with it.
      • content_sha256 string — The SHA-256 of the version's canonical content (content), hex. The citation carries its first 16 characters.
      • citation string — btcintel:annotations:<id>@v<n> sha256:<16 hex>
      • content object — The canonical content object content_sha256 covers: the stored confidence id, times to the second, evidence as stored. Serialise it with RFC 8785 and SHA-256 the bytes to re-verify the claim. Present with version.
      • subject Subject — The subject the claim is on.
        • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
        • key string — Canonical key.
      • label string — The claim's short label, as the import of its source or its approved proposal wrote it.
      • category string — DW-VA entity concept (entity:…).
      • abuse string — DW-VA abuse concept (abuse:…).
      • concepts array of string — Other concepts of the vocabulary the claim states. Empty when it states none.
      • entity object — The entity the claim names: its id, and its name and kind when the entity is known. Absent when the claim names none.
        • id string — The entity's id: the id GET /v1/entities/{id} takes.
        • name string — The entity's name.
        • kind string — The entity's kind, an entity:… concept.
      • subject_name string | null required — The name the source gives the subject. Null when the source gives none. Outside the hashed content.
      • subject_name_es string | null required — That name in Spanish. Null when untranslated; never a copy of subject_name.
      • role string | null required — The claim's role. Null when it names none.
      • source_name string | null required — The source's name, the same string as source.name, so hop0 and annotations share one shape.
      • method string — How the claim was made: import for one read from the source's file, manual for an approved proposal, or another word an import names (tagpack, output_of_sweep).
      • source_confidence string — What the source said, verbatim.
      • first_reported_at string (date-time) — When the source says the subject was first reported. Absent when it gives no date.
      • evidence array of object — What the source gives in support, as stored: entries such as a URL, a txid or an external id. Empty when it gives none.
      • metadata object — What the import kept of the source's record outside the hashed content, such as the record's key. Absent when there is nothing.
      • created_at string (date-time) — When btcintel first wrote the claim.
      • updated_at string (date-time) — When the claim's row last changed.
      • last_seen object — The newest fetch whose file still states the claim. Never hashed: a restatement confirms the claim and leaves its version and citation as they are.
        • fetch_id integer required — The id of the newest fetch whose file still states the claim.
        • fetched_at string (date-time) required — When that fetch was made.
      • status string — The claim's state. Only current rows are current claims; provisional ones (a source's first import or a large batch) are served only when asked for (include=provisional) and wait for a human's promotion; held and rejected rows are served to operators only. Outside the hashed content: a promotion changes the state, never the claim. · one of "current", "provisional", "held", "rejected"
      • status_reason string — Why a row is provisional, held or rejected.
      • chain_check object — What the fact the source stated (an address spent in a block, an amount, a payment) looked like on the chain at import. It checks the stated fact, never the intent behind it. Absent when no check ran.
        • result string — verified: the chain shows the stated fact. mismatch: it shows otherwise. not_checkable: the fact could not be looked up. · one of "verified", "mismatch", "not_checkable"
        • checked_at string (date-time) — When the check ran. Absent when its time was not recorded.
      • campaign one of required — The campaign the claim is a member of. Null when it is not a member. A victim's role carries no abuse word. The same object as on hop0.
        • CampaignBrief — A campaign a claim belongs to, the object address annotations already carried (id, slug, title, role) plus the display fields. title_es is null when the curator has not written a Spanish title; it is never a copy of title. short_title is at most 30 characters and null when unwritten. started_at is the event's occurred_at.
        • null
    • attributions array of Attribution — Its attributions, in the read policy's order. Present only when include names attributions.
      • claim_id string — The attribution's id, att_<n>: the id GET /v1/claims/{claim_id} takes.
      • kind string required — Always attribution. · one of "attribution"
      • disputes DisputeCounts — How many of the attribution's disputes are open and how many were resolved. Only the claim's own read (GET /v1/claims/{claim_id}) carries it, and only when the disputes could be counted; every other read leaves it out.
        • open integer required — How many of the disputes are open.
        • resolved integer required — How many of them were resolved. A withdrawn dispute counts in neither.
      • version integer — The attribution's version in force, counted from 1. Absent when no version is recorded, and content_sha256 and citation with it.
      • content_sha256 string — The SHA-256 of the version's canonical content, hex. The citation carries its first 16 characters.
      • citation string — btcintel:attributions:<id>@v<n> sha256:<16 hex>
      • subject Subject — The block the attribution is on.
        • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
        • key string — Canonical key.
      • entity object — The entity the attribution names: its id and its name.
        • id string — The entity's id: the id GET /v1/entities/{id} takes.
        • name string — The entity's name.
      • method string — How the block was matched: a coinbase tag, a coinbase payout address or script, the template seen before the block, or by hand. · one of "coinbase_tag", "coinbase_address", "coinbase_script", "prev_template", "manual"
      • signature_id integer — The id of the catalog signature that matched, a tag or an address. Absent when no signature matched, as for a manual attribution.
      • matcher_version string — The version of the matcher that made the attribution.
      • source object — The catalog the attribution rests on: its id and its name.
        • id string — The source's id, as in GET /v1/sources.
        • name string — The source's name.
      • fetch object — The fetch of the catalog the attribution rests on: its id and sha256. Absent when the attribution has no fetch, as a manual one.
      • confidence object — The attribution's confidence: its class, and the level of that class.
        • class string — The confidence class, without its confidence: prefix.
        • level integer — The class's level, 0 to 100, as the confidence vocabulary sets it.
      • validity object — When the attribution holds: from, to and retracted_at, each null when not set.
      • evidence object — What the matcher recorded of the match, as stored. {} when nothing.
      • created_at string (date-time) — When btcintel wrote the attribution.
    • disputed boolean — True when its two first attributions name different entities. Present with attributions.
  • not_found array of object — The subjects with nothing found, and those that do not parse, in the order asked. Empty when every subject was found.
    • kind string — The subject's kind: canonical, or as sent when the subject does not parse.
    • key string — Its key: canonicalised, or as sent when the subject does not parse.
    • reason string — Why the subject does not parse. Absent for a subject that parsed and has nothing.

Absent and empty

The caseIn the answer
Nothing is found for a subject.It is listed in not_found, not in results.
A subject that does not parse.It is listed in not_found with its reason.

Errors

StatusCodeWhen
400invalid_input, not_foundA body outside the contract (invalid_input), named in the message. Among them a filter the API does not hold: a confidence_class the vocabulary does not hold, a source_kind outside the eleven. It is refused before any subject is read, so a filter never puts a subject in not_found. A subject whose key holds a private key refuses the lookup too; the message never repeats the key.
413too_largeOver the subject limit (too_large).

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 -X POST https://api.btcintel.io/v1/annotations/lookup \
  -H 'Content-Type: application/json' \
  -d '{"subjects":[{"kind":"address","key":"bc1qz654h5qcqzalv6ltpxsk4ksdcc3e20wkedqntgnarv3a0t2e2p7scr48pl"}],"include":["annotations"]}' | jq