

Infrastructure, Mobility, and Housing Data Hub
Data
Available ActionsEach successful request consumes credits as outlined below.
query_infrastructure_data5cr
Details
Find out how well a country's basic systems are working for its people. Look up electricity and internet access rates, safe water and sanitation coverage, road networks, rail lines, port traffic, and urbanization trends for 200+ countries. See how city and rural access compare side by side, identify where the biggest gaps remain, and track progress toward universal coverage goals. Includes logistics performance scores, urban growth rates, slum population data, and alignment with UN Sustainable Development Goals for infrastructure and sustainable cities.
Use Cases
Mobility and transit analysis,Infrastructure access benchmarking,Housing and permit trend analysis,Urban planning support,Regional development comparisons
Connect Your Agent In 5 Min
Watch the setup guide for your platform
Or Install Locally
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections. This lightweight connector routes requests to https://api.agentpmt.com/mcp. All tool execution happens in the cloud and the server cannot edit any files on your computer.
npm install -g @agentpmt/mcp-routeragentpmt-setupActions(1)
query_infrastructure_data5cr8 params(1 required)Fetch infrastructure and urban development data for a country or region from the World Bank. Returns electricity access, internet penetration, water/sanitation access, road infrastructure, urbanization indicators, with SDG progress tracking, access gap calculations, and urban-rural divide analysis.
query_infrastructure_data5cr8 params(1 required)Fetch infrastructure and urban development data for a country or region from the World Bank. Returns electricity access, internet penetration, water/sanitation access, road infrastructure, urbanization indicators, with SDG progress tracking, access gap calculations, and urban-rural divide analysis.
country_or_regionrequiredstringCountry or region name in plain language (e.g., 'Kenya', 'United States', 'South Asia'). Uses natural language matching against the World Bank country list.
infrastructure_typestringInfrastructure type to query. Options: electricity, internet, water, roads, urban, or all.
Values:
electricityinternetwaterroadsurbanall
Default:
allurban_rural_breakdownbooleanInclude urban/rural disaggregation where available (electricity, water, sanitation).
Default:
falsetime_periodstringTime period: 'latest' (most recent year), 'YYYY' (specific year), 'YYYY:YYYY' (range), or 'last5' (last 5 years).
Default:
latestinclude_sdg_targetsbooleanInclude SDG 9 and SDG 11 targets and progress assessment.
Default:
trueinclude_access_gapsbooleanCalculate access gaps (100% minus current access) for coverage indicators.
Default:
trueinclude_logistics_performancebooleanInclude Logistics Performance Index (LPI) data. Only applies when infrastructure_type is 'roads' or 'all'.
Default:
falseinclude_regional_comparisonbooleanInclude regional averages for comparison.
Default:
falsecurl -X POST "https://api.agentpmt.com/products/purchase" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ********" \
-d '{
"product_id": "6980d8d871cad8f61bf5b1c4",
"parameters": {
"action": "query_infrastructure_data",
"country_or_region": "example_country_or_region",
"infrastructure_type": "all",
"urban_rural_breakdown": false,
"time_period": "latest",
"include_sdg_targets": true,
"include_access_gaps": true,
"include_logistics_performance": false,
"include_regional_comparison": false
}
}'import requests
import json
url = "https://api.agentpmt.com/products/purchase"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
}
data = {
"product_id": "6980d8d871cad8f61bf5b1c4",
"parameters": {
"action": "query_infrastructure_data",
"country_or_region": "example_country_or_region",
"infrastructure_type": "all",
"urban_rural_breakdown": false,
"time_period": "latest",
"include_sdg_targets": true,
"include_access_gaps": true,
"include_logistics_performance": false,
"include_regional_comparison": false
}
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980d8d871cad8f61bf5b1c4",
parameters: {
"action": "query_infrastructure_data",
"country_or_region": "example_country_or_region",
"infrastructure_type": "all",
"urban_rural_breakdown": false,
"time_period": "latest",
"include_sdg_targets": true,
"include_access_gaps": true,
"include_logistics_performance": false,
"include_regional_comparison": false
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));const axios = require('axios');
const url = "https://api.agentpmt.com/products/purchase";
const headers = {
"Content-Type": "application/json",
"Authorization": "Bearer ********"
};
const data = {
product_id: "6980d8d871cad8f61bf5b1c4",
parameters: {
"action": "query_infrastructure_data",
"country_or_region": "example_country_or_region",
"infrastructure_type": "all",
"urban_rural_breakdown": false,
"time_period": "latest",
"include_sdg_targets": true,
"include_access_gaps": true,
"include_logistics_performance": false,
"include_regional_comparison": false
}
};
axios.post(url, data, { headers })
.then(response => {
console.log(response.status);
console.log(response.data);
})
.catch(error => {
console.error("Error:", error.message);
});Login to view your API and budget keys. The example above uses placeholder values. Sign in to see personalized code with your bearer token.
This tool supports credit-based access for external agents using AgentAddress identities or standard crypto wallets. External agents should use the External Agent API to buy credits with x402 and invoke this tool.
1. Buy Credits
Purchase credits via x402 payment (500 credit minimum, 100 credits = $1).
# Request payment requirements (returns 402 + PAYMENT-REQUIRED header)
curl -i -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'
# Sign the EIP-3009 authorization, then retry with signature header
curl -s -X POST "https://www.agentpmt.com/api/external/credits/purchase" \
-H "Content-Type: application/json" \
-H "PAYMENT-SIGNATURE: <base64-json>" \
-d '{ "wallet_address":"0xYOUR_WALLET", "credits": 500, "payment_method":"x402" }'2. Create a Session Nonce (nonce used in signed balance/invoke)
curl -s -X POST "https://www.agentpmt.com/api/external/auth/session" \
-H "Content-Type: application/json" \
-d '{ "wallet_address":"0xYOUR_WALLET" }'3. Invoke This Tool
Sign the message with your wallet (EIP-191 personal-sign), then POST to the invoke endpoint.
# Sign this message (wallet MUST be lowercased):
# agentpmt-external
# wallet:0xyourwallet...
# session:<session_nonce>
# request:<request_id>
# method:POST
# path:/external/tools/infrastructure-urban-development/actions/<actionSlug>/invoke
# payload:<sha256(canonical_json(parameters))>
curl -s -X POST "https://www.agentpmt.com/api/external/tools/infrastructure-urban-development/actions/<actionSlug>/invoke" \
-H "Content-Type: application/json" \
-d '{
"wallet_address": "0xYOUR_WALLET",
"session_nonce": "<session_nonce>",
"request_id": "invoke-uuid",
"signature": "0x<signature>",
"parameters": {
"your_param": "value"
}
}'Usage Instructions
Usage guidance provided directly by the developer for this product.
Infrastructure, Mobility, and Housing Data Hub
Overview
Natural language interface to World Bank infrastructure and urban development data. Query electricity access, internet penetration, water and sanitation access, road infrastructure, and urbanization indicators by country or region. No indicator codes needed -- just provide a country name and infrastructure type.
Data sourced from the World Bank API. Covers electricity access (total, urban, rural), internet and mobile connectivity, water and sanitation, urban development (population, growth, slum population), transport and logistics (roads, rail, air, ports, LPI), and energy infrastructure. Includes SDG 9 (Industry/Infrastructure) and SDG 11 (Sustainable Cities) progress tracking, access gap calculations, urban-rural divide analysis, and country metadata (region, income level).
Actions
query_infrastructure_data
Fetches infrastructure and urban development data for a country or region from the World Bank.
Required parameters:
country_or_region(string): Country or region name in plain language (e.g., "Kenya", "United States", "South Asia"). Uses natural language matching against the full World Bank country list.
Optional parameters:
infrastructure_type(string): One of "electricity", "internet", "water", "roads", "urban", or "all". Defaults to "all" if omitted or not provided.urban_rural_breakdown(boolean): Include urban/rural disaggregation where available (electricity, water, sanitation). Defaults to false.time_period(string): "latest" (most recent year), a specific year "2020", a range "2015:2020", or "last5" (last 5 years). Defaults to "latest".include_sdg_targets(boolean): Include SDG 9 and SDG 11 targets and progress assessment. Defaults to true.include_access_gaps(boolean): Calculate access gaps (100% minus current access) for coverage indicators. Defaults to true.include_logistics_performance(boolean): Include Logistics Performance Index (LPI) data. Only applies when infrastructure_type is "roads" or "all". Defaults to false.include_regional_comparison(boolean): Include a note about regional averages for comparison. Defaults to false.
Example -- Electricity access in Kenya with urban/rural breakdown:
{
"action": "query_infrastructure_data",
"country_or_region": "Kenya",
"infrastructure_type": "electricity",
"urban_rural_breakdown": true
}
Example -- All infrastructure data for India:
{
"action": "query_infrastructure_data",
"country_or_region": "India",
"infrastructure_type": "all"
}
Example -- Internet connectivity in South Asia over the last 5 years:
{
"action": "query_infrastructure_data",
"country_or_region": "South Asia",
"infrastructure_type": "internet",
"time_period": "last5"
}
Example -- Water and sanitation access with SDG targets and access gaps:
{
"action": "query_infrastructure_data",
"country_or_region": "Nigeria",
"infrastructure_type": "water",
"include_sdg_targets": true,
"include_access_gaps": true
}
Example -- Roads and logistics for Germany with LPI data:
{
"action": "query_infrastructure_data",
"country_or_region": "Germany",
"infrastructure_type": "roads",
"include_logistics_performance": true
}
Example -- Urban development data for Brazil with regional comparison:
{
"action": "query_infrastructure_data",
"country_or_region": "Brazil",
"infrastructure_type": "urban",
"include_regional_comparison": true
}
Example -- Specific year range for United States:
{
"action": "query_infrastructure_data",
"country_or_region": "United States",
"infrastructure_type": "electricity",
"time_period": "2015:2020"
}
Workflows
Country Infrastructure Profile
- Call
query_infrastructure_datawith a country andinfrastructure_type: "all"to get a complete infrastructure overview. - Review the
sdg_progresssection for SDG 9 and SDG 11 target tracking. - Check
access_gapsto see where coverage is lacking.
Urban-Rural Divide Analysis
- Call
query_infrastructure_datawithurban_rural_breakdown: trueandinfrastructure_typeset to "electricity", "water", or "all". - Review the
urban_rural_dividesection for analysis of the divide (minimal, moderate, significant, or severe). - Use the interpretation text for reporting.
SDG Progress Monitoring
- Call
query_infrastructure_datawithinclude_sdg_targets: true. - Review the
sdg_progresssection which shows current value, target, gap, progress percentage, and whether the target is being met. - SDG targets tracked: SDG 7.1 (electricity), SDG 9.c (internet/broadband), SDG 6.1 (water), SDG 6.2 (sanitation), SDG 11.1 (housing/slums), SDG 9.1 (logistics).
Logistics and Trade Infrastructure
- Call
query_infrastructure_datawithinfrastructure_type: "roads"andinclude_logistics_performance: true. - Review road density, paved roads, rail lines, air transport, container port traffic, and LPI score.
- LPI score ranges from 1 (low) to 5 (high) and covers customs, infrastructure, shipments, competence, tracking, and timeliness.
Notes
- Country matching: Uses the World Bank country/region API for natural language matching. Tries exact match first, then partial match. Works with full country names and standard region names.
- Infrastructure types and their indicators:
electricity: electricity access (total, urban, rural), electric power consumption, renewable energy %internet: internet users %, mobile subscriptions, broadband subscriptions, fixed broadband, secure internet serverswater: water access (total, urban, rural), sanitation access (total, urban, rural)urban: urban population %, urban growth rate, total urban population, slum population %roads: road density, paved roads %, rail lines, logistics performance (LPI), air transport passengers, container port trafficall: all indicators across all types
- Access gap calculation: For percentage-based access indicators (electricity, internet, water, sanitation), calculates 100% minus current access. Shows current access, gap, and interpretation.
- SDG target comparison: Compares current values against SDG 2030 targets. For slum population, lower is better. For access indicators, higher is better. Non-numeric targets show "See SDG target for goal".
- Urban-rural divide assessment thresholds: less than 5pp = minimal, 5-15pp = moderate, 15-30pp = significant, over 30pp = severe.
- Response includes: country metadata (name, ISO code, region, income level, capital city, coordinates), indicator data with latest value and year, and optional sections for access gaps, SDG progress, urban-rural divide, logistics notes, and regional comparison notes.
- If
infrastructure_typeis not one of the valid options, a validation error is returned listing valid options. - If
country_or_regionis missing forquery_infrastructure_data, a validation error is returned. - Data availability varies by country and indicator. Some indicators may have no data for certain countries or time periods.





