# Spain Trademark Monitor — New BOPI/OEPM Filings (`rastriq/spain-trademark-monitor`) Actor

Daily new trademark, trade-name and shop-sign applications, grants and refusals from the Spanish BOPI (OEPM) for one, several or all Nice classes. Holder data: companies only by default, optional pseudonymous key or individuals' names.

- **URL**: https://apify.com/rastriq/spain-trademark-monitor.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 publications

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

## Spain Trademark Monitor — New BOPI / OEPM Trademark Filings by Nice Class

**Spain Trademark Monitor** reads the official Spanish industrial-property bulletin (BOPI, OEPM) every working day. It returns the new trademark, trade-name and shop-sign applications, plus grants, refusals and renewals, for **one, several or all Nice classes**: software (9), advertising and retail (35), clothing (25), food (29, 30), restaurants (43)… It is an early signal of new brands, products and competitors in any sector, often months before they launch.

### 🏷️ What is Spanish Trademark Monitor?

Every new brand in Spain, from a restaurant concept to a fashion label or a SaaS product, is usually filed at the OEPM (Spanish Patent and Trademark Office) before it launches. The BOPI publishes those filings daily, but its search page shows one query at a time and mixes in personal data of the applicants.

Spanish Trademark Monitor turns the bulletin into a clean dataset:

- 📅 **Daily or by date range**: the last bulletin by default, or any range up to a year.
- 🏷️ **Any Nice class**: one (`["9"]`), several (`["29","30","43"]`) or `all`. A mark covering several requested classes is returned once, with `matchedClasses` and the goods/services text of each class in `goodsServices`. Default: 43 (restaurants, bars, cafés, catering).
- 🔤 **Three modalities**: marca (trademark), nombre comercial (trade name) and rótulo (shop sign).
- 🔒 **Privacy by default**: by default the holder is named only when it is a company. With **Holder data** you can add a pseudonymous `holderKey` per holder, or opt in to individuals' names. Individuals' ID numbers and addresses, and representatives, are never output.

### 📊 What data does Spanish Trademark Monitor extract?

| Field | Example |
|---|---|
| 🆔 `uid`, `fileNumber`, `fileKey` | `bopi:9536696`, `4405008`, `M4405008` |
| 📰 `annotationType`, `isApplication` | Solicitudes · `true` |
| 📅 `publicationDate`, `filingDate`, `decisionDate` | 2026-11-13 · 2026-09-25 |
| 🏷️ `name`, `signType`, `modality` | FUSHI-HO TABERNA · F · M |
| 🏷️ `niceClasses`, `matchedClasses` | `[30, 43]` · `[43]` |
| 📝 `goodsServices` | `{"43": "Servicios de restauración…"}` (also `class43Text`) |
| 🏢 `holderType`, `holderName`, `holderTaxId` | legal_entity · CAFE LA VIA, SL · B12345674 |
| 🔑 `holderKey` | `caf639b5ab640e10` (with `hashed` or `include_individuals`) |
| 📍 `province`, `countryOfResidence` | VALENCIA · ES |
| 🖼️ `imageUrl` | image of the sign published by the OEPM |

`matchedClasses` is empty when you watch all classes, or when a decision does not repeat the classes. Grants and decisions often carry only the file number. Join them to the application with `fileNumber` to follow a brand from filing to registration.

### 🚀 How to use Spanish Trademark Monitor

1. Open Spanish Trademark Monitor in Apify Console.
2. Leave the dates empty to read the last bulletin, or set `dateFrom` and `dateTo`.
3. Pick the Nice classes to watch from the dropdown (43 Restaurants, 9 Software, 35 Advertising & retail…) or **All classes**.
4. Keep the pre-filled proxy (Residential, Spain). The OEPM does not answer datacenter IPs.
5. Click **Start**. A day takes a few seconds; a two-week range about 40 seconds.
6. Schedule it every working day to get each morning's new brands in your sector.

### ⚙️ Input parameters

| Parameter | Type | Description |
|---|---|---|
| `dateFrom`, `dateTo` | date | Bulletin dates; empty = last bulletin |
| `niceClasses` | array (dropdown) | Nice classes 1–45 with their names, or **All classes**; default 43 |
| `holderData` | string (dropdown) | `companies_only` (default), `hashed`, `include_individuals` |
| `modalities` | array | 1 marca, 2 nombre comercial, 3 rótulo |
| `annotationTypes` | array | Keep only e.g. `Solicitudes` (new applications) |
| `requestIntervalSecs` | number | Pacing, default 1 s |
| `proxyConfiguration` | object | Residential, country ES |

### 📦 Output example

```json
{
  "uid": "bopi:9536696",
  "fileKey": "M4405008",
  "annotationType": "Solicitudes",
  "isApplication": true,
  "publicationDate": "2026-11-13",
  "filingDate": "2026-09-25",
  "name": "FUSHI-HO TABERNA",
  "niceClasses": [43],
  "matchedClasses": [43],
  "goodsServices": {"43": "SERVICIOS DE RESTAURACION (ALIMENTACION); SERVICIOS DE RESTAURANTE, TABERNA, BAR Y CAFETERIA"},
  "class43Text": "SERVICIOS DE RESTAURACION (ALIMENTACION); SERVICIOS DE RESTAURANTE, TABERNA, BAR Y CAFETERIA",
  "holderType": "natural_person_or_unclear",
  "holderName": null,
  "holderKey": null,
  "province": "VALENCIA"
}
```

### 💰 How much does it cost to monitor Spanish trademarks?

Spanish Trademark Monitor uses **pay-per-event pricing**: you pay per publication returned; compute and proxy traffic are included.

| Event | Price |
|---|---|
| Actor start | $0.005 per run |
| Publication record | **$5 per 1,000** (Free plan) · $4.50 Bronze · $4 Silver · $3.50 Gold and above |

A daily class-43 run returns 20–70 publications, about $0.10–0.35 a day. Watching all classes returns the whole bulletin (829 publications on 13 November 2026, about $4.15): pick the classes you need. Measured on 2026-11-15: 8 bulletins (2-13 November) gave 509 class-43 publications, including 227 new applications, in 42 requests and 41 seconds.

### 🔗 Related Actors

- [Restaurant Chain Locations Spain](https://apify.com/rastriq/spain-restaurant-chain-locations) — the store network of 25 restaurant chains, with openings and closures.
- [Spain Franchise Database](https://apify.com/rastriq/spain-franchise-database) — franchise terms of Spanish brands.
- [Glovo Scraper Spain](https://apify.com/rastriq/glovo-spain-scraper) and [Just Eat Scraper Spain](https://apify.com/rastriq/just-eat-spain-scraper) — menu prices and delivery fees per store.

### ❓ FAQ

**Is this data public?** Yes. The BOPI is the official public bulletin of the OEPM. The actor reads it at one request per second and leaves out personal data of individuals.

**Why is the holder empty for some marks?** The holder is an individual, or the name has no company form. By default the actor does not output individuals' names.

**What does Holder data do?**

| Option | Companies | Individuals |
|---|---|---|
| `companies_only` (default) | name + CIF | nothing |
| `hashed` | name + CIF + `holderKey` | only `holderKey` |
| `include_individuals` | name + CIF + `holderKey` | name + `holderKey` (never the NIF or address) |

`holderKey` is a stable pseudonymous key (same holder, same key across runs), useful to count filings per applicant without identifying people. It is pseudonymised data, not anonymous. With `include_individuals` you process **personal data under the GDPR**: you need a lawful basis (e.g. legitimate interest), must inform the people concerned and honour objections and deletion requests.

**Why do some records have no name?** Grants, refusals and renewals are published with the file number only. Use `fileNumber` to find the application.

**What if the BOPI changes its search?** Each bulletin day runs a control query. If the search starts returning nothing, the day is reported as failed instead of "no new marks".

***

### 🇪🇸 Versión en español

#### ¿Qué es Spanish Trademark Monitor?

Lee cada día el BOPI de la OEPM y devuelve las solicitudes de marca, nombre comercial y rótulo de una, varias o todas las clases de Niza (por defecto la 43, restauración), con sus concesiones, denegaciones y renovaciones, y el texto de productos y servicios de cada clase. Sirve para detectar marcas, productos y competidores nuevos de cualquier sector antes de que se lancen.

#### ¿Qué datos extrae?

Denominación, tipo de publicación, fechas, clases, texto de servicios de la clase 43 y provincia. Por defecto, el titular solo cuando es una sociedad. Con **Holder data** puedes añadir una clave seudónima por titular (`hashed`) o incluir el nombre de personas físicas (`include_individuals`, datos personales sujetos al RGPD). Nunca el NIF ni el domicilio de personas físicas, ni los representantes.

#### ¿Cómo se usa?

Deja las fechas vacías para leer el último boletín, o elige un rango de fechas. Usa proxy residencial de España: la OEPM bloquea las IP de centro de datos.

#### ¿Cuánto cuesta?

Pago por resultado: 5 $ por cada 1.000 publicaciones en el plan Free (menos en planes superiores) y 0,005 $ por ejecución. Una ejecución diaria de la clase 43 cuesta entre 0,10 y 0,35 $.

# Changelog

This Actor's version history is a separate document: https://apify.com/rastriq/spain-trademark-monitor/changelog.md

# Actor input Schema

## `dateFrom` (type: `string`):

First bulletin date (YYYY-MM-DD). Empty = dateTo.

## `dateTo` (type: `string`):

Last bulletin date. Empty = the last published bulletin.

## `niceClasses` (type: `array`):

Pick one or more Nice classes, or <b>All classes</b> for the whole bulletin. Marks covering several selected classes are returned once. Default: 43 (restaurants).

## `modalities` (type: `array`):

Empty = all three.

## `annotationTypes` (type: `array`):

Keep only types containing these words, e.g. Solicitudes (new applications) or Concesiones. Empty = all.

## `holderData` (type: `string`):

<b>Companies only</b>: name and CIF of legal entities; individuals are withheld. <b>Pseudonymous key</b>: adds <code>holderKey</code>, a stable hash per holder, so you can group filings by applicant without identifying people. <b>Include individuals</b>: also outputs the names of natural persons (never their NIF or address). These are <b>personal data under the GDPR</b>: you need a lawful basis to store and use them, must inform the people concerned and honour objections and deletion requests.

## `requestIntervalSecs` (type: `number`):

Pacing to the OEPM.

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

RESIDENTIAL, country ES. From a datacenter IP the OEPM answers 403.

## Actor input object example

```json
{
  "niceClasses": [
    "43"
  ],
  "holderData": "companies_only",
  "requestIntervalSecs": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}
```

# Actor output Schema

## `records` (type: `string`):

All publications.

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

Per day and modality totals.

# 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 = {
    "niceClasses": [
        "43"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "ES"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/spain-trademark-monitor").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 = {
    "niceClasses": ["43"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "ES",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/spain-trademark-monitor").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 '{
  "niceClasses": [
    "43"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "ES"
  }
}' |
apify call rastriq/spain-trademark-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rastriq/spain-trademark-monitor"
        }
    }
}
```

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/SLaGn8OhQWxuhlCYx/builds/J0hFEDgxBV44pUtQj/openapi.json
