EV01 specifying fromdate and todate gives no result
I am trying to get details about the ports calls of a ship visited in the last 2 weeks based on imo number using EV01. the problem is that timespan can only go back 2 days and using fromdate and todate has not been working at all for me. Using timespan, I can see a ship docked in the last 2 days, but if I specify that same time with fromdate and todate, I get no results. Sometimes I will also get a general error. Here's some calls and responses.
Chrome adds a %20 in for spaces but i've tried it from php too with spaces and got the same result
{"errors": [{"code": "GE","detail": "GENERAL ERROR - CALL COULD NOT BE SATISFIED"}]}
https://services.marinetraffic.com/api/portcalls/MY_API-KEY/imo:9045924/fromdate:2019-04-10/todate:2019-04-24/protocol:json
{"errors": [{"code": "GE","detail": "GENERAL ERROR - CALL COULD NOT BE SATISFIED"}]}
Does anyone have any working examples of fromdate and todate for EV01? I've been able to get them to work in other endpoints (EV03)
-
Hello Jason!
Thank you for this with us. I'm Aline, a Customer Support Representative here at MarineTraffic.
I have been able to reproduce what you mention, so I have escalated this case to our technical team to take a closer look in what may be causing the error messages when performing the aforementioned calls. It will be addressed as soon as possible, and I will keep you informed on any updates.
If you have any questions in the meantime, please don't hesitate to let me know. I'm happy to help!
Best,
-
Hello again, Jason.
Following up to our conversation, I'd like to inform that our competent team has made some adjustments in the API. I would like to ask you to check how it works for you, but I can see your API Port Calls (EV01) is inactive. May I ask if you are interested in reactivating it?
Thanks in advance for you reply. I look forward to it.
Best,
-
Hi,
This thread is a bit old but I seem to encounter a similar (if not the same problem). Would anyone be able to comment on it. For some reason EV01 api works with MMSI,fromdate,todate parameters. But it does NOT work with IMO,fromdate,todate parameters returning a GENERAL ERROR to me.
Is there currently a problem or a limitation with this service regarding the use of IMO numbers?
Here are the parameters that I tested:
mmsi = 271002613
imo = 9404950
date_from = 2019-07-13 00:00
date_to = 2019-07-15 17:00
protocol = jsonAnd the URLs I tried are:
"https://services.marinetraffic.com/api/portcalls/v:4/[my-api-key]/imo:9404950/fromdate:2019-07-13 00:00/todate:2019-07-15 17:00/protocol:json"-> doesnt work"https://services.marinetraffic.com/api/portcalls/v:4/[my-api-key]/mmsi:271002613/fromdate:2019-07-13 00:00/todate:2019-07-15 17:00/protocol:json" -> works.
Please sign in to leave a comment.
Comments
4 comments