How to Get Structured Data with Claude
Extract structured data from Wikipedia with Claude and ToolRouter. Facts and statistics on demand.
ToolWikipedia LookupClaude makes Wikipedia a conversational knowledge source in your terminal where each answer naturally opens the door to deeper questions. Start with a quick fact check, follow the thread into related topics, pull full articles for the sections that matter most, and extract references for primary source verification -- all in one continuous session. The iterative approach mirrors how real research works, letting you build understanding progressively rather than committing to a single query upfront.
Connect ToolRouter to Claude
1Go to Settings → Connectors → Add custom connector
2Enter the details below and click Add
Name
ToolRouterURL
https://api.toolrouter.com/mcp3Done — works on Claude chat, desktop, and mobile
Steps
Once connected (see setup above), use the Wikipedia Lookup tool:
- Ask Claude: "Get the Wikipedia summary for Tokyo and extract key statistics using wikipedia-lookup"
- Claude returns population, area, GDP, and other structured data points
- Ask: "Get the same data for the top 5 cities by population"
- Claude compiles a structured comparison dataset
Example Prompt
Try this with Claude using the Wikipedia Lookup tool
Extract key statistics for the 10 largest countries by area using wikipedia-lookup: population, capital, GDP, area, and official language.
Tips
- Ask Claude to output data in JSON or CSV format for programmatic use
- Batch multiple entity lookups in one request for efficiency
- Claude can merge data from multiple Wikipedia articles into a unified dataset