ibm-cloudalchemyapi

AlchemyAPI API key not working


Using a free trial account for AlchemyAPI (Bluemix), the provided API key only works for:

https://gateway-a.watsonplatform.net/calls/url/URLGetRankedNamedEntities.

But I want to use it for:

https://gateway-a.watsonplatform.net/text/TextGetRankedNamedEntities.

Do I need to add another key, or do I have to upgrade to a premium account?


Solution

  • The call you want to do isn't in the v1 API:

    http://www.ibm.com/watson/developercloud/alchemy-language/api/v1/


    The documentation containing that call is here uses:

    http://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities

    as the endpoint and not the gateway-a.watsonplatform.

    My API Key from Bluemix still seems to work for this query:

    curl -i "http://access.alchemyapi.com/calls/text/TextGetRankedNamedEntities?apikey={apikey}&outputMode=json&text=How%20old%20is%20Paris%20Hilton"