karlwancl / YahooFinanceApi

A handy Yahoo! Finance api wrapper, based on .NET Standard 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed with status code 403 on Android

tpopetschnig opened this issue · comments

commented

Hi.
I'm writing a C# .NET MAUI application and tested it with using the package but also with using the source directly. Same result:

Works perfectly when I use it on the "Windows Machine" but gets back "Call failed with status code 403 (Forbidden)
GET https://query1.finance.yahoo.com/v1/test/getcrumb."
on my Android device.

Using simply
var quotes = await Yahoo.Symbols(mySymbol).Fields(
Field.RegularMarketOpen,
Field.RegularMarketDayHigh,
Field.RegularMarketDayLow,
Field.RegularMarketPrice,
Field.RegularMarketVolume,
Field.RegularMarketTime,
Field.Currency,
Field.Exchange
)
.QueryAsync();

Thanks for any hint.

Also facing same issue