Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, VoroneTZ), 3,544 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stooq now requires an API key #489362
04/13/26 09:42
04/13/26 09:42
Joined: Jul 2000
Posts: 28,108
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 28,108
Frankfurt
Stooq has changed their policy and now requires an API key for downloading data. The procedure:

1. Open https://stooq.com/q/d/?s=aapl.us&get_apikey
2. Enter the captcha code.
3. Copy the CSV download link at the bottom of the page - it will contain the apikey variable.
4. Append the apikey variable to all requests, like this:
https://stooq.com/q/d/l/?s=msft.us&i=d&apikey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The latest Zorro beta version supports an entry "StooqKey" in ZorroFix.ini for the Stooq API key.

Re: Stooq now requires an API key [Re: jcl] #489455
06/08/26 20:14
06/08/26 20:14
Joined: Mar 2018
Posts: 9
V
VHX Offline
Newbie
VHX  Offline
Newbie
V

Joined: Mar 2018
Posts: 9
Stooq does not only require the API key now, but also JavaScript to verify the browser.
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="robots" content="noindex,nofollow"></head><body><noscript>This site requires JavaScript to verify your browser. Please enable JavaScript and reload.</noscript><script nonce="GlVDG9UXyNNKtoHBQimZZA">
(async()=>{const c="AAAAAGonG62vMFus5YDd7-hABFQ2f8zlJRg4zrYfx9g7WLOKV_yucKAnmAQ",d=4,t="0".repeat(d),e=new TextEncoder;let n=0;while(1){const h=await crypto.subtle.digest("SHA-256",e.encode(c+n)),x=Array.from(new Uint8Array(h)).map(b=>b.toString(16).padStart(2,"0")).join("");if(x.startsWith(t))break;n++}const r=await fetch("/__verify",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"c="+encodeURIComponent(c)+"&n="+n,credentials:"same-origin"});if(r.ok)location.reload()})();
</script></body></html>

Any ideas how to move on or where to get data?

Re: Stooq now requires an API key [Re: VHX] #489460
06/10/26 14:39
06/10/26 14:39
Joined: Jan 2025
Posts: 4
K
k_ivan Offline
Guest
k_ivan  Offline
Guest
K

Joined: Jan 2025
Posts: 4
Any luck?

Re: Stooq now requires an API key [Re: jcl] #489461
06/11/26 17:55
06/11/26 17:55
Joined: Feb 2017
Posts: 1,819
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,819
Chicago
It looks like they're deliberately requiring browsers, which suggests using "bots" like Zorro is a violation of TOS.

On the other hand, I know that AlphaVantage in particular was explicitly intended for API downloading. Some of its API interfaces are free, and others require a premium subscription. I have had good success with it while I was using it, and I'll probably use it again if I need it.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1