Which endpoint API address to use?

Shimmur 1 Reputation point
2021-03-07T16:50:47.34+00:00

I'm trying out the Text Analytics API for sentiment analysis and just wondering which API address I should use. I've seen two formats in the docs/tutorials.

  1. [location].api.cognitive.microsoft.com/text/analytics/v3.0/sentiment
  2. [myResourceName].cognitiveservices.azure.com/text/analytics/v3.0/sentiment

Does it matter which of these endpoints I hit? Is there a use case for one over the other?

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
373 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,515 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,641 Reputation points
    2021-03-08T11:31:41.963+00:00

    @Shimmur Thanks for the question. you can use either of the two endpoint formats as mentioned in API doc.

    0 comments No comments