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

- **URL**: https://apify.com/rastriq/spain-trademark-monitor/changelog.md
- **Full Actor documentation**: https://apify.com/rastriq/spain-trademark-monitor.md

## Changelog

### 0.1 — 2026-11-15 (not deployed)

First version. BOPI tomo 1 (OEPM) publications of one Nice class (43 by default) for marca,
nombre comercial and rótulo, one record per publication. Plain HTTP, no captcha, no token, no
browser. Needs a Spanish residential IP.

**Source behaviour, as measured on 2026-11-15 from a home (residential) connection:**

- `buscarAnotaciones` takes the form filters twice, top level and serialised in `body`. The body
  was copied from the web form (built-in browser, 2026-11-15); the survey only had a partial
  version. The page size is the `fin` parameter (`inicio=20&fin=20` = second page of 20).
- Without `body` the API answers 200 with `[]`. Every bulletin day runs a control query (all
  classes, one result): 731 publications on 13/11. If it is empty the day fails.
- Days without a bulletin (Mondays 2 and 9 November) answer `publicacionesBopiTomoYFecha` with an
  empty body. First live run failed those two days on a JSON error; fixed.
- `&amp;` came through in names ("CHIPS & MORE"); fixed with HTML unescaping.

**Live runs** (`tools/live_check.py`, 2-13/11/2026, home connection, 1 request/s):

| Run | Bulletins | Publications | Applications | Requests | Time |
|---|---:|---:|---:|---:|---:|
| 1 | 8 | 509 (M 406, N 103, R 0) | 227 | 42 | 41 s |
| 2 (30 min later) | 8 | 509, same 509 uids and identical records | 227 | 42 | 41 s |

- Types: 227 applications, 163 grants, 58 renewals, 41 suspensions, 11 refusals, others.
- Holders: 260 legal entities (name kept), 248 natural persons or unclear (name withheld), 1
  unknown.
- Applications by province: Madrid 44, Barcelona 18, Alicante 18, Illes Balears 17, Málaga 15.
- Privacy scan of the output: 0 personal NIF/NIE patterns.

**Privacy:** the XML of each publication has the holder's name, address and NIF and the same for
the representative. The record keeps the mark, classes, dates, province and country. The holder's
name only when every holder is a legal entity (no first-name field, corporate form in the name);
the tax id only when it is a company CIF. Representatives are never read.

**Tests:** 45 offline checks (`tests/test_v01.py`) with an anonymised fixture, including the
silent-failure control, days without bulletin, a failing day and privacy.

**Not tested:** from a datacenter IP (the survey measured 403 on every OEPM domain) and through
the Apify RESIDENTIAL proxy; that is the first platform run.
