{
  "openapi": "3.0.1",
  "info": {
    "title": "Australia & Canada Trademark Search & Watch",
    "description": "Extract trademark records from IP Australia and CIPO Canada at $1.50 per 1,000: search by mark, owner, number or Nice class, or watch new filings. Status, classes, goods and services, filing and renewal dates, with an only-new trademark watch.",
    "version": "0.1",
    "x-build-id": "727Yq67WTun7YxHaz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aurelix~trademark-search-australia-canada/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aurelix-trademark-search-australia-canada",
        "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/aurelix~trademark-search-australia-canada/runs": {
      "post": {
        "operationId": "runs-sync-aurelix-trademark-search-australia-canada",
        "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/aurelix~trademark-search-australia-canada/run-sync": {
      "post": {
        "operationId": "run-sync-aurelix-trademark-search-australia-canada",
        "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": {
          "office": {
            "title": "Trademark office",
            "enum": [
              "australia",
              "canada"
            ],
            "type": "string",
            "description": "Which register to search: 'australia' (IP Australia, Australian Trade Mark Search) or 'canada' (CIPO, Canadian Trademarks Database). One office per run; run the tool twice for both.",
            "default": "australia"
          },
          "marks": {
            "title": "Mark words",
            "maxItems": 50,
            "type": "array",
            "description": "Trademark words to search, one per line, e.g. 'aurora'. Each line is one search. Australia matches words inside the mark (or exact / sounds-alike, see Match mode); Canada matches the trademark text.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "owners": {
            "title": "Owner names",
            "maxItems": 50,
            "type": "array",
            "description": "Owner (applicant or registered owner) names to search, e.g. 'Cantarella Bros'. Each line is one search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "numbers": {
            "title": "Application numbers",
            "maxItems": 50,
            "type": "array",
            "description": "Application numbers to look up, e.g. '156221' (Australia) or '1037626' (Canada).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "classes": {
            "title": "Nice classes",
            "maxItems": 45,
            "type": "array",
            "description": "Keep only marks filed in one of these Nice classes (1 to 45), e.g. ['9', '42']. Empty = all classes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "filedWithinDays": {
            "title": "Filed in the last N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Keep only applications filed in the last N days (the office's own filing dates, so the window also covers today's Australian filings, which are dated ahead of UTC). 0 = any date. With no marks, owners or numbers the run returns the new filings of the last N days (7 when 0, at most 31).",
            "default": 0
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Upper limit of records per search, newest application first.",
            "default": 100
          },
          "maxResults": {
            "title": "Max results per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper limit of records for the whole run.",
            "default": 1000
          },
          "incremental": {
            "title": "Only new or changed since last run (watch)",
            "type": "boolean",
            "description": "Trademark watch: the first run returns the current matches (change_type 'initial'); later runs with the same office, searches and filters return only applications that appeared on the register since ('new') and records returned before whose status changed ('status_changed'). Use with a daily or weekly schedule.",
            "default": false
          },
          "matchMode": {
            "title": "Match mode (Australia)",
            "enum": [
              "words",
              "exact",
              "similar"
            ],
            "type": "string",
            "description": "How Australian mark searches match: 'words' (the word anywhere in the mark), 'exact' (the mark's words exactly) or 'similar' (sounds alike). Canada always matches the trademark text.",
            "default": "words"
          },
          "stateKey": {
            "title": "Watch memory name (optional)",
            "type": "string",
            "description": "Name for the watch memory. Leave empty to derive it from the office, searches and filters; set it to keep separate watches apart, e.g. 'client-a-au'."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL (optional)",
            "type": "string",
            "description": "After each run, post a short digest to Slack: how many records were saved (new or changed ones in watch mode) and the top 10 with links. Nothing is posted when the run saved nothing."
          },
          "webhookUrl": {
            "title": "Webhook URL (optional)",
            "type": "string",
            "description": "After each run, POST the same digest as JSON to any URL, e.g. a Zapier, Make or n8n webhook. Nothing is sent when the run saved nothing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}