Hi Randell, it’s the custom endpoint that azure gave me to make API calls. I had to create a new resource in azure to get the api key, and set a custom url.
{
_type: 'News',
readLink: 'https://api.cognitive.microsoft.com/api/v7/news/search?q=sailing+dinghies',
queryContext: {
originalQuery: 'sailing dinghies',
adultIntent: false
},
totalEstimatedMatches: 43900,
sort: [
{
name: 'Best match',
id: 'relevance',
isSelected: true,
url: 'https://api.cognitive.microsoft.com/api/v7/news/search?q=sailing+dinghies'
},
{
name: 'Most recent',
id: 'date',
isSelected: false,
url: 'https://api.cognitive.microsoft.com/api/v7/news/search?q=sailing+dinghies&sortby=date'
}
],
value: [
{
name: 'Mum who sailed her kids across the Channel in a dinghy after leaving wife for sperm donor walks free from court',
url: 'https://www.thesun.co.uk/news/10783742/mum-dinghy-cross-channel-kids-let-off/',
image: {
thumbnail: {
contentUrl: 'https://www.bing.com/th?id=ON.01E034E3A43C50DC7761B0F3A27BB000&pid=News',
width: 700,
height: 466
}
},
description: 'A BRITISH mum convicted of putting her two kids at risk of harm after sailing them in a dinghy across the Channel has walked free from court. Lauren Etchells, 34, breached a court order and fled Canada after splitting from a partner. Lauren Etchells at court after being convicted of putting her two kids at risk of harm by crossing the Channel ...',
provider: [
{
_type: 'Organization',
name: 'The Sun',
image: {
thumbnail: {
contentUrl: 'https://www.bing.com/th?id=AR_f0444eed92ae4ac33c1cd3baa785e988&pid=news'
}
}
}
],
datePublished: '2020-01-21T01:29:00.0000000Z',
category: 'World',
ampUrl: 'https://www.thesun.co.uk/news/10783742/mum-dinghy-cross-channel-kids-let-off/amp/'
},
// ...