# Wikidata items by statement

Finds Wikidata items from what they state, not their name: resolve an identifier such as an ISIN, LEI or ISSN to its item, or list items sharing properties. Needs query.

Finds Wikidata items from what they state, not their name: resolve an identifier such as an ISIN, LEI or ISSN to its item, or list items sharing properties, e.g. companies in an industry and country, without writing SPARQL. Each clause is haswbstatement:P123=value, joined by spaces for AND. Returns QIDs with label and description in your language. Pass continue_offset for the next page. Find property ids with wikidata/entity-search, type property.

- Tool ID: `wikidata/items-by-statement`
- Provider: [Wikidata](/providers/wikidata.md)
- Capability: [Wikipedia, books & web archives](/tools/knowledge/reference.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 18,
      "maxLength": 300,
      "pattern": "haswbstatement:",
      "description": "CirrusSearch query with haswbstatement clauses, e.g. 'haswbstatement:P452=Q11661 haswbstatement:P17=Q142' or 'haswbstatement:P946=US0378331005'"
    },
    "language": {
      "type": "string",
      "pattern": "^[a-z]{2,3}(-[a-z0-9]{2,8})?$",
      "default": "en",
      "description": "Language of labels and descriptions, e.g. 'fr'"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 20,
      "description": "Items to return, e.g. 20"
    },
    "continue_offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9000,
      "description": "gsroffset value from the previous result, e.g. 20"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "wikidata/items-by-statement",
  "input": {
    "query": "haswbstatement:P452=Q11661 haswbstatement:P17=Q142",
    "limit": 5
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: CC0 1.0 (Wikidata structured data).

Attribution: Data from Wikidata (CC0).

[Provider documentation](https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch)

[REST inspection](https://api.agentik.cc/v1/tools/wikidata/items-by-statement) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/wikidata/items-by-statement) · [Agent index](/llms.txt)
