Skip to content

How to Get Structured Data with Claude

Extract structured data from Wikipedia with Claude and ToolRouter. Facts and statistics on demand.

Tool
Wikipedia Lookup icon
Wikipedia Lookup

Claude 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

1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Let Claude set you up Open Claude

Steps

Once connected (see setup above), use the Wikipedia Lookup tool:

  1. Ask Claude: "Get the Wikipedia summary for Tokyo and extract key statistics using wikipedia-lookup"
  2. Claude returns population, area, GDP, and other structured data points
  3. Ask: "Get the same data for the top 5 cities by population"
  4. 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