# SPX Tracking Scraper — Shopee Express Parcel Status & Events (`muhammadafzal/spx-express-package-tracking-scraper`) Actor

Track SPX Express (Shopee Express) parcels in bulk in the Philippines, Malaysia, Indonesia, Vietnam, Singapore and Brazil: status, delivery time, transit days, failed-attempt reasons and hub events in English. USD 5 per 1,000 parcels found; unknown numbers are free. Not for SpeedX or SPX Thailand.

- **URL**: https://apify.com/muhammadafzal/spx-express-package-tracking-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 tracked spx parcels

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SPX Tracking Scraper — Shopee Express Parcel Status & Events

SPX Tracking Scraper tracks SPX Express (Shopee Express) parcels in bulk in the Philippines, Malaysia, Indonesia, Vietnam, Singapore and Brazil and returns each parcel's current status, delivery time, transit days, failed-attempt reasons and full hub event history in English. It costs USD 5 per 1,000 parcels found, and tracking numbers that SPX does not know are free.

It is built for Shopee sellers, e-commerce operations teams, customer-support desks and logistics analysts who need SPX tracking for many parcels at once instead of pasting numbers into the SPX website one by one.

### What does the SPX Tracking Scraper return?

One dataset record per parcel found, with the latest status and every tracking event SPX publishes for it. The data comes from the public tracking page of each SPX country site (spx.ph, spx.com.my, spx.co.id, spx.vn, spx.sg, spx.com.br).

| Field | What it means |
|---|---|
| `trackingNumber` | The SPX tracking number you entered, uppercased |
| `country`, `countryName` | SPX market: PH, MY, ID, VN, SG or BR |
| `status` | Normalized status: `DELIVERED`, `OUT_FOR_DELIVERY`, `IN_TRANSIT`, `PREPARING_TO_SHIP`, `DELIVERY_UNSUCCESSFUL`, `RETURNED_TO_SENDER`, `LOST` or `OTHER` |
| `statusLabel`, `statusDescription` | SPX name and English description of the latest event |
| `milestoneCode`, `milestoneName` | SPX milestone (1 preparing, 5 in transit, 6 out for delivery, 8 delivered, 10 delivery unsuccessful) |
| `latestEventCode`, `latestEventTime` | SPX event code (for example `F980` delivered) and its UTC time |
| `lastKnownLocation` | Last hub or sorting centre that scanned the parcel, with address and coordinates when published |
| `isDelivered`, `deliveredAt` | Delivery flag and delivery time |
| `shippedAt`, `transitDays` | First in-transit scan and days from it to delivery |
| `failedDeliveryAttempts`, `lastFailureReason` | Count of failed attempts and the latest exception reason, for example "Recipient unavailable for parcel" |
| `slsTrackingNumber`, `clientOrderId` | SPX internal logistics number and the order ID the parcel ships |
| `isShopeeMarketplaceOrder`, `isInstantOrder` | Order type flags |
| `eventCount`, `events` | Full event history, newest first: time, code, name, description, milestone, reason, hub location and next hub |
| `trackingUrl`, `scrapedAt` | Public SPX tracking page and lookup time |

The dataset has two views: **Parcels** (one row per parcel) and **Event history** (one row per event, for spreadsheets and BI tools).

### How do I track SPX parcels in bulk?

Paste your tracking numbers into **SPX tracking numbers**, one per row, and start the run. The country is read from the number's prefix, so numbers from different countries can share one run. Up to 500 numbers per run are accepted; in our cloud tests a batch of 37 numbers finished in about 7 seconds. Vietnam and Singapore lookups are slower, about 2 to 7 seconds each, because those SPX sites often refuse direct automated lookups and the Actor then uses a slower data-access route for them.

```json
{
  "trackingNumbers": ["SPXID062930295622", "PH250040584072U", "BR262183465237X"]
}
```

Run it on a schedule to refresh open parcels, or call it from the Apify API, Make, Zapier or n8n after each Shopee order ships.

### Which SPX tracking numbers are supported?

Philippines, Malaysia, Indonesia, Vietnam, Singapore and Brazil numbers with their country prefix: `SPXPH…`, `PH…`, `SPXMY…`, `MY…`, `SPXID…`, `SPXVN…`, `SPXSG…` and `BR…`. Set **Country** only for numbers without a prefix.

Thailand SPX numbers are not supported yet: SPX Thailand refused every tested lookup of a real parcel. Taiwan store-pickup numbers use a different system. Such numbers are listed in the run's `OUTPUT` record as unsupported and are not charged. On the Vietnam and Singapore sites some old or removed parcels come back unreadable; they are reported as `blocked` and not charged. SpeedX (US) numbers that also start with "SPX", Shopee order IDs and the Indonesian internal `ID…` number are not SPX tracking numbers for this tool.

### Example output

```json
{
  "trackingNumber": "PH250040584072U",
  "country": "PH",
  "countryName": "Philippines",
  "status": "DELIVERED",
  "statusLabel": "Delivered",
  "statusDescription": "Parcel has been delivered",
  "milestoneCode": 8,
  "milestoneName": "Delivered",
  "latestEventCode": "F980",
  "latestEventTime": "2025-08-15T08:56:23.000Z",
  "lastKnownLocation": {
    "name": "Mandurriao Hub",
    "address": "PH Visayas Iloilo Iloilo City Pale Benedicto Rizal (Mandurriao Guzman St San Miguel, National Road, Mandurriao, Iloilo City, 5000 Iloilo",
    "latitude": 10.721688,
    "longitude": 122.533155
  },
  "isDelivered": true,
  "deliveredAt": "2025-08-15T08:56:23.000Z",
  "shippedAt": "2025-08-11T12:45:43.000Z",
  "transitDays": 3.8,
  "failedDeliveryAttempts": 1,
  "lastFailureReason": "Recipient unavailable for parcel",
  "slsTrackingNumber": "PH250040584072U",
  "clientOrderId": "<order id>",
  "isShopeeMarketplaceOrder": true,
  "isInstantOrder": false,
  "eventCount": 30,
  "trackingUrl": "https://spx.ph/track?PH250040584072U",
  "events": [
    {
      "time": "2025-08-15T08:56:23.000Z",
      "timestamp": 1755248183,
      "code": "F980",
      "name": "Delivered",
      "description": "Parcel has been delivered",
      "milestoneCode": 8,
      "milestoneName": "Delivered",
      "reasonCode": null,
      "reason": null,
      "location": null,
      "nextLocation": null,
      "shownOnTrackingPage": true
    },
    {
      "time": "2025-08-14T04:32:01.000Z",
      "timestamp": 1755145921,
      "code": "F650",
      "name": "Delivery Attempt Failed",
      "description": "Delivery attempt was unsuccessful: :D01004",
      "milestoneCode": 6,
      "milestoneName": "Out for delivery",
      "reasonCode": "R169",
      "reason": "Recipient unavailable for parcel",
      "location": null,
      "nextLocation": null,
      "shownOnTrackingPage": true
    }
  ],
  "scrapedAt": "2026-11-05T07:33:04.670Z"
}
```

This record is real output from a test run. The `events` array is shortened to two of its 30 events, and the order ID is masked here.

### How much does SPX tracking cost?

You pay per parcel found and saved to the dataset, plus a small start fee per run. Numbers that are not found, have no events yet, are unsupported or invalid are free.

| Apify plan tier | Per parcel found | Per 1,000 parcels | Discount |
|---|---|---|---|
| Free | USD 0.005 | USD 5.00 | – |
| Bronze (Starter) | USD 0.004875 | USD 4.875 | 2.5% |
| Silver (Scale) | USD 0.00475 | USD 4.75 | 5% |
| Gold (Business) | USD 0.004 | USD 4.00 | 20% |

The start fee is USD 0.005 per run, charged once per started GB of allocated memory (the default 128 MB is one start event). Examples: tracking 1 parcel costs USD 0.010 on the Free tier; tracking 500 parcels costs USD 2.505 on the Free tier or USD 2.005 on Gold. Platform compute is included in these prices.

### What happens when a tracking number is not found?

It is skipped without charge and explained in the `OUTPUT` record of the run's key-value store. Each number gets one outcome: `data`, `not_found` (SPX has no parcel with this number in that country), `no_events` (SPX knows the number but has no scans yet, or the history was removed), `unsupported_country`, `invalid_format`, `duplicate`, `blocked` or `failed`. The run status message summarizes the counts.

### When should I use a different tool?

- For DHL, FedEx, UPS or other carriers, use the [17TRACK Package Tracking Scraper](https://apify.com/muhammadafzal/17track-package-tracking-scraper), [DHL Tracking Scraper](https://apify.com/muhammadafzal/dhl-package-tracking-scraper), [FedEx Tracking Scraper](https://apify.com/muhammadafzal/fedex-package-tracking-scraper) or [UPS Tracking Scraper](https://apify.com/muhammadafzal/ups-package-tracking-scraper).
- For SPX Thailand parcels, this Actor does not work yet.
- For Shopee product, price or review data, use a Shopee product scraper; this Actor reads parcel tracking only.
- It does not return recipient names, phone numbers, addresses, delivery photos or live rider location.

### Use it from an AI assistant

SPX Tracking Scraper works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add `https://mcp.apify.com/?tools=muhammadafzal/spx-express-package-tracking-scraper` as an MCP server, then ask, for example: "Check the SPX status of SPXID062930295622 and PH250040584072U and tell me which ones are delivered."

### FAQ

**Is this an official SPX or Shopee API?**
No. It reads the same public tracking data that the SPX Express website shows anyone who enters a tracking number. It is not affiliated with SPX Express or Shopee.

**Does it return personal data?**
No. Recipient names, phone numbers, addresses, courier names and proof-of-delivery photos are never saved. Event descriptions are in English, which SPX publishes without the recipient's name.

**How long does SPX keep tracking history?**
Long: in our tests, parcels delivered in 2022 and 2025 still returned their full history. Some older numbers return `no_events` because SPX removed their history.

**Can I track Shopee Express parcels from several countries in one run?**
Yes. Mix Philippine, Malaysian, Indonesian, Vietnamese, Singaporean and Brazilian numbers; each is looked up on its own country site.

**Why does a new tracking number return not found?**
SPX registers a number when the seller arranges shipment, and the first scan can take a day. Check that the number has its country prefix and retry later; not-found numbers are free.

**Can I schedule it to monitor parcels?**
Yes. Save the input as an Apify task and schedule it, then use a webhook or integration to act on `status` changes such as `DELIVERY_UNSUCCESSFUL` or `RETURNED_TO_SENDER`.

Last verified: 2026-11-05

# Actor input Schema

## `trackingNumbers` (type: `array`):

Use this when you have SPX Express (Shopee Express) tracking numbers from the Philippines, Malaysia, Indonesia, Vietnam, Singapore or Brazil. One number per row, up to 500 per run, with its country prefix as shown in the Shopee or SPX app, for example SPXID062930295622, SPXVN059516728705 or PH250040584072U. Spaces and hyphens are removed and duplicates are tracked once. Not for Shopee order IDs, SpeedX (US) or SPX Thailand numbers.

## `country` (type: `string`):

Use this only when your numbers have no country prefix. Auto reads the country from the prefix (SPXPH/PH, SPXMY/MY, SPXID, SPXVN, SPXSG, BR). Default: Auto. Thailand and Taiwan are not supported yet; those numbers are listed in OUTPUT and not charged.

## Actor input object example

```json
{
  "trackingNumbers": [
    "PH250040584072U"
  ],
  "country": "auto"
}
```

# Actor output Schema

## `parcels` (type: `string`):

Parcel records with status, delivery time and event history.

## `summary` (type: `string`):

Outcome of every tracking number, counts and charged result events.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "trackingNumbers": [
        "PH250040584072U"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/spx-express-package-tracking-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "trackingNumbers": ["PH250040584072U"] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/spx-express-package-tracking-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "trackingNumbers": [
    "PH250040584072U"
  ]
}' |
apify call muhammadafzal/spx-express-package-tracking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/spx-express-package-tracking-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8V5ztzLJtsz2tZ83j/builds/I3XmrhemzgKmsF5Dx/openapi.json
