Excel 获取网络查询结果的公式

Excel Formula to get the result of a web query

我有以下 Excel 2016 sheet:

**First Name                 Calc                           Result**
Richard     https://api.genderize.io/?name=richard
Arvin       https://api.genderize.io/?name=arvin

如果我在浏览器中粘贴 https://api.genderize.io/?name=richard,我会得到:

  {"name":"richard","gender":"male","probability":0.99,"count":101928}

对于 https://api.genderize.io/?name=arvin,我得到:

  {"name":"arvin","gender":"male","probability":0.98,"count":1602}

如何使用 Excel 公式自动执行这些计算?

期望的结果是:

result picture

您可以使用 WEBSERVICE() 函数,将 CALC 列中的值作为参数。