# EU Shopify Store Legal & VAT Check (`mikee368/eu-shopify-store-legal-vat`) Actor

Check a Shopify store for an EU legal notice, privacy policy, and withdrawal policy, then validate a published EU VAT number with the official VIES service. One row per store, with the gaps and a score. Unreachable stores are free.

- **URL**: https://apify.com/mikee368/eu-shopify-store-legal-vat.md
- **Developed by:** [Mike Berckmoes](https://apify.com/mikee368) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.00 / 1,000 store checkeds

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/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

### What does EU Shopify Store Legal & VAT Check do?

**EU Shopify Store Legal & VAT Check** reads a Shopify store with plain HTTP and reports the EU legal pages a shopper should be able to find. It looks for the **legal notice** (Impressum), **privacy policy**, **refund / withdrawal policy**, terms, and contact page, both in the footer and on Shopify's `/policies/` URLs. From those pages it extracts the business name, address, email, phone, company registration number (KvK, Handelsregister, and similar), and EU VAT number.

When a VAT number is present it is sent to the official EU VIES REST service at `https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number`. The row records **valid**, **invalid**, or **unavailable**, plus the registered name and address when VIES returns them, and whether that name matches the name on the site. Each store gets one dataset row with an `issues` list and a `score`. There is no browser.

### Why use EU Shopify Store Legal & VAT Check?

Use it before you onboard a Shopify merchant, review a marketplace seller, or audit your own shop.

- One row per store, so a list of shops becomes a table you can filter.
- Missing legal notice, missing withdrawal policy, missing privacy policy, missing VAT number, invalid VAT, and a VIES name mismatch are separate flags.
- The VAT check uses the European Commission's VIES service, not a scraped copy of a national register.
- Runs stay small: 256 MB, one request at a time, a pause between requests, and a hard page cap.
- On Apify you can schedule a run, call the Actor from the API tab, or download the dataset. Integrations and the run log are the same as for any other Actor.

The score starts at 100. A missing legal notice costs 25, a missing withdrawal policy 20, a missing privacy policy 20, a missing VAT number 15, an invalid VAT number 15, and a name mismatch 10. Contact and terms are extracted and do not change the score. A VIES outage is `unavailable` and is not treated as an invalid number. Germany often returns dashes instead of a name; that is not a mismatch.

### What data can EU Shopify Store Legal & VAT Check extract?

| Field | Type | Description |
| --- | --- | --- |
| storeUrl | text | Normalised store URL |
| businessName | text | Name printed with a legal-form suffix |
| address | text | Street and postcode published on the site |
| email | text | Email published on the legal or contact page |
| phone | text | Phone printed next to a telephone label |
| registrationNumber | text | KvK, HRB, or similar register number |
| vatNumber | text | EU VAT number found on the site |
| vatStatus | text | valid, invalid, unavailable, or missing |
| vatRegisteredName | text | Name returned by VIES |
| nameMatch | boolean | Site name against the VIES name |
| issues | list | Gap codes for this store |
| score | number | 100 minus the weight of each issue |

The row also includes the legal, privacy, refund, terms, and contact URLs, the page count, and a short error when the homepage could not be read.

### How to check a Shopify store

1. Open the Actor and sign in to Apify.
2. Open the Input tab. Paste one Shopify store URL per line into **Shopify store URLs**.
3. Leave **Max pages per store** at 6 unless you need the extra `/pages/impressum` fallback. Raise it to 7 or 8 for that.
4. Keep the delay at 1 second. Start the run from the console, a schedule, or the API tab.
5. Open the dataset. Download JSON, CSV, Excel, or HTML, or read `RUN_SUMMARY` in the key-value store.

A store whose homepage does not respond is still a row, with `issues` set to `unreachable` and no charge.

### How much will it cost to check Shopify stores?

Live pay-per-event pricing is **$0.006 per `store-checked`** in `.actor/pricing.json` (also under `pricingPrepared` in `.actor/deploy.json`). The event is charged only when the homepage responds, including a store whose only result is a list of gaps. An unreachable store, an invalid URL, and a store skipped because the charge cap was already reached are **$0** and are **not stored** when the cap stops the run. Platform compute is separate and is capped by the 256 MB memory limit. `apify-default-dataset-item` is not priced.

**Measured on 28 October 2026.** One check of `https://eu.gymshark.com/` with the default page cap, a 15 second timeout, and a 1 second delay took **10.4 seconds** and **7 HTTP calls** (the homepage, the policy URLs opened inside the cap, and one VIES call). VIES answered. No business details from that run are stored in this repo. Apify compute in this repo is priced as `$0.20` per GB-hour. At 256 MB that run is `0.25 * 10.4 / 3600 * 0.20`, about **$0.00014**. A store that returns every policy page is the same shape of call and should stay near that 10 second mark unless VIES is slow; a 20 second run is about **$0.00028**. The event price is the part that matters: **100 reachable stores are $0.60** in events, plus about a cent and a half of compute at the measured pace. Twenty-five stores, the default cap, are $0.15 in events when every homepage responds.

Set the run's maximum charge to at least **$0.006** so one store fits. The Actor does not add a price for `apify-default-dataset-item`. Leave the platform start event at its default.

### Input

See the Input tab for the full form. `storeUrls` is the list of shops. `maxPages` defaults to 6 and includes the homepage. `requestDelaySecs` defaults to 1. `timeoutSecs` defaults to 15. `maxStores` defaults to 25 and stops at 100. `prefill` is only an example in the console; an API run must send `storeUrls`.

### Output

You can download the dataset in JSON, HTML, CSV, or Excel. Two simplified rows:

```json
[
  {
    "storeUrl": "https://eu-example.myshopify.com/",
    "businessName": "Example Handel GmbH",
    "vatNumber": "DE123456788",
    "vatStatus": "valid",
    "nameMatch": true,
    "issues": [],
    "score": 100
  },
  {
    "storeUrl": "https://bare-example.myshopify.com/",
    "businessName": null,
    "vatNumber": null,
    "vatStatus": "missing",
    "nameMatch": null,
    "issues": ["no-legal-notice", "no-withdrawal-policy", "no-privacy-policy", "no-vat-number"],
    "score": 20
  }
]
```

`RUN_SUMMARY` in the key-value store has the reachable count and the number of `store-checked` events.

### Tips

- Put the shop's own **https** domain in the list (port 443 only). The Actor does not discover stores, does not open `apps.shopify.com`, and blocks private, link-local, and metadata hosts on every request including redirects (at most three hops).
- A footer link that returns HTTP 404 is treated as missing. A footer link that is not opened because `maxPages` is 1 still counts as present, but the VAT number on that page will be missed.
- Keep the delay at 1 second. The run is already sequential.
- Memory is fixed at 256 MB so a higher memory setting cannot wipe out the event price.
- If VIES is down, rerun later. `vat-invalid` is only used when VIES says the number is not valid.

### FAQ, disclaimer, and support

**Does this replace a lawyer?** No. The score is a page-and-number checklist. It does not decide whether a text meets the Consumer Rights Directive, the GDPR, or a national imprint statute.

**Which VAT numbers are sent to VIES?** Only numbers that match an EU member-state pattern, including EL for Greece and XI for Northern Ireland. GB and Swiss numbers are not sent.

**What personal data can appear?** The legal notice of a shop often publishes a company email, a phone number, and a business address. Those values are copied into the dataset for **companies** (a visible legal-form suffix on the business name). For **sole traders** (no such suffix, or VIES returns a natural-person registration with `---`), **address, email, phone, vatRegisteredName, and vatRegisteredAddress are withheld** even when the pages contain them. This is still public merchant information when shown on a site; use the Actor only where you have a lawful basis, and do not use it to collect consumer data. It does not read customer accounts, orders, or checkout forms.

Questions and bugs belong on the Issues tab. For a scripted run, use the API tab. The same input works from a schedule.

# Actor input Schema

## `storeUrls` (type: `array`):

One store URL or domain per line, for example https://eu-example.myshopify.com/. The homepage and a small set of policy pages are fetched with plain HTTP. apps.shopify.com is refused.

## `maxPages` (type: `integer`):

HTML pages fetched per store, including the homepage. The default is 6: the homepage plus legal notice, privacy, refund, terms, and contact. A linked page that is not fetched still counts as present.

## `requestDelaySecs` (type: `integer`):

Pause before each request after the first. A retry waits at least one second.

## `timeoutSecs` (type: `integer`):

Timeout for each HTTP request, including the VIES call.

## `maxStores` (type: `integer`):

How many stores to check in one run. Extra URLs are stored as free not-checked rows.

## Actor input object example

```json
{
  "storeUrls": [
    "https://eu-example.myshopify.com/"
  ],
  "maxPages": 6,
  "requestDelaySecs": 1,
  "timeoutSecs": 15,
  "maxStores": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

One dataset item per store URL.

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

How many stores were reachable and how many store-checked events were 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 = {
    "storeUrls": [
        "https://eu-example.myshopify.com/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mikee368/eu-shopify-store-legal-vat").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 = { "storeUrls": ["https://eu-example.myshopify.com/"] }

# Run the Actor and wait for it to finish
run = client.actor("mikee368/eu-shopify-store-legal-vat").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 '{
  "storeUrls": [
    "https://eu-example.myshopify.com/"
  ]
}' |
apify call mikee368/eu-shopify-store-legal-vat --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mikee368/eu-shopify-store-legal-vat"
        }
    }
}
```

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/kiBCyGgrX1AQo6XFh/builds/dhijg8qTjo3OWI5F9/openapi.json
