Here is something which sounds too good to be true (a bad sign, I know):
https://console.developer.deutsche-boerse.com/A free API for getting quotes from half Europe and the CME. In other words, the most important quotes of the world, for free. The quotes can be addressed by a language, similar to SQL.
The only disadvantage: It does not work for me.
Yes, I have an API-key but am not sure, how to put it into the url.
What I usually work with is this below (the response is not json here)
The url of the documenation how I read it does not even give a positive response, if I key it into the browser. I am clueless.
// Input: url mit Datenanbieter und korrektem Anforderungslink, Ooutput: json-String
function TAktienkurse_holen.GetUrlJsonResponse(Url: string): string;
var
HttpClient: TFPHTTPClient;
Json_Response: string;
Json_Obj: TJSONObject;
begin
HttpClient := TFPHTTPClient.Create(nil);
// Sende die Anfrage und erhalte die Antwort als String
Json_Response := HttpClient.Get(Url);
// Prüfen, ob die Antwort im JSON-Format vorliegt
Json_Obj := TJSONObject(GetJSON(Json_Response));
// Wenn das Parsen erfolgreich war, gebe die Antwort im JSON-Format zurück
Result := Json_Obj.FormatJSON;
HttpClient.Free; // Stelle sicher, dass das Objekt freigegeben wird
end;