Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/17/26 19:28
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 14,594 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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,132
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 28,132
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,829
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,829
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