# Mellow Visual Trademark & Design Watch (`mellowbot/mellow-visual-trademark-watch`) Actor

Search and visually compare newly published UKIPO trademarks (including Madrid Protocol designations) and WIPO Hague industrial designs with calibrated DINOv2 + OpenCLIP similarity and phonetic matching.

- **URL**: https://apify.com/mellowbot/mellow-visual-trademark-watch.md
- **Developed by:** [Mellow Data](https://apify.com/mellowbot) (community)
- **Categories:** Business, E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 visual trademark or design results

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

## Mellow Visual Trademark & Design Watch

Search and visually compare newly published UKIPO trademarks (including Madrid Protocol international designations) and WIPO Hague industrial designs. Built by **Mellow Data** for IP attorneys, paralegals, brand protection teams, and multi-SKU ecommerce sellers monitoring logo and ornamental product-shape filings.

### What makes this Actor different

Text-only trademark scrapers rely on verbal strings and examiner-assigned Vienna or Locarno codes, which misses newly filed figurative logos and cannot compare ornamental product contours in design drawings.

This Actor queries an edge index built with dual vision backbones:

- **DINOv2-base (768 dimensions):** captures fine logo geometry, contours, and line layout.
- **OpenCLIP ViT-B/32 (512 dimensions):** captures semantic visual similarity across shapes and symbols.
- **Calibrated score fusion (`0.65 * DINOv2 + 0.35 * OpenCLIP`):** combines visual similarity with American Soundex and Metaphone phonetic scoring plus Nice and Locarno class overlap.

### Supported jurisdictions

- **UKIPO Trade Marks Journal (Open Government Licence v3.0):** weekly Friday publications covering domestic UK filings and Madrid Protocol international designations into the UK, including figurative logos, series marks, 3-D marks, colour marks, and verbal filings.
- **WIPO Hague International Designs Bulletin:** weekly Friday international industrial design registrations with Locarno classes, holder details, designated contracting parties, and multi-angle high-resolution design drawings.

### Input modes

#### 1. Search Marks & Designs (`mode: "search_marks"`)

Filter newly published filings by keyword, phonetic Soundex/Metaphone match, jurisdiction (`all`, `UKIPO`, `WIPO_HAGUE`), IP type (`trademark` or `design`), Nice class (`1` to `45`), Locarno class (for example `14-02`), or visual-only records.

```json
{
  "mode": "search_marks",
  "query": "london",
  "jurisdiction": "UKIPO",
  "nice_class": 25,
  "max_items": 50
}
```

#### 2. Visual Similarity by Registration (`mode: "find_similar"`)

Compare any indexed registration number (such as `UK00004467346` or `DM/241655`) against all indexed logos and industrial design drawings using calibrated DINOv2 + OpenCLIP cosine score fusion.

```json
{
  "mode": "find_similar",
  "jurisdiction": "UKIPO",
  "application_number": "UK00004467346",
  "max_items": 20
}
```

#### 3. Visual Logo or Product Clearance (`mode: "visual_search"`)

Screen a reference logo or product photo URL alongside optional brand text and Nice or Locarno classes.

```json
{
  "mode": "visual_search",
  "image_url": "https://example.com/logo.jpg",
  "query": "ZENEVE LONDON",
  "jurisdiction": "all",
  "nice_class": 3,
  "max_items": 20
}
```

### Output fields

Every dataset item returns a clean, flat JSON record:

- `mark_id`, `jurisdiction`, `ip_type`, `application_number`
- `mark_text`, `mark_feature`, `applicant`, `representative`
- `nice_classes`, `locarno_classes`, `goods_summary`, `madrid_international`
- `publication_date`, `application_date`, `image_url`, `source_url`
- `visual_score`, `dino_score`, `clip_score`, `phonetic_match`, `class_overlap`, `search_mode`

### Pricing

Pay-per-event pricing at **$3.00 per 1,000 results** (`$0.003` per returned trademark or design record) plus `$0.005` per Actor start. Platform compute is included at 256 MB RAM. Free trial users can run up to 10 results per run to inspect output schema and data quality.

# Actor input Schema

## `mode` (type: `string`):

Use search_marks to filter official trademark and industrial design filings, visual_search to screen a logo or product image URL (or indexed registration) for visual similarity, or find_similar to compare an indexed registration against all visual filings via DINOv2 + OpenCLIP score fusion.

## `query` (type: `string`):

Text or brand name to search across verbal marks, goods descriptions, product names, and applicants. Also used for Soundex and Metaphone phonetic similarity.

## `image_url` (type: `string`):

Public HTTPS image URL of a brand logo or product contour to screen in visual_search mode.

## `application_number` (type: `string`):

Optional indexed registration number such as UK00004467346 or DM/241655 to run calibrated DINOv2 (768d) + OpenCLIP (512d) visual similarity lookup.

## `jurisdiction` (type: `string`):

Filter by IP office. Choose all to query both UKIPO (including Madrid Protocol designations) and WIPO Hague international industrial designs.

## `ip_type` (type: `string`):

Optional filter to restrict results to trademarks or industrial designs.

## `nice_class` (type: `integer`):

Optional Nice trademark class number (for example 3 for cosmetics, 9 for electronics, 25 for apparel).

## `locarno_class` (type: `string`):

Optional Locarno industrial design class code (for example 14-02 or 24-02).

## `phonetic_only` (type: `boolean`):

When enabled in search_marks mode, matches query phonetically using Soundex and Metaphone codes to catch sound-alike filings.

## `has_image_only` (type: `boolean`):

When enabled, returns only figurative marks and industrial designs with extracted visual images.

## `max_items` (type: `integer`):

Maximum number of trademark or design records to return (default 50, max 500; non-paying trial runs are capped at 10).

## Actor input object example

```json
{
  "mode": "search_marks",
  "query": "",
  "image_url": "",
  "application_number": "",
  "jurisdiction": "all",
  "ip_type": "all",
  "locarno_class": "",
  "phonetic_only": false,
  "has_image_only": false,
  "max_items": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("mellowbot/mellow-visual-trademark-watch").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("mellowbot/mellow-visual-trademark-watch").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 '{}' |
apify call mellowbot/mellow-visual-trademark-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mellowbot/mellow-visual-trademark-watch"
        }
    }
}
```

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/BBz7e9R2N3mz8lh6L/builds/vMyrCja1n1qH8vOzs/openapi.json
