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'sbulk_max_subjectscaps how many one lookup names. · tiers and keys - how fresh
- Never cached
- every answer carries the index's height and the node's
Up to 20 subjects per call at tier T0; keys are canonicalised and duplicates collapsed.
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
subjects | body | array | 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. |
include | body | array | optional | What to return: annotations (the default), attributions, and provisional to add the provisional claims a human has not promoted yet. |
confidence_class | body | 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, before any subject is read. |
source_kind | body | string | optional | 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. |
The body is application/json.
schema
subjectsarray of object required — The subjects to look up, at least one and at most the tier'sbulk_max_subjects(20 at t0); more is a 413too_large. A subject named twice, once canonicalised, is looked up once.kindstring required — The kind of subject: address, script, tx, block, outpoint, pool, descriptor or pubkey. Another kind lands innot_foundwith its reason.keystring required — Its key, canonicalised as its kind wants. A key that does not parse lands innot_foundwith 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.
includearray of string — What to return: annotations (the default), attributions, andprovisionalto add the provisional claims a human has not promoted yet.confidence_classstring — 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 400invalid_input, before any subject is read. · at most 100 characterssource_kindstring — Only claims from sources of this kind, one of the eleven a source can have. Any other value is a 400invalid_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.
| Field | Type | What it carries |
|---|---|---|
results | array | One entry for each subject with something found, in the order asked. |
results[].subject | object | The subject, canonicalised. |
results[].annotations | array | Its claims that the filters keep. Present unless include leaves annotations out; empty when the subject has none but its attributions were found. |
results[].attributions | array | Its attributions, in the read policy's order. Present only when include names attributions. |
results[].disputed | boolean | True when its two first attributions name different entities. Present with attributions. |
not_found | array | The subjects with nothing found, and those that do not parse, in the order asked. Empty when every subject was found. |
not_found[].kind | string | The subject's kind: canonical, or as sent when the subject does not parse. |
not_found[].key | string | Its key: canonicalised, or as sent when the subject does not parse. |
not_found[].reason | string | Why the subject does not parse. Absent for a subject that parsed and has nothing. |
schema
resultsarray of object — One entry for each subject with something found, in the order asked.subjectSubject — The subject, canonicalised.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
annotationsarray of Claim — Its claims that the filters keep. Present unlessincludeleaves annotations out; empty when the subject has none but its attributions were found.sourceobject — The source that states the claim: its id, name, kind and attribution text.idstring — The source's id, as in GET /v1/sources.namestring — The source's name.kindstring — The source's kind: sanctions, crime-intel, osint-report, …attributionstring — The text to render with every claim of the source. Empty when it asks for none.
fetchobject — The fetch that first stated the claim's current content: the onecontent_sha256covers.idinteger — The fetch's id.sha256string — The SHA-256 of the file as fetched, hex. The file itself is not kept.fetched_atstring (date-time) — When the file was fetched.urlstring — Where the file was downloaded from. Absent when the fetch records no address, as for a file pushed to the API.
confidenceobject — The claim's confidence: its class, and the level of that class.classstring — The confidence class, without itsconfidence:prefix: authority_data, service_data, web_crawl, …levelinteger — The class's level, 0 to 100, as the confidence vocabulary sets it: the same for every claim of that class.
validityobject — When the claim holds, and whether it was retracted.fromstring (date-time) — The instant the claim holds from.tostring | null (date-time) — The instant it stops holding. Null when no end is set.retracted_atstring | null (date-time) — When the claim was retracted. Null when it was not.retraction_reasonstring | null — Why it was retracted. Null when it was not.
claim_idstring — The claim's id, ann_<n>: the idGET /v1/claims/{claim_id}takes.kindstring required — Alwaysannotation: a claim on a subject. · one of "annotation"disputesDisputeCounts — 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.openinteger required — How many of the disputes are open.resolvedinteger required — How many of them were resolved. A withdrawn dispute counts in neither.
versioninteger — The claim's version in force, counted from 1. Absent when no version of the claim is recorded, andcontent_sha256,citationandcontentwith it.content_sha256string — The SHA-256 of the version's canonical content (content), hex. The citation carries its first 16 characters.citationstring — btcintel:annotations:<id>@v<n> sha256:<16 hex>contentobject — 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.subjectSubject — The subject the claim is on.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
labelstring — The claim's short label, as the import of its source or its approved proposal wrote it.categorystring — DW-VA entity concept (entity:…).abusestring — DW-VA abuse concept (abuse:…).conceptsarray of string — Other concepts of the vocabulary the claim states. Empty when it states none.entityobject — The entity the claim names: its id, and its name and kind when the entity is known. Absent when the claim names none.idstring — The entity's id: the idGET /v1/entities/{id}takes.namestring — The entity's name.kindstring — The entity's kind, an entity:… concept.
subject_namestring | null required — The name the source gives the subject. Null when the source gives none. Outside the hashed content.subject_name_esstring | null required — That name in Spanish. Null when untranslated; never a copy of subject_name.rolestring | null required — The claim's role. Null when it names none.source_namestring | null required — The source's name, the same string as source.name, so hop0 and annotations share one shape.methodstring — How the claim was made:importfor one read from the source's file,manualfor an approved proposal, or another word an import names (tagpack,output_of_sweep).source_confidencestring — What the source said, verbatim.first_reported_atstring (date-time) — When the source says the subject was first reported. Absent when it gives no date.evidencearray 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.metadataobject — 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_atstring (date-time) — When btcintel first wrote the claim.updated_atstring (date-time) — When the claim's row last changed.last_seenobject — 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_idinteger required — The id of the newest fetch whose file still states the claim.fetched_atstring (date-time) required — When that fetch was made.
statusstring — The claim's state. Onlycurrentrows are current claims;provisionalones (a source's first import or a large batch) are served only when asked for (include=provisional) and wait for a human's promotion;heldandrejectedrows are served to operators only. Outside the hashed content: a promotion changes the state, never the claim. · one of "current", "provisional", "held", "rejected"status_reasonstring — Why a row is provisional, held or rejected.chain_checkobject — 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.resultstring —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_atstring (date-time) — When the check ran. Absent when its time was not recorded.
campaignone 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
attributionsarray of Attribution — Its attributions, in the read policy's order. Present only whenincludenamesattributions.claim_idstring — The attribution's id, att_<n>: the idGET /v1/claims/{claim_id}takes.kindstring required — Alwaysattribution. · one of "attribution"disputesDisputeCounts — 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.openinteger required — How many of the disputes are open.resolvedinteger required — How many of them were resolved. A withdrawn dispute counts in neither.
versioninteger — The attribution's version in force, counted from 1. Absent when no version is recorded, andcontent_sha256andcitationwith it.content_sha256string — The SHA-256 of the version's canonical content, hex. The citation carries its first 16 characters.citationstring — btcintel:attributions:<id>@v<n> sha256:<16 hex>subjectSubject — The block the attribution is on.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
entityobject — The entity the attribution names: its id and its name.idstring — The entity's id: the idGET /v1/entities/{id}takes.namestring — The entity's name.
methodstring — 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_idinteger — The id of the catalog signature that matched, a tag or an address. Absent when no signature matched, as for a manual attribution.matcher_versionstring — The version of the matcher that made the attribution.sourceobject — The catalog the attribution rests on: its id and its name.idstring — The source's id, as in GET /v1/sources.namestring — The source's name.
fetchobject — The fetch of the catalog the attribution rests on: its id and sha256. Absent when the attribution has no fetch, as a manual one.confidenceobject — The attribution's confidence: its class, and the level of that class.classstring — The confidence class, without itsconfidence:prefix.levelinteger — The class's level, 0 to 100, as the confidence vocabulary sets it.
validityobject — When the attribution holds:from,toandretracted_at, each null when not set.evidenceobject — What the matcher recorded of the match, as stored.{}when nothing.created_atstring (date-time) — When btcintel wrote the attribution.
disputedboolean — True when its two first attributions name different entities. Present withattributions.
not_foundarray of object — The subjects with nothing found, and those that do not parse, in the order asked. Empty when every subject was found.kindstring — The subject's kind: canonical, or as sent when the subject does not parse.keystring — Its key: canonicalised, or as sent when the subject does not parse.reasonstring — Why the subject does not parse. Absent for a subject that parsed and has nothing.
Absent and empty
| The case | In 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
| Status | Code | When |
|---|---|---|
| 400 | invalid_input, not_found | A 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. |
| 413 | too_large | Over 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