PS01 period query parameter
Hello,
I'am just trying API historical position for the first time and i got the error: "ERROR_5a2-INSUFFICIENT CREDITS". Before to buy the sufficient credit, i tryed to reduce the cost and the records with the period parameter.
According with the technical documentation, the "period" parameter is omit by default, so i suppose i have position every 2 minutes?, but this parameter also can be "daily" or "hourly"
In order to reduce the credit, i entered the string hourly in the period parameter but the required credits is the same.... Same also if i use daily for period parameter.
Please what is the correct string to use for period parameter?
Thanks in advance for your help
Dominique
-
Hello Dominique,
Thanks for reaching out.
I can see that in your calls you didn't specify the version of the API service. Currently, the latest version is number 3 and for that version we offer daily, hourly and all positions. In your call, since you didn't specify any version, number 1 was used - as it is the default one.
Please make changes to your calls and you will be able to receive hourly positions. Add parameter v and value 3 - v:3 Also, you can use - period:hourly to get the hourly position.
On this link you can see the technical documentation that you can use for more information - https://servicedocs.marinetraffic.com/tag/Vessel-Historical-Track/#operation/exportvesseltrackFurther to that, in order to add more credits to your account please click here: https://www.marinetraffic.com/en/online-services/marinetraffic-credits
Kind regards,
-
Hello Tatianna
Thanks for your prompt reply and the the right diagnosis of my problem.......
I stayed stupidly on version 1 without trying version 3 when I had the technical documentation before my eyes!.....
Everything works well now
Thanks you again for your help,
Best regards
Dominique
Please sign in to leave a comment.
Comments
3 comments