World Bank Data API

How to connect World Bank Data to Grok Bot

Add the Firecrawl plugin to Grok Bot once and it can call the World Bank Data API and every other provider in Firecrawl Alexandria, with no World Bank Data integration code.

Open Markdown

To connect World Bank Data to Grok Bot, add the Firecrawl plugin to Grok Bot, sign in on a Firecrawl team with Alexandria enabled, and ask for World Bank Data data in plain language. The connection works in every Bot in your Grok Bot account, and you set it up once.

Grok Bot uses World Bank Data as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for World Bank Data.

Grok Bot is xAI's agent app. Plugins give your Bots outside tools, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect World Bank Data to Grok Bot?

  1. Add the Firecrawl plugin

    In Grok Bot, open Connect apps from the sidebar, find Firecrawl and select Connect. You can also open Firecrawl's plugin listing and select Add to Grok Bot, which opens the desktop app to finish the install.

    Grok Bot's Connect Apps window with Firecrawl and its Connect button
  2. Connect your Firecrawl account

    Grok Bot opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and select Authorize. The screen names Cursor, because the plugin is published on the Cursor Marketplace. No account yet? You can create one for free in the same flow.

    Firecrawl's consent screen for the Grok Bot plugin, with the team picker and Authorize button
  3. Ask your Bot for the data

    In a chat, ask in plain language and mention World Bank Data or Firecrawl Alexandria. To make sure the Bot uses Firecrawl, type @ and choose Firecrawl first. For example:

    Use Firecrawl to show Brazil’s annual GDP in current US dollars, indicator NY.GDP.MKTP.CD, for 2015–2024 and preserve missing values.

What can Grok Bot do with World Bank Data?

World Bank Indicators API v2: database catalog, indicator discovery, economies and aggregates, reference lists, observations (classic and dimension paths including International Debt Statistics) and extended series/economy metadata. Keyless public API.

Grok Bot can run any of World Bank Data's 11 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Concept values: The values of one dimension of a database, paged: the series of IDS (source 6), the counterpart areas (creditors) of IDS, the countries of a source, or its time periods. Costs 5 Firecrawl credits per call.
  • Countries: List economies and aggregates with ISO codes, region, admin region, income level, lending type, capital and coordinates. Filters `region`, `income_level` and `lending_type` (codes from `reference`) combine. `include_aggregates: false` drops regional and income groupings (region NA) from the page after fetching it. Costs 5 Firecrawl credits per call.
  • Country: One economy or aggregate by ISO3, ISO2 or aggregate code (BRA, BR, WLD, HIC). Costs 5 Firecrawl credits per call.
  • Data: Observations for one or more indicators and economies through the classic `country/{codes}/indicator/{ids}` path. `date` is a period or range in upstream syntax (2015:2024, 2023, 2023Q1:2024Q4, 2024M01:2024M06; quarterly and monthly periods exist only on sources such as 15 GEM). `mrv` returns the N most recent periods with a value instead (optional `gapfill`). Several indicators need `source_id`. Numbers are upstream's; `value` null means the period is listed without a value. A selection with no rows at all is a successful empty page with a warning. International Debt Statistics (source 6) series need `source_data`; upstream refuses them here. `indicator_ids` and `country_codes` may be one code or a comma-separated string; `date` and `source_id` may be numbers (a two-year list becomes 2015:2024). Unknown options are rejected by name. Costs 5 Firecrawl credits per call.
  • Indicator: One indicator's metadata: name, unit, source, source note (definition), source organization and topics. Pass `source_id` when the code exists in several databases (SP.POP.TOTL is in 2 and 40). Costs 5 Firecrawl credits per call.
  • Indicators: List or search indicators (series) in one database or one topic. Without `query` the upstream page is returned as is (server-side `page`/`per_page`). With `query` the whole scope is fetched once (up to 20,000 rows) and filtered client-side, because the API has no keyword search: every whitespace-separated word must appear in the indicator id or name, case-insensitively; paging then applies to the filtered list. Defaults to World Development Indicators (source 2) when neither `source_id` nor `topic_id` is given. Costs 5 Firecrawl credits per call.
  • Metadata: Extended metadata attributes for one series (definition, aggregation method, periodicity, license type, statistical concept, ...) or one economy (currency, income group, national accounts base year, census years, ...) within a database. Attribute ids are upstream's `metatype` ids. Costs 5 Firecrawl credits per call.
  • Reference: Reference lists that other inputs take codes from: topics (21), regions (43), income levels (7) and lending types (4). Pass `code` to look one up. Costs 5 Firecrawl credits per call.
  • Source concepts: The dimensions (concepts) of one database: Country, Series and Time for most sources; International Debt Statistics adds Counterpart-Area. Concept ids are the values `concept_values` and `metadata` take. Costs 5 Firecrawl credits per call.
  • Source data: Observations through the dimension path `sources/{source_id}/country/{c}/series/{s}[/counterpart-area/{x}]/time/{t}/data`, which serves every database including International Debt Statistics (source 6, which needs `counterpart_area`, e.g. WLD for all creditors). Time ids use upstream's dimension form (YR2022) or `all`. Each row carries every dimension value upstream lists plus the numeric value. Costs 5 Firecrawl credits per call.

See all 11 capabilities and their inputs on the World Bank Data API page.

What should I ask Grok Bot?

Name World Bank Data or Firecrawl Alexandria in the prompt so Grok Bot reaches for it.

  • Use Firecrawl to show Brazil’s annual GDP in current US dollars, indicator NY.GDP.MKTP.CD, for 2015–2024 and preserve missing values.
  • Use Firecrawl to help with this: Explain World Bank indicator NY.GDP.MKTP.CD using its published definition, unit, source organization and topics.
  • Use Firecrawl to list the first 20 individual high-income economies in the World Bank country catalog with ISO codes, capitals and region labels.
  • Use Firecrawl to show the World Bank’s extended metadata for GDP indicator NY.GDP.MKTP.CD in World Development Indicators, source 2, including periodicity and aggregation method where available.

Troubleshooting

Why doesn't my Bot use World Bank Data?

Attach Firecrawl to the chat with @ before you ask, and name World Bank Data or Firecrawl Alexandria in the prompt.

Add to Grok Bot doesn't open the app. What should I do?

Install the Grok Bot desktop app first, or open Connect apps in Grok Bot and search for Firecrawl.

Use World Bank Data in other AI apps

The same Firecrawl account reaches World Bank Data from other AI apps. Pick one for its setup steps:

Other data providers you can connect to Grok Bot

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl plugin brings those tools into Grok Bot, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, World Bank Data among them. Each provider returns structured data through documented capabilities. Grok Bot finds the capability that fits your question and calls it through the Firecrawl plugin, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a World Bank Data MCP server for Grok Bot?

Grok Bot reaches World Bank Data through Firecrawl's hosted MCP server, which serves World Bank Data and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for World Bank Data.

What does connecting World Bank Data to Grok Bot unlock?

Grok Bot can run all 11 of World Bank Data's capabilities, including Concept values, Countries and Country, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to show Brazil’s annual GDP in current US dollars, indicator NY.GDP.MKTP.CD, for 2015–2024 and preserve missing values." In the same conversation, Grok Bot can combine World Bank Data with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own World Bank Data account or API key to use it in Grok Bot?

No. Grok Bot calls World Bank Data through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate World Bank Data account or API key.

How much does it cost to use World Bank Data in Grok Bot?

Each World Bank Data call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Grok Bot, and finding the right capability is free.

Can Grok Bot use other providers besides World Bank Data?

Yes. The same Firecrawl plugin reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use World Bank Data in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Cursor, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same World Bank Data capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options