invokeurl marinetraffic

invokeurl marinetraffic

Hello friends. I can't find the error in this call, and it returns "null". Does anyone know what could be happening?

I have tried the call writing it by hand and it works perfect. Obviously XXX to not expose the API key.

// API key for PS07 Single Vessel Positions API
api_key = "XXX";

// Query parameters for API call
shipid = 758977;
timespan = 2880;
msgtype = "simple";
protocol = "json";

// Make API call and get response
response = invokeurl("https://services.marinetraffic.com/api/exportvessel/" + api_key + "/v:1/shipid:" + shipid + "/timespan:" + timespan + "/protocol:" + protocol + "/msgtype:" + msgtype);

info response ;