hdnpt / geartrack

Track packages from multiple providers. Supports Gearbest, Aliexpress, Ebay, Geekbuying, DHL, CTT and more.
https://geartrack.pt
MIT License
56 stars 19 forks source link
aliexpress api ctt ebay gearbest geartrack hdn nodejs

Geartrack 1.0 (No further updates to this version)

NPM

Join the chat at https://gitter.im/hdnpt/geartrack Travis David Known Vulnerabilities GitHub release license Website

Geartrack 2.0 is under development, this version will no longer be mantained. Use the online version which will always be updated :)

API to track shippments from Gearbest & Aliexpress

Online version: https://geartrack.pt

This library scrapes the websites providers for shipping information.

Supported Methods

Gearbest supported ids

Aliexpress supported ids

- RF.....SG ids
- RQ.....MY ids
- R......SE ids
- R......CN ids
- R......NL ids

Ebay

Install

Using Docker to run tests

API

const geartrack = require('geartrack')

// Get [Traker] info
// with exception of "adicional" tracker, all the trackers work like bellow:
geartrack.[tracker].getInfo(id, (err, TrakerInfo) => {
    if(err) { return  }

    console.log(TrakerInfo.status) // see TrakerInfo entity for more fields
})

You just need to replace [Tracker] for one of the following available trackers:
- correos
- correosOld
- sky
- expresso24
- singpost
- ctt
- cainiao
- correoses
- directlink
- trackchinapost
- postNL
- yanwen
- malaysiaPos
- cjah
- winit
- panasia
- parcelTracker
- dhl
- track24

// Get adicional info
geartrack.adicional.getInfo(id, postalcode, (err, TrakerInfo) => {
    if(err) { return  }

    console.log(TrakerInfo.status) // see TrakerInfo entity for more fields
})

Changelog

License

MIT