Microsoft Azure SDK for Node.js - Cognitive Services News Search
This project provides a Node.js package that makes it easy to work with Microsoft Azure Cognitive Services News Search API. Right now it supports:
- Node.js version: 6.x or higher
How to Install
npm install azure-cognitiveservices-newssearch
How to use
Create a Cognitive Services Bing Search Account
const msRestAzure = ; const CognitiveServicesManagement = ; let client; let createAccount = msRestAzure;
List the keys from the created account
let serviceKey; createAccount;
Create credentials
const CognitiveServicesCredentials = CognitiveServicesCredentials;let credentials = serviceKey;
Query the News Search API
const NewsSearchAPIClient = ; let client = credentials; clientnewsOperations;
More Detailed Information
https://azure.microsoft.com/en-us/try/cognitive-services/ under "Search"