Skip to main content
POST
/
api
/
investing
/
news
/investing/news
curl --request POST \
  --url https://api.anysite.io/api/investing/news \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "category": "latest-news",
  "instrument": "AAPL"
}
'
[
  {
    "id": 123,
    "title": "<string>",
    "@type": "@investing_news_article",
    "text": "<string>",
    "image": "<string>",
    "source": "<string>",
    "source_image": "<string>",
    "provider": "<string>",
    "article_type": "<string>",
    "is_featured": false,
    "is_editors_pick": false,
    "comment_count": 123,
    "published_at": "<string>",
    "updated_at": "<string>",
    "instruments": [],
    "path": "<string>",
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of articles

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
category
enum<string>
default:latest-news

News category to fetch when no instrument is given

Available options:
latest-news,
stock-market-news,
company-news,
economy,
economic-indicators,
forex-news,
commodities-news,
cryptocurrency-news,
analyst-ratings,
earnings,
insider-trading-news,
politics,
world-news,
transcripts
instrument
string | null

Optional instrument to fetch news for, by ticker/name, section path, or URL. When set, the category is ignored and news for this instrument is returned.

Example:

"AAPL"

Response

Successful Response

id
integer
required
title
string
required
@type
string
default:@investing_news_article
text
string | null
image
string | null
source
string | null
source_image
string | null
provider
string | null
article_type
string | null
is_editors_pick
boolean
default:false
comment_count
integer | null
published_at
string | null
updated_at
string | null
instruments
InvestingNewsInstrument · object[]
path
string | null
url
string | null