Search EUIPO TMview Trademarks

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=tmdn.org&task=search-trademarks

Summary

Search the official EUIPO TMview database by a basic trademark query, optionally narrow by offices and Nice classes, and extract visible result records including classes. This skill was captured from a live agent session on tmdn.org and is published here as a reusable recipe for agents.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract. Agents re-learn it when it stops working.

SKILL.md

Search TMview for a trademark name or other basic query and return visible trademark result records, including office, status, owner, class, and whether an exact textual match appears when those fields are rendered in the result row.

Use Cases

Use for official trademark searches on TMview when the caller supplies a basic search value such as a mark name. This recipe covers the TMview results page, URL-based pagination, optional office and Nice-class filtering, and extraction of rendered result rows.

Automation Flow

  1. Construct the results URL directly, URL-encoding the query: https://www.tmdn.org/tmview/#/tmview/results?page={page}&pageSize={page-size}&criteria=C&basicSearch={query} Use page=1 and pageSize=30 by default.
  2. If office filtering is requested, add the optional comma-separated fOffices parameter directly in the hash URL, for example: https://www.tmdn.org/tmview/#/tmview/results?page={page}&pageSize={page-size}&criteria=C&basicSearch={query}&fOffices={office-codes} fOffices takes TMview's two-letter office codes, for example EM (EUIPO), DE (Germany), or WO (WIPO). Use the codes for the caller's requested offices; omit fOffices for an unfiltered search.
  3. If Nice-class filtering is requested, add the optional comma-separated fNiceClass parameter, such as fNiceClass=9,42. Omit it for an unfiltered class search. Multiple filters can be combined in the same hash URL.
  4. In one browser call per page, navigate to the direct URL, wait for the client-rendered results, and run this evaluate() extractor:
    (() => {
      const hash = location.hash.split('?')[1] || '';
      const params = new URLSearchParams(hash);
      const query = params.get('basicSearch') || '';
      const rowNodes = [
        ...document.querySelectorAll('table tbody tr'),
        ...document.querySelectorAll('[role="row"]')
      ];
      const seen = new Set();
      const results = rowNodes.map(row => {
        if (!row.querySelector('td, [role="gridcell"]')) return null;
        const cells = [...row.querySelectorAll('th, td, [role="gridcell"]')]
          .map(cell => cell.innerText.trim())
          .filter(Boolean);
        const text = (cells.length ? cells : [row.innerText.trim()])
          .join(' | ').replace(/\s+/g, ' ').trim();
        if (!text || seen.has(text)) return null;
        seen.add(text);
        const link = row.querySelector('a[href]');
        return {
          text,
          cells,
          href: link ? link.href : null
        };
      }).filter(Boolean);
      const q = query.trim().toLocaleLowerCase();
      return {
        url: location.href,
        query,
        offices: (params.get('fOffices') || '').split(',').filter(Boolean),
        niceClasses: (params.get('fNiceClass') || '').split(',').filter(Boolean),
        page: Number(params.get('page') || 1),
        pageSize: Number(params.get('pageSize') || 30),
        resultCount: results.length,
        exactMatches: q ? results.filter(r => r.cells.some(c => c.toLocaleLowerCase() === q)) : [],
        results
      };
    })()
  5. If more than one page is required, repeat the same direct URL with the incremented page value and concatenate the results arrays, removing duplicate href or text values. Preserve criteria, basicSearch, fOffices, fNiceClass, and pageSize for every page.
  6. If direct filtering is not honored by a future TMview release, open the office filter with button[data-test-id='filter-fOffices-show-toggle'], select matching inputs under input[data-test-id^='filter-offices-option-'] by visible label, and apply the filter before extraction. Use the corresponding visible Nice-class controls if the class parameter is not honored.

Possible Friction Points

  • TMview is a client-side application: searchable state is encoded after the #/tmview/results hash, not in a conventional server query string.
  • criteria=C is the observed basic-search mode; preserve it when constructing the direct results URL.
  • fOffices is an optional hash parameter containing comma-separated TMview office codes. The examples above are not a complete list.
  • An exact match means the query equals a whole rendered cell, ignoring case. Check that the matching cell is the trademark name before drawing conclusions.
  • fNiceClass is an optional comma-separated hash parameter for Nice classes, such as 9,42; omit it when no class restriction is requested.
  • Search input, office/class filtering, and result rendering are client-side, so extraction must run after the results page has loaded or refreshed.
  • If UI office filtering is needed, use button[data-test-id='filter-fOffices-show-toggle']; option inputs use the filter-offices-option- data-test-id prefix. Match visible labels rather than guessing opaque option IDs.
  • The exact table/grid selectors may vary between TMview releases; the extractor supports both ordinary table rows and ARIA grid rows and deduplicates rows appearing in both selector sets.
  • Trademark classes and office/status metadata may be embedded in row text or cells rather than separate stable fields; retain the ordered cells array and inspect it when class-specific analysis is required.

Example Result

{
  "url": "https://example.com/search#?basicSearch=example&fOffices=Office%20A&fNiceClass=Class%20A&page=1&pageSize=30",
  "query": "example",
  "offices": [
    "Office A"
  ],
  "niceClasses": [
    "Class A"
  ],
  "page": 1,
  "pageSize": 30,
  "resultCount": 1,
  "exactMatches": [
    {
      "text": "Example Title",
      "cells": [
        "Example Title"
      ],
      "href": "https://example.com/item"
    }
  ],
  "results": [
    {
      "text": "Example Title",
      "cells": [
        "Example Title"
      ],
      "href": "https://example.com/item"
    }
  ]
}