Skip to main content
Version: 2.2

Get News

Don't have an API key yet?

Get access to the Why did it move API

Contact Sales
GEThttps://wdim.moralis.io/api/v1/news

Returns all news between 2 dates, sorted by date, oldest to newest

QUERY PARAMS
from_datestring
The first date to fetch news for
to_datestring
The last date to fetch news for
cursorstring
Cursor pointing to the next page of results
limitnumber
How many results to return in each page
orderstring
Order the news by date
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://wdim.moralis.io/api/v1/news?from_date=2021-10-11T00%3A00%3A00.000Z&to_date=2021-10-15T00%3A00%3A00.000Z&cursor=jwt%20token&limit=20&order=asc_date', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"page_size": "100",
"cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsaW1pdCI6IjIwIiwicGFnZSI6MiwiaW5kZXgiOjM4LCJ0b3RhbCI6ODIsImlhdCI6MTcwMDEzMzY2MiwiZXhwIjoxNzAwMTM3MjYyfQ.85l7ZTSj6xi3J5UZrhVd-gscOhV1T_hoodoue1ihUsk",
"page": "1",
"result": {
"id": 1,
"token_address": "0x046eee2cc3188071c02bfc1745a6b17c656e3f3d",
"token_symbol": "RLB",
"token_name": "Rollbit Coin",
"chain": "ETH",
"change_in_percent": 11,
"headline": "On-chain volume shows heavy wallets accumulating RLB, leading to an 11% increase today.",
"time_of_price_movement": "2023-10-13T12:00:00.000Z",
"movement": "Positive",
"updated_at": "2021-10-11T00:00:00.000Z",
"created_at": "2021-10-11T00:00:00.000Z"
}
}