Alchemy Data news Api 在运行多个关键字时不提供任何结果。 而在单个关键字上运行时运行良好。
这是网址:
https://access.alchemyapi.com/calls/data/GetNews?apikey=YOUR_API_KEY_HERE&return=enriched.url.title,enriched.url.url,enriched.url.entities,enriched.url.docSentiment,enriched.url.concepts,enriched.url.taxonomy&start=1457568000&end=1458255600&q.enriched.url.text=apple%20clean%20technology&count=25&outputMode=json
结果:
{
"status": "OK",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"totalTransactions": "191",
"result": {
"status": "OK"
}
}
我是否需要包含任何其他参数才能获取多个关键字的结果。 是因为我只是使用查询生成器演示吗?并且可以通过编程方式实现。
最佳答案
对于“and”搜索使用
A[apple^clean^technology]
或者在您的示例上下文中:
https://access.alchemyapi.com/calls/data/GetNews?apikey=YOUR_API_KEY_HERE&return=enriched.url.title,enriched.url.url,enriched.url.entities,enriched.url.docSentiment,enriched.url.concepts,enriched.url.taxonomy&start=1457568000&end=1458255600&q.enriched.url.text=A[apple^clean^technology]&count=25&outputMode=json
请参阅文档 here 的参数(过滤器)部分了解更多信息.
我是 IBM Watson 的开发人员传播者。
关于ibm-cloud - 获取多个关键字的结果 Alchemy Data news Api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36138630/