Skip to content

World Bank API

11 endpointsGovernment & Open DataGlobalsocial:read9 real examples

Returns World Bank indicator values, country and aggregate details, indicator metadata and per-year snapshots across all countries.

View as Markdown
GET/worldbank/projectsWorld Bank projects and operations, newest approval first, filtered by country or a text query: loans, grants and their sectors.
GET/worldbank/projectOne World Bank project or operation by its id, such as P515028: country, amounts, approval and closing dates, borrower and sectors.
GET/worldbank/indicatorValues of one indicator for one country, 50 per page, newest first.
GET/worldbank/countryOne country or aggregate: its names, region, income level and capital.
GET/worldbank/countriesEvery country and regional aggregate the World Bank lists, with region and income level, 50 per page.
GET/worldbank/snapshotOne indicator for every country and aggregate, in one year or all years, 50 per page.
GET/worldbank/indicatorsThe indicators the World Bank publishes, 50 per page, or those of one topic.
GET/worldbank/indicatorInfoOne indicator: its name, unit, source, what it measures and its topics.
GET/worldbank/topicsThe World Bank's topics, such as Agriculture & Rural Development, with what each covers.
GET/worldbank/sourcesThe databases the World Bank's indicators come from, such as World Development Indicators, 50 per page.
GET/worldbank/classesThe World Bank country groupings of one kind: regions, income levels or lending types.

projects

GET/v1/worldbank/projects

World Bank projects and operations, newest approval first, filtered by country or a text query: loans, grants and their sectors.

scope social:read1 unitcached 1 hpaginated

Parameters

country
string
ISO 3166 alpha-2 country code, such as ID, to list the projects of one country.
e.g. ID
query
string
Text to find in a project's name or description, such as education.
limit
integer
Items per page, 1 to 100.
default 20e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
agencystring
approvedDatestring
borrowerstring
closingDatestring
countrystring
grantUsdinteger (int64)
ibrdUsdinteger (int64)
idstring
idaUsdinteger (int64)
namestring
regionstring
sectorstring
totalUsdinteger (int64)
curl "https://api.hoshime.com/v1/worldbank/projects?country=ID&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "agency": "…",
      "approvedDate": "…",
      "borrower": "…",
      "closingDate": "…",
      "country": "…",
      "grantUsd": 0,
      "ibrdUsd": 0,
      "id": "abc123",
      "idaUsd": 0,
      "name": "…",
      "region": "…",
      "sector": "…",
      "totalUsd": 0
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "projects",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

project

GET/v1/worldbank/project

One World Bank project or operation by its id, such as P515028: country, amounts, approval and closing dates, borrower and sectors.

scope social:read1 unitcached 24 h

Parameters

id
string
required
World Bank project id, such as P515028.
e.g. P515028
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
agencystring
approvedDatestring
borrowerstring
closingDatestring
countrystring
grantUsdinteger (int64)
ibrdUsdinteger (int64)
idstring
idaUsdinteger (int64)
namestring
regionstring
sectorstring
totalUsdinteger (int64)
curl "https://api.hoshime.com/v1/worldbank/project?id=P515028" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "agency": "…",
    "approvedDate": "…",
    "borrower": "…",
    "closingDate": "…",
    "country": "…",
    "grantUsd": 0,
    "ibrdUsd": 0,
    "id": "abc123",
    "idaUsd": 0,
    "name": "…",
    "region": "…",
    "sector": "…",
    "totalUsd": 0
  },
  "meta": {
    "cached": false,
    "endpoint": "project",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

indicator

GET/v1/worldbank/indicator

Values of one indicator for one country, 50 per page, newest first.

scope social:read1 unitcached 24 hpaginated

Parameters

country
string
required
ISO 2 or 3 letter country code, such as US or USA, or an aggregate such as WLD.
e.g. ID
indicator
string
required
Indicator code, such as NY.GDP.MKTP.CD for GDP in current US dollars.
e.g. NY.GDP.MKTP.CD
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

2 fields
datestring
valuenumber (double) | null
curl "https://api.hoshime.com/v1/worldbank/indicator?country=ID&indicator=NY.GDP.MKTP.CD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "date": "2025",
      "value": 1445642584163.81
    },
    {
      "date": "2024",
      "value": 1396301788461.69
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "indicator",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

country

GET/v1/worldbank/country

One country or aggregate: its names, region, income level and capital.

scope social:read1 unitcached 24 h

Parameters

country
string
required
ISO 2 or 3 letter country code, such as US or USA.
e.g. ID
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
capitalCitystring
codestring
incomeLevelstring
iso2string
latitudenumber (double)
longitudenumber (double)
namestring
regionstring
curl "https://api.hoshime.com/v1/worldbank/country?country=ID" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "capitalCity": "Jakarta",
    "code": "IDN",
    "incomeLevel": "Upper middle income",
    "iso2": "ID",
    "latitude": -6.19752,
    "longitude": 106.83,
    "name": "Indonesia",
    "region": "East Asia & Pacific"
  },
  "meta": {
    "cached": false,
    "endpoint": "country",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

countries

GET/v1/worldbank/countries

Every country and regional aggregate the World Bank lists, with region and income level, 50 per page.

scope social:read1 unitcached 24 hpaginated

Parameters

cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
capitalCitystring
codestring
incomeLevelstring
iso2string
latitudenumber (double)
longitudenumber (double)
namestring
regionstring
curl "https://api.hoshime.com/v1/worldbank/countries" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "capitalCity": "Oranjestad",
      "code": "ABW",
      "incomeLevel": "High income",
      "iso2": "AW",
      "latitude": 12.5167,
      "longitude": -70.0167,
      "name": "Aruba",
      "region": "Latin America & Caribbean"
    },
    {
      "capitalCity": "",
      "code": "AFE",
      "incomeLevel": "Aggregates",
      "iso2": "ZH",
      "latitude": 0,
      "longitude": 0,
      "name": "Africa Eastern and Southern",
      "region": "Aggregates"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "countries",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

snapshot

GET/v1/worldbank/snapshot

One indicator for every country and aggregate, in one year or all years, 50 per page.

scope social:read1 unitcached 24 hpaginated

Parameters

indicator
string
required
Indicator code, such as NY.GDP.MKTP.CD for GDP in current US dollars.
e.g. NY.GDP.MKTP.CD
year
integer
Year to return. Omit it for every year the indicator covers.
e.g. 2024
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

4 fields
codestring
countrystring
datestring
valuenumber (double) | null
curl "https://api.hoshime.com/v1/worldbank/snapshot?indicator=NY.GDP.MKTP.CD&year=2024" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "code": "AFE",
      "country": "Africa Eastern and Southern",
      "date": "2024",
      "value": 1252564134751.16
    },
    {
      "code": "AFW",
      "country": "Africa Western and Central",
      "date": "2024",
      "value": 737366967283.718
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "snapshot",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

indicators

GET/v1/worldbank/indicators

The indicators the World Bank publishes, 50 per page, or those of one topic.

scope social:read1 unitcached 24 hpaginated

Parameters

topic
integer
Topic id from the topics endpoint, such as 1 for Agriculture & Rural Development. Omit it for every indicator.
e.g. 1
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
idstring
namestring
sourcestring
sourceIdstring
sourceNotestring
sourceOrganizationstring
topicsTopic[]
idstring
namestring
sourceNotestring
unitstring
curl "https://api.hoshime.com/v1/worldbank/indicators?topic=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "id": "AG.AGR.TRAC.NO",
      "name": "Agricultural machinery, tractors",
      "source": "WDI Database Archives",
      "sourceId": "57",
      "sourceNote": "Agricultural machinery refers to the number of wheel and crawler tractors (excluding garden tractors) in use in agriculture at the end of th…",
      "sourceOrganization": "Food and Agriculture Organization, electronic files and web site.",
      "topics": [
        {
          "id": "1",
          "name": "Agriculture & Rural Development",
          "sourceNote": ""
        }
      ],
      "unit": ""
    },
    {
      "id": "AG.CON.FERT.PT.ZS",
      "name": "Fertilizer consumption (% of fertilizer production)",
      "source": "World Development Indicators",
      "sourceId": "2",
      "sourceNote": "Fertilizer consumption measures the quantity of plant nutrients and is calculated as production plus imports minus exports. Fertilizer produ…",
      "sourceOrganization": "FAO electronic files and web site, Food and Agriculture Organization of the United Nations (FAO), publisher: Food and Agriculture Organizati…",
      "topics": [
        {
          "id": "1",
          "name": "Agriculture & Rural Development",
          "sourceNote": ""
        }
      ],
      "unit": ""
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "indicators",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

indicatorInfo

GET/v1/worldbank/indicatorInfo

One indicator: its name, unit, source, what it measures and its topics.

scope social:read1 unitcached 24 h

Parameters

indicator
string
required
Indicator code, such as NY.GDP.MKTP.CD for GDP in current US dollars.
e.g. NY.GDP.MKTP.CD
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
idstring
namestring
sourcestring
sourceIdstring
sourceNotestring
sourceOrganizationstring
topicsTopic[]
idstring
namestring
sourceNotestring
unitstring
curl "https://api.hoshime.com/v1/worldbank/indicatorInfo?indicator=NY.GDP.MKTP.CD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "id": "NY.GDP.MKTP.CD",
    "name": "GDP (current US$)",
    "source": "World Development Indicators",
    "sourceId": "2",
    "sourceNote": "Gross domestic product is the total income earned through the production of goods and services in an economic territory during an accounting…",
    "sourceOrganization": "Country official statistics, National Statistical Organizations and/or Central Banks;\nNational Accounts data files, Organisation for Economi…",
    "topics": [
      {
        "id": "3",
        "name": "Economy & Growth",
        "sourceNote": ""
      }
    ],
    "unit": ""
  },
  "meta": {
    "cached": false,
    "endpoint": "indicatorInfo",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

topics

GET/v1/worldbank/topics

The World Bank's topics, such as Agriculture & Rural Development, with what each covers.

scope social:read1 unitcached 24 hpaginated

Parameters

cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
idstring
namestring
sourceNotestring
curl "https://api.hoshime.com/v1/worldbank/topics" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "id": "1",
      "name": "Agriculture & Rural Development",
      "sourceNote": "For the 70 percent of the world's poor who live in rural areas, agriculture is the main source of income and employment. But depletion and d…"
    },
    {
      "id": "2",
      "name": "Aid Effectiveness",
      "sourceNote": "Aid effectiveness is the impact that aid has in reducing poverty and inequality, increasing growth, building capacity, and accelerating achi…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "topics",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

sources

GET/v1/worldbank/sources

The databases the World Bank's indicators come from, such as World Development Indicators, 50 per page.

scope social:read1 unitcached 24 hpaginated

Parameters

cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

8 fields
codestring
dataAvailableboolean
descriptionstring
idstring
metadataAvailableboolean
namestring
updateDatestring
urlstring
curl "https://api.hoshime.com/v1/worldbank/sources" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "code": "DBS",
      "dataAvailable": true,
      "description": "",
      "id": "1",
      "metadataAvailable": true,
      "name": "Doing Business",
      "updateDate": "2021-08-18",
      "url": ""
    },
    {
      "code": "IDS",
      "dataAvailable": true,
      "description": "",
      "id": "6",
      "metadataAvailable": true,
      "name": "International Debt Statistics",
      "updateDate": "2026-11-05",
      "url": ""
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "sources",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

classes

GET/v1/worldbank/classes

The World Bank country groupings of one kind: regions, income levels or lending types.

scope social:read1 unitcached 24 hpaginated

Parameters

kind
string
required
Grouping to list: region, incomeLevel or lendingType.
regionincomeLevellendingType
e.g. incomeLevel
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
codestring
idstring
namestring
curl "https://api.hoshime.com/v1/worldbank/classes?kind=incomeLevel" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "code": "XD",
      "id": "HIC",
      "name": "High income"
    },
    {
      "code": "XY",
      "id": "INX",
      "name": "Not classified"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "classes",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "worldbank",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open