api json初学者-尝试理解url输出

lrpiutwd  于 2021-07-06  发布在  Java
关注(0)|答案(2)|浏览(360)

我使用fme从以下方面获得输出:https://coronavirus.data.gov.uk/developers-guide
我只是一个初学者,这是我第一次想写这个。要从中生成带有相关列的输出url,有人能解释一下我需要什么来获取请求url吗。我使用get作为http方法
我从一个url获取数据的例子是-https://soa.smext.faa.gov/asws/api/airport/status/sfo
但是当我尝试使用下面我测试的链接时,没有得到任何输出https://api.coronavirus.data.gov.uk/v1/data?filters=areatype=nation;areaname=england&structure=%7b%22name%22:%22areaname%22%7d

mu0hgdu0

mu0hgdu01#

https://api.coronavirus.data.gov.uk//v1/data?filters=areaType=nation;areaName=england&structure={"date":"date","areaName":"areaName","areaCode":"areaCode","newCasesByPublishDate":"2020-07-07","cumCasesByPublishDate":"2020-08-08","newDeathsByDeathDate":"2020-02-06","cumDeathsByDeathDate":"2020-06-09"}

ryhaxcpt

ryhaxcpt2#

这是一个更好的链接供您试用。
https://api.coronavirus.data.gov.uk/v1/data?filters=areatype=nation;areaname=england&structure={%22date%22:%22date%22,%22areaname%22:%22areaname%22,%22areacode%22:%22areacode%22,%22newcasesbypublishdate%22:%22newcasesbypublishdate%22,%22cumcasesbypublishdate%22:%22cumcasesbypublishdate%22,%22newdeaths28daysbydeathdate%22:%22newdeaths28daysbydeathdate%22}
我花了点时间才把它弄出来。

相关问题