{
  "openapi": "3.0.1",
  "info": {
    "title": "Mexico Trademark Search & Watch (IMPI Marcas)",
    "description": "Search the official Mexican trademark register (IMPI MARCia) by brand name (exact, contains or similar), owner, Nice class, status and filing date. Owners, status, dates, classes, goods/services, history. Watch mode alerts on new filings.",
    "version": "0.1",
    "x-build-id": "bTxsYWUZMSoZPRcZY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/frankely84~mexico-trademark-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-frankely84-mexico-trademark-search",
        "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/frankely84~mexico-trademark-search/runs": {
      "post": {
        "operationId": "runs-sync-frankely84-mexico-trademark-search",
        "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/frankely84~mexico-trademark-search/run-sync": {
      "post": {
        "operationId": "run-sync-frankely84-mexico-trademark-search",
        "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": {
          "trademarks": {
            "title": "Trademark names",
            "type": "array",
            "description": "Brand names to search in the Mexican trademark register (IMPI). Each name is a separate search. Use 'Match mode' to find identical, containing or confusingly similar marks. Leave empty if you only search by owner or want all new filings in a date range.",
            "items": {
              "type": "string"
            }
          },
          "owners": {
            "title": "Owner / applicant names",
            "type": "array",
            "description": "Company or person names to find every trademark they own or applied for in Mexico, e.g. 'BIMBO' or 'GRUPO MODELO'. Each name is a separate search.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match mode (for trademark names)",
            "enum": [
              "exact",
              "contains",
              "similar",
              "very-similar"
            ],
            "type": "string",
            "description": "exact: the same words. contains: the name appears inside the mark. similar: phonetic / spelling variations (good for conflict and clearance checks). very-similar: broader fuzzy match (more results, more noise).",
            "default": "similar"
          },
          "niceClasses": {
            "title": "Nice classes",
            "type": "array",
            "description": "Optional Nice classification classes (1-45) to restrict the search, e.g. 25 (clothing), 30 (coffee, food), 35 (retail/advertising), 41 (education), 43 (restaurants).",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "type": "array",
            "description": "Optional. REGISTERED (registrado) or PENDING (en trámite). Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "REGISTERED",
                "PENDING"
              ],
              "enumTitles": [
                "Registered",
                "Pending (en trámite)"
              ]
            }
          },
          "lastDays": {
            "title": "Only applications filed in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Optional. Only marks whose application date is within the last N days. Ideal with Watch mode for daily or weekly alerts of new filings. 0 = no limit. Note: IMPI publishes new filings with a delay of a few days.",
            "default": 0
          },
          "applicationDateFrom": {
            "title": "Application date from",
            "type": "string",
            "description": "Optional (YYYY-MM-DD). Overrides 'Last N days'."
          },
          "applicationDateTo": {
            "title": "Application date to",
            "type": "string",
            "description": "Optional (YYYY-MM-DD). Defaults to today."
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Also fetch each mark's full record: goods and services per class, owner address and country, Vienna codes, priority and procedure history (renewals, office actions). Charged as 'trademark-details' instead of 'trademark'.",
            "default": false
          },
          "onlyNew": {
            "title": "Watch mode: only new or changed since last run",
            "type": "boolean",
            "description": "Remembers what was returned before (per Watch name) and only outputs new marks or marks whose status changed (e.g. PENDING -> REGISTERED). Schedule it daily or weekly to get trademark watch alerts; you pay only for new results.",
            "default": false
          },
          "monitorName": {
            "title": "Watch name",
            "type": "string",
            "description": "Name for this watch's memory, so different watches don't share state, e.g. 'my-brand-watch'.",
            "default": "default"
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "auto",
              "relevance",
              "newest"
            ],
            "type": "string",
            "description": "auto: best match first for trademark-name searches, newest application first for owner searches, new-filing lists and Watch mode. relevance: best match first. newest: newest application date first.",
            "default": "auto"
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap per trademark or owner search (newest applications first). Also caps the cost of each run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}