{
  "openapi": "3.0.1",
  "info": {
    "title": "Mellow Visual Trademark & Design Watch",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "vMyrCja1n1qH8vOzs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mellowbot~mellow-visual-trademark-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mellowbot-mellow-visual-trademark-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/mellowbot~mellow-visual-trademark-watch/runs": {
      "post": {
        "operationId": "runs-sync-mellowbot-mellow-visual-trademark-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/mellowbot~mellow-visual-trademark-watch/run-sync": {
      "post": {
        "operationId": "run-sync-mellowbot-mellow-visual-trademark-watch",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Search Mode",
            "enum": [
              "search_marks",
              "visual_search",
              "find_similar"
            ],
            "type": "string",
            "description": "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.",
            "default": "search_marks"
          },
          "query": {
            "title": "Brand Name or Keyword Query",
            "type": "string",
            "description": "Text or brand name to search across verbal marks, goods descriptions, product names, and applicants. Also used for Soundex and Metaphone phonetic similarity.",
            "default": ""
          },
          "image_url": {
            "title": "Reference Image URL (for visual_search)",
            "type": "string",
            "description": "Public HTTPS image URL of a brand logo or product contour to screen in visual_search mode.",
            "default": ""
          },
          "application_number": {
            "title": "Indexed Registration / Application Number (for find_similar)",
            "type": "string",
            "description": "Optional indexed registration number such as UK00004467346 or DM/241655 to run calibrated DINOv2 (768d) + OpenCLIP (512d) visual similarity lookup.",
            "default": ""
          },
          "jurisdiction": {
            "title": "Jurisdiction",
            "enum": [
              "all",
              "UKIPO",
              "WIPO_HAGUE"
            ],
            "type": "string",
            "description": "Filter by IP office. Choose all to query both UKIPO (including Madrid Protocol designations) and WIPO Hague international industrial designs.",
            "default": "all"
          },
          "ip_type": {
            "title": "IP Type",
            "enum": [
              "all",
              "trademark",
              "design"
            ],
            "type": "string",
            "description": "Optional filter to restrict results to trademarks or industrial designs.",
            "default": "all"
          },
          "nice_class": {
            "title": "Nice Class (1 to 45)",
            "minimum": 1,
            "maximum": 45,
            "type": "integer",
            "description": "Optional Nice trademark class number (for example 3 for cosmetics, 9 for electronics, 25 for apparel)."
          },
          "locarno_class": {
            "title": "Locarno Design Class",
            "type": "string",
            "description": "Optional Locarno industrial design class code (for example 14-02 or 24-02).",
            "default": ""
          },
          "phonetic_only": {
            "title": "Phonetic Match (Soundex / Metaphone)",
            "type": "boolean",
            "description": "When enabled in search_marks mode, matches query phonetically using Soundex and Metaphone codes to catch sound-alike filings.",
            "default": false
          },
          "has_image_only": {
            "title": "Visual Marks & Designs Only",
            "type": "boolean",
            "description": "When enabled, returns only figurative marks and industrial designs with extracted visual images.",
            "default": false
          },
          "max_items": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of trademark or design records to return (default 50, max 500; non-paying trial runs are capped at 10).",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}