# Ecommerce Shipping & Returns Scraper (`pequod-labs/ecommerce-shipping-intelligence`) Actor

Bulk ecommerce shipping scraper: carriers, return portals, free-shipping thresholds, PUDO pickup, shipping software. $15/1k stores. EU policy pages.

- **URL**: https://apify.com/pequod-labs/ecommerce-shipping-intelligence.md
- **Developed by:** [Pequod](https://apify.com/pequod-labs) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 store analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Ecommerce Shipping Intelligence

**Turn any list of ecommerce domains into a structured shipping & returns intelligence dataset — carriers, return portals, free-shipping thresholds, pickup points, and the shipping software stack behind each store.**

No API keys, no LLM costs, no scraping setup. Paste domains, get enriched profiles.

### Why this Actor

Shipping and returns data is public — it sits on policy pages, FAQs and footers — but collecting it manually takes 10–15 minutes per site. This Actor does it in seconds per domain, at scale, and returns clean, queryable fields:

- **Which carriers does this merchant use?** (DHL, GLS, PostNL, UPS, Colissimo, InPost, …)
- **Do they have a branded return portal, or do returns go through email?** (Loop, Outvio, ReturnGO, Narvar, AfterShip, and 30+ more vendors detected)
- **What is their free-shipping threshold?** (stated in EUR)
- **Do they offer pickup points / PUDO or click & collect?**
- **Which shipping software runs behind the store?** (multi-carrier platforms, tracking suites, returns SaaS)
- **Which ecommerce platform?** (Shopify, WooCommerce, Magento, PrestaShop, …)
- **Do they ship internationally?**

### Who uses it

| You are | You get |
|---------|---------|
| **Logistics / carrier sales team** | Prospect lists segmented by current carrier mix — target merchants using a competitor, or single-carrier stores ready for multi-carrier |
| **Returns / post-purchase SaaS** | Merchants with manual, email-only returns flows — your exact ICP — plus stores already using a competitor's portal |
| **Shipping software vendor** | The software stack each merchant already runs, so you qualify before the first call |
| **Market researcher / analyst** | Free-shipping thresholds, PUDO adoption, international-shipping rates across whole markets |
| **Agency / consultant** | Instant shipping-experience audits for pitches and benchmarks |

### How it works

1. Fetches each homepage with browser-like headers (SSL fallback included)
2. Discovers shipping, returns, FAQ and tracking policy pages — multilingual: full rule coverage for EN, IT, DE, FR, NL, ES, PT, PL, SV, DA, NO, FI, CS, RO, HU, EL; AI enhancement reads everything else
3. Recovers missing pages via sitemap parsing, canonical path probing and nav-link ranking
4. Runs 200+ deterministic detection rules refined on thousands of real European stores — no hallucinations, every field is backed by on-page evidence
5. When a policy page is written in a way the rules can't parse — "you have two weeks to change your mind" instead of "14 days" — AI enhancement reads it and fills the gap. Every AI answer must point at an exact sentence from the page; if that sentence isn't there, the answer is thrown away. Fields recovered this way are marked in `llm_enhanced_fields`, so you always know which values came from rules and which from AI

### Quick start

```json
{
  "domains": ["velasca.com", "bergfreunde.de"],
  "proxyConfiguration": { "useApifyProxy": true }
}
````

That's it. One dataset item per domain.

#### Input options

- **domains** (required): list of ecommerce domains or URLs
- **concurrency** (optional, default 5): parallel domains (1–20)
- **proxyConfiguration** (optional, recommended): Apify Proxy avoids IP blocks (403/429) from ecommerce WAFs
- **pushFailed** (optional, default `false`): unreachable domains are kept out of the dataset, so **you only pay for successfully analyzed domains**. They are always listed in the `FAILED_DOMAINS` record of the key-value store; set to `true` to also push them as dataset items
- **browserFallback** (optional, default `false`): render the homepage with a headless browser when plain HTTP fails — recovers JS-only storefronts and hard WAFs (2048 MB memory suggested)
- **aiEnhanced** (optional, default `true`): when the rules can't read an oddly-worded policy page, a language model extracts the missing fields. Every AI answer is verified against the page text before being accepted — values are never invented. Enhanced results are billed as a separate event; turn off to pay the base price only

### Example output

```json
{
  "domain": "bergfreunde.de",
  "canonical_domain": "bergfreunde.de",
  "carriers": ["DHL"],
  "carriers_state": "detected",
  "return_portal_state": "unknown",
  "return_window_days": 7,
  "international_state": "ships_intl",
  "ecommerce_platform": "Shopware",
  "discovered_policy_urls": {
    "shipping": ["https://www.bergfreunde.de/hochtouren/"],
    "returns": ["https://www.bergfreunde.de/rueckgabe/"],
    "faq": ["https://www.bergfreunde.de/faq/"]
  },
  "shipping_pages_fetched": 4
}
```

#### Output fields

| Field | Description |
|-------|-------------|
| `domain` | Input domain |
| `carriers` | Detected carrier brands (e.g. DHL, GLS, PostNL) |
| `carriers_state` | `detected`, `no_carrier_proven`, or `unknown` |
| `return_portal_state` | `has_portal`, `manual_only`, or `unknown` |
| `returns_portal` | Branded returns vendor when detected (Loop, Outvio, ReturnGO, …) |
| `return_window_days` | Stated return window in days |
| `free_shipping_threshold_eur` | Free-shipping threshold in EUR when stated |
| `pickup_state` / `pickup_vendors` | Carrier PUDO / pickup point detection |
| `click_and_collect` | Merchant store pickup |
| `detected_tools` / `detected_vendors` | Shipping/returns software stack on site |
| `ecommerce_platform` | Shopify, WooCommerce, Magento, … |
| `international_state` | `ships_intl`, `domestic_only_proven`, or `unknown` |
| `tracking_vendor` | Branded tracking platform when present |
| `discovered_policy_urls` | Policy URLs found and fetched per category |

Every state field distinguishes **proven** facts from **unknown** — the Actor never guesses. `unknown` means the public pages don't say; it never fabricates a value.

### Reliability

- Unreachable homepage + proxy configured → automatic retry on a **fresh proxy session** (new exit IP)
- Domains that still fail are listed in the `FAILED_DOMAINS` record of the run's key-value store, so you always know exactly what to re-run
- Failed domains are not pushed to the dataset by default — **you never pay for empty results**
- AI enhancement never overrides the rules: it only fills fields that would otherwise be `unknown`, and only with values it can prove with a quote from the page. You are only charged the AI event when it actually recovered something

### Limitations

- **JavaScript-only storefronts** may return partial profiles from plain HTTP — enable `browserFallback` to recover them
- **Hard WAFs**: a small share of sites block all automated traffic; these end up in `FAILED_DOMAINS` instead of producing bad data
- **Checkout-only signals**: pickup options shown only at checkout may not appear on policy pages (`pickup_state: unknown`)
- **Free-shipping thresholds in local currency** (zł, kr, Kč, Ft, lei): the deterministic parser extracts EUR thresholds only; local-currency amounts are recovered via AI enhancement when a verbatim quote is found on the page

### Questions or feature requests?

Open an issue on the Actor's page — feedback on new carriers, vendors or markets to detect is welcome.

# Actor input Schema

## `domains` (type: `array`):

Ecommerce domains to analyze (e.g. velasca.com). One per line.

## `concurrency` (type: `integer`):

Parallel domains processed at once.

## `proxyConfiguration` (type: `object`):

Apify Proxy avoids IP blocks (403/429) from ecommerce WAFs. Strongly recommended for real domain lists.

## `pushFailed` (type: `boolean`):

Off by default: you only pay for successfully analyzed domains. Domains that could not be fetched are always listed in the FAILED\_DOMAINS record of the key-value store; enable this to also push them as dataset items.

## `browserFallback` (type: `boolean`):

Render pages with a headless browser when the HTTP fetch fails or returns a thin JS shell without policy links, and probe policy paths in the browser on hard WAFs. Slower — use 2048 MB memory.

## `useResidentialProxy` (type: `boolean`):

Route Apify Proxy through residential IPs. Slower and more expensive than datacenter proxy, but recovers sites that block datacenter ranges (Fnac, some PL/RO stores). Requires proxyConfiguration.useApifyProxy.

## `aiEnhanced` (type: `boolean`):

When detection rules can't read an oddly-worded policy page, a language model extracts the missing fields. Every AI answer is verified against the page text before being accepted — values are never invented. Enhanced results are billed as a separate event.

## Actor input object example

```json
{
  "domains": [
    "velasca.com"
  ],
  "concurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "pushFailed": false,
  "browserFallback": false,
  "useResidentialProxy": false,
  "aiEnhanced": true
}
```

# Actor output Schema

## `shippingProfiles` (type: `string`):

One profile per successfully analyzed domain: carriers, return portal, free-shipping threshold, pickup/PUDO, software stack.

## `failedDomains` (type: `string`):

JSON array of domains that could not be fetched or analyzed. Re-run the Actor with this list (optionally with browserFallback enabled) to retry them. Failed domains are never charged.

# 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 = {
    "domains": [
        "velasca.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pequod-labs/ecommerce-shipping-intelligence").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 = {
    "domains": ["velasca.com"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("pequod-labs/ecommerce-shipping-intelligence").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "domains": [
    "velasca.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call pequod-labs/ecommerce-shipping-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=pequod-labs/ecommerce-shipping-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Ecommerce Shipping & Returns Scraper",
        "description": "Bulk ecommerce shipping scraper: carriers, return portals, free-shipping thresholds, PUDO pickup, shipping software. $15/1k stores. EU policy pages.",
        "version": "0.3",
        "x-build-id": "n5TjCVjNNX5QWZgk6"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/pequod-labs~ecommerce-shipping-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-pequod-labs-ecommerce-shipping-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/pequod-labs~ecommerce-shipping-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-pequod-labs-ecommerce-shipping-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/pequod-labs~ecommerce-shipping-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-pequod-labs-ecommerce-shipping-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains",
                        "type": "array",
                        "description": "Ecommerce domains to analyze (e.g. velasca.com). One per line.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "concurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Parallel domains processed at once.",
                        "default": 5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy avoids IP blocks (403/429) from ecommerce WAFs. Strongly recommended for real domain lists."
                    },
                    "pushFailed": {
                        "title": "Include failed domains in dataset",
                        "type": "boolean",
                        "description": "Off by default: you only pay for successfully analyzed domains. Domains that could not be fetched are always listed in the FAILED_DOMAINS record of the key-value store; enable this to also push them as dataset items.",
                        "default": false
                    },
                    "browserFallback": {
                        "title": "Browser fallback",
                        "type": "boolean",
                        "description": "Render pages with a headless browser when the HTTP fetch fails or returns a thin JS shell without policy links, and probe policy paths in the browser on hard WAFs. Slower — use 2048 MB memory.",
                        "default": false
                    },
                    "useResidentialProxy": {
                        "title": "Residential proxy",
                        "type": "boolean",
                        "description": "Route Apify Proxy through residential IPs. Slower and more expensive than datacenter proxy, but recovers sites that block datacenter ranges (Fnac, some PL/RO stores). Requires proxyConfiguration.useApifyProxy.",
                        "default": false
                    },
                    "aiEnhanced": {
                        "title": "AI enhancement",
                        "type": "boolean",
                        "description": "When detection rules can't read an oddly-worded policy page, a language model extracts the missing fields. Every AI answer is verified against the page text before being accepted — values are never invented. Enhanced results are billed as a separate event.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
