Xml 如何通过API从data.fao.org获取有用的数据?
我需要帮助来理解API的使用 该网站提供了一个查询生成器[http://api.data.fao.org/1.0/query-api-builder.html][1]. 但我无法选择以下内容:Xml 如何通过API从data.fao.org获取有用的数据?,xml,json,web-services,api,Xml,Json,Web Services,Api,我需要帮助来理解API的使用 该网站提供了一个查询生成器[http://api.data.fao.org/1.0/query-api-builder.html][1]. 但我无法选择以下内容: SELECT all countries that have a faostat_id between 1 to 12 AND SELECT all cattles from this countries in the years 2010 - 2011. 如果有一个列表来查找可用的属性和元素,那么就
SELECT all countries that have a faostat_id between 1 to 12
AND SELECT all cattles from this countries in the years 2010 - 2011.
如果有一个列表来查找可用的属性和元素,那么就容易多了。
但是我找不到这个
到目前为止,我得到的最好结果是:
http://data.fao.org/developers/api/v1/en/resources/faostat/live-prod/facts.xml?
filter=cnt.iso3 eq AFG
and item.label eq Cattle
and year eq 2008 &
fields=year,
cnt.iso3 as country,
item.label,
m5111 as Stocks
这是从查询生成器生成的URL:
API对我来说是全新的,但似乎您可以在这里用SDMX做您想做的事情。请参见此处的示例:注意:此处似乎有来自FAOSTAT的更新API: