---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/wikipedia-lookup/use-cases/get-structured-data/openclaw
---
# How to Get Structured Data with OpenClaw

OpenClaw uses Wikipedia as a structured data extraction engine for teams that need reference information at scale. Batch-query entities, compile comparison datasets across dozens of topics, and build knowledge bases from Wikipedia content in a single systematic session. The structured output -- with consistent fields, formatting, and attribution -- is ready for direct import into internal wikis, training materials, application seed data, or research databases without the manual reformatting that ad-hoc lookups require.

## Setup

openclaw mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: openclaw mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask OpenClaw: "Get key data about the European Union from Wikipedia using wikipedia-lookup"
3. OpenClaw extracts structured facts and statistics
4. Request: "Output this as a structured JSON object"
5. Use the data in your application or analysis

## Example Prompt

```
Extract key statistics about the G7 countries from Wikipedia: population, GDP, currency, and head of state.
```

## Tips

- Specify exactly which fields you need for cleaner, more useful output
- Ask for data in a consistent format when comparing multiple entities
- Use search first to find the correct Wikipedia article title for each entity
