I am newbie in web-programming and API.
After many attempts and errors I was able to do some get requests, which even work.
Now I tried a post-request and I failed.
Please do not wonder, it is not my code, but I asked chatGPT for it.
It tried so many times and versions, - it never would work without a human.
Read the comment of ChatGPT,.... it cannot even count up to three.

What does not work is the crucial thing of it:
Sending the post and saving the answer.
What I want to do under the line is this:
https://www.openfigi.com/api/documentationThis is what it wrote
//uses
// fphttpclient, fpjson, jsonparser, sysutils, classes;
function GetFigiInfo(const Ticker: string): string;
var
HttpClient: TFPHTTPClient;
ResponseStream: TStringStream;
BodyStream: TStringStream;
ResponseText: string;
Json, FigiData: TJSONData;
Url, Body, API_KEY: string;
begin
SetLength(Result, 0);
HttpClient := TFPHTTPClient.Create(nil);
API_KEY := 'Dein_API_Schlüssel';
Url := 'https://api.openfigi.com/v3/mapping';
Body := '{"query":[{"ticker":"' + Ticker + '","exchCode":"XNYS"}]}';
ResponseStream := TStringStream.Create('');
BodyStream := TStringStream.Create(Body);
HttpClient.AddHeader('Content-Type', 'application/json');
HttpClient.AddHeader('X-OPENFIGI-APIKEY', API_KEY);
// Richtiges Post mit 4 Parametern: URL, BodyStream (Source), ResponseStream (Dest)
HttpClient.Post(Url, BodyStream, ResponseStream);
ResponseText := ResponseStream.DataString;
Json := GetJSON(ResponseText);
FigiData := Json.FindPath('data');
if Assigned(FigiData) then
Result := FigiData.AsJSON
else
Result := 'Keine Daten gefunden.';
ResponseStream.Free;
BodyStream.Free;
HttpClient.Free;
end;