Package tracking directly as zero-click info, rather than a link

Log in to Vote
127
127 Votes • 19 Comments
Searching for a package tracking number from UPS or FedEx currently provides a link to the UPS or FedEx site to track that package. Please consider using the APIs for those shippers to provide the tracking information directly in the zero-click box instead.
• posted 6 years and 3 months ago • type: Spice (API calls) Live

anonymous
(I originally reported this idea, then I deleted my account on a different UserVoice forum and found out the hard way that UserVoice shares accounts across all forums.)
posted by [UserVoice Josh Triplett] • 6 years and 3 months ago Link
anonymous
posted by [UserVoice Jordan] • 6 years and 2 months ago Link
anonymous
I don't think this is currently possible as spice needs to be able to call from the client side, and both UPS and FedEx currently require an account key in order to use their API.
posted by [UserVoice Simon] • 6 years and 1 month ago Link
anonymous
USPS also has a bunch of APIs: https://www.usps.com/business/webtools.h...
posted by [UserVoice Joe Stein] • 5 years and 6 months ago Link
anonymous
Could a DuckDuckGo admin get us keys to work with?
posted by [UserVoice Joe Stein] • 5 years and 6 months ago Link
anonymous
Please don't stop state side. Think global and include delivery services such as DHL and TNT
posted by [UserVoice Avn] • 5 years and 11 days ago Link
anonymous
What is the status of this? I'm interested in developing this.
posted by [UserVoice AnthonyBartoli] • 4 years and 8 months ago Link
anonymous
Thanks Igor. I have forked your code and will begin taking a look at it.
posted by [UserVoice AnthonyBartoli] • 4 years and 8 months ago Link
anonymous
Thanks for the update, Igor.

AnthonyBartoli --please let us know if you have any questions while taking this over. open@duckduckgo.com
posted by [UserVoice DuckDuckGo Team] • 4 years and 8 months ago Link
yegg
We have not received a pull request for a finalized version. Feel free to reach out at open@duckduckgo.com if you (or anyone) are interested in picking it up!
posted by yegg Staff4 years and 8 months ago Link
yegg
We can use keys. Everything gets proxied through us so they are not exposed.
posted by yegg Staff6 years and 1 month ago Link
yegg
You can use a temporary key and, before it goes live, we'll sign up for one internally.
posted by yegg Staff5 years and 5 months ago Link
istepura
It's mostly done for USPS only. I don't have time these days to continue development, so if someone wants to pick this up - that would be great.
My code is available @ https://github.com/istepura/zeroclickinf... (branch packtrack) .

There are couple of points, worth mentioning
1) USPS, FedEx, UPS provide tracking information in XML only. AFAIK XML is not welcomed in spice handlers
2) To get access to FedEx and UPS API one have to have an enterprise account (I guess, DDG can help with that)
3) Tracking plugins differ mostly in server part (different API URLs, Tracking # formats) and client JS is mostly the same. I moved common (rendering) JS functionality into separate files, so that provider-specific code need only to prepared data for rendering. Another approach could be running sort of XML-to-JSON proxy on DDG side, which would redirect calls to various tracking API, handle XML response, and return uniform JSON result to JS, so that client side JS would be siply rendering the response.

Sorry for the lack of updates, good luck


posted by istepura 4 years and 8 months ago Link
zac
Any updates :) ?
posted by zac Staff4 years and 6 months ago Link
istepura
It looks like Anthony Bartoli stopped working on this feature, so it's up for grabs once again.
posted by istepura 4 years and 2 months ago Link
istepura
I have started working on this feature.First target is USPS.
So far output looks like this http://imgur.com/4Q3ySzN.
Code is available @ https://github.com/istepura/zeroclickinf...
posted by istepura 5 years and 4 months ago Link
istepura
There's one more issue with DHL/UPS API - they expect XML request data to be sent in POST request. I wonder if Spice back end supports this kind of requests.
posted by istepura 4 years and 8 months ago Link
crazedpsyc
XML responses can be handled with `spice wrap_string_callback => 1`, which just shoves the response into a jsonp function like: ddg_spice_foo('<xml>original response here</xml>')
You can then use the DOM API in Javascript to parse that.

POSTing, though... we do not have any way to POST at the moment.
posted by crazedpsyc 4 years and 6 months ago Link
talsraviv
This idea is live in a few forms. Check them out here:

https://duck.co/ia/view/fed_ex
https://duck.co/ia/view/ups
https://duck.co/ia/view/usps

These three are Goodies - maybe potential for another idea to use APIs and display directly, as the original idea suggests?
posted by talsraviv 3 years and 3 months ago Link