Hi Girish,
There is an API documentation for indicator queries:
http://data.worldbank.org/node/203
Get the XML output of all indicator meta data:
http://api.worldbank.org/indicators?format=xml&per_page=20000
Search for keywords in that document and grab the indicator codes
accordingly.
Then make another call for that indicator to get all the observations
for an area:
http://api.worldbank.org/countries/{countryCode}/indicators/{indicatorCode}?per_page=20000
countryCode is either 'all' or country code used in:
http://api.worldbank.org/countries?format=xml&per_page=20000
This is your best bet. But, there are alternative ways to get a hold of
this information.
---
Use the text search interface for indicators:
http://data.worldbank.org/indicator
Click on the result items to go to the indicator URL and grab the
indicator notation from the URL component.
Like earlier, make a specific call for those indicator observations.
---
Yet another way is to use a SPARQL Endpoint with the World Bank
Development Indicators data. NOTE: This is not endorsed in any way by
The World Bank. For data validity, you should always resort to The World
Bank's API.
http://worldbank.270a.info/sparql
The following query reveals the available indicator codes that has to do
with "pollution":
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX classification: <http://worldbank.270a.info/classification/>
PREFIX g-meta: <http://worldbank.270a.info/graph/meta>
SELECT *
WHERE {
GRAPH g-meta: {
?indicatorURI
skos:inScheme classification:indicator ;
skos:prefLabel ?prefLabel ;
skos:notation ?notation ;
foaf:page ?page ;
.
FILTER (regex(?prefLabel, "pollution", "i") && regex(?prefLabel,
"air|water|soil", "i"))
}
}
Apparently, there are no matches for "air" and "soil". Results at:
I didn't do it above, but you can write a query to get the observations.
Hope this helps.
-Sarven