cURL Example
We use curl
(a command line tool) to make a POST
request to https://api.newsfilter.io/search
. You can also use Postman as alternative.
We send the same JSON payload as shown in other examples. Copy/paste the command below into your terminal (otherwise known as "command line" or "console"). Hit enter and filings matching your filter criteria are printed in your terminal.
curl -XPOST -H "Content-type: application/json" -d '{
"queryString": "symbols:NFLX AND publishedAt:[2020-02-01 TO 2020-05-20]",
"from": 0,
"size": 200
}' 'https://api.newsfilter.io/search?token=YOUR_API_KEY'