serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
45 stars 3 forks source link

[Google Finance API] Incomplete response when using the `window` parameter #1724

Open martin-serpapi opened 6 days ago

martin-serpapi commented 6 days ago

A user reported that news_results is missing in the response from our Google Finance API. I've tested it in our Playground, and only summary, key_events, and graph fields are returned in the response when the window parameter is explicitly set.

image

Playground | Inspect

The actual Google Finance engine returns complete information when the window parameter is specified:

image

Google Finance

Front | Intercom

tanys123 commented 5 days ago

Extending the window_payload with the payload below returns the news results.

["o6pODe","[[null,[\"GOOGL\",\"NASDAQ\"]]]",null,"5"]

We could possibly add more payloads like above to cover the data that's missing when window is specify.

However, there is little benefit doing so as all the data can already be retrieved (when window omitted) in one of the request.