Skip to main content

Token news

info

ChainQuery API is currently in beta. Report any bugs to support@nirvanalabs.ai

Type

GET

Description

Retrieves all news related to a key word for Tokens or NFTs.

Parameters

  • keyWord: The search term, e.g. "chainlink"
  • contractType: Type of contract, i.e. "erc20" or "erc721" or "nft" or "token"

Code

var axios = require('axios');

var config = {
method: 'get',
url: 'https://api.nirvanalabs.xyz/news/chainlink/erc20',
headers: { }
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Sample Response

[
{
"title": "Blockchain Data Provider Chainlink Launches Staking of Its Native Token LINK - CoinDesk",
"link": "https://news.google.com/__i/rss/rd/articles/CBMidmh0dHBzOi8vd3d3LmNvaW5kZXNrLmNvbS90ZWNoLzIwMjIvMTIvMDYvYmxvY2tjaGFpbi1kYXRhLXByb3ZpZGVyLWNoYWlubGluay1sYXVuY2hlcy1zdGFraW5nLW9mLWl0cy1uYXRpdmUtdG9rZW4tbGluay_SAQA?oc=5",
"pubDate": "Tue, 06 Dec 2022 17:00:00 GMT",
"source": {
"text": "CoinDesk",
"url": "https://www.coindesk.com"
},
"sentimentScore": "Neutral",
"sentimentPolarity": 0
}
]