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
- news.js
- news.rb
- news.py
- Curl (HTTP)
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);
});
require "uri"
require "net/http"
url = URI("https://api.nirvanalabs.xyz/news/chainlink/erc20")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.nirvanalabs.xyz")
payload = ''
headers = {}
conn.request("GET", "/news/chainlink/erc20", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
curl --location --request GET 'https://api.nirvanalabs.xyz/news/chainlink/erc20'
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
}
]