Alchemy Data news Api在运行多个关键字时未提供任何结果。 在单个关键字上运行时运行正常。
这是URL:
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"
}
}
我是否需要包含任何其他参数才能获得多个关键字的结果。 是因为我只是使用查询构建器演示吗?它可以通过编程方式实现。
答案 0 :(得分:3)
对于"和"搜索使用
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的开发人员传播者。