{
  "openapi": "3.0.1",
  "info": {
    "title": "USPTO Trademark Scraper - Status, Owners & New Filings",
    "description": "Scrape US trademarks from the USPTO register by brand name, owner, goods, class or serial number: status, filing and registration dates, Nice classes, goods & services, owner and address, attorney. Add TSDR e-mails and history. Monitor new filings. No API key.",
    "version": "0.1",
    "x-build-id": "EO8NmdTjaUf65D01P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~uspto-trademark-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-uspto-trademark-scraper",
        "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/topapi~uspto-trademark-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-uspto-trademark-scraper",
        "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/topapi~uspto-trademark-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-uspto-trademark-scraper",
        "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": {
          "searchTerms": {
            "title": "🔎 Brand names or phrases",
            "type": "array",
            "description": "Words or phrases to search, one per line, e.g. \"star wars\", \"just do it\". Where they are matched is set by Search in. Field tags work too: \"WM:coffee AND IC:030\".",
            "items": {
              "type": "string"
            }
          },
          "searchField": {
            "title": "Search in",
            "enum": [
              "wordmark",
              "wordmarkExact",
              "soundsLike",
              "owner",
              "goodsAndServices",
              "anyText"
            ],
            "type": "string",
            "description": "Where the search terms are matched. Wordmark (contains) finds the phrase inside a mark, so \"star wars\" also returns \"LANDO STAR WARS\".",
            "default": "wordmark"
          },
          "serialNumbers": {
            "title": "🔢 Serial or registration numbers",
            "type": "array",
            "description": "Exact lookups, one per line: 8-digit serials (97509558), registration numbers (2239077 or RN 2239077), or TSDR / Trademark Search URLs. Filters below do not apply.",
            "items": {
              "type": "string"
            }
          },
          "statusFilter": {
            "title": "Status",
            "enum": [
              "all",
              "live",
              "pending",
              "registered",
              "dead"
            ],
            "type": "string",
            "description": "Live = pending + registered. Dead = abandoned, cancelled or expired. Empty = all statuses."
          },
          "niceClasses": {
            "title": "Nice classes",
            "type": "array",
            "description": "International (Nice) classes 1-45, A, B or 200, e.g. \"25\" (clothing), \"9\" (software). A mark in any listed class matches. Empty = all classes.",
            "items": {
              "type": "string"
            }
          },
          "filedAfter": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Only applications filed on or after this date, e.g. 2026-09-01 or \"30 days\". Pairs with monitor mode for a new-filings watch."
          },
          "filedBefore": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Only applications filed on or before this date, e.g. 2026-09-30. Empty = up to today."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of the results; matters when a cap stops the search early.",
            "default": "relevance"
          },
          "excludeKeywords": {
            "title": "Exclude marks containing",
            "type": "array",
            "description": "Drop marks whose wordmark contains any of these words, e.g. \"LANDO\". Case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "withAttorneyOnly": {
            "title": "Only marks with an attorney of record",
            "type": "boolean",
            "description": "Keep only filings that name an attorney (law-firm and IP-service lead lists).",
            "default": false
          },
          "includeDetails": {
            "title": "Add TSDR details (attorney e-mail, history)",
            "type": "boolean",
            "description": "Adds attorney and correspondent e-mail, correspondent address, docket number, prosecution history, assignments, TTAB cases and the renewal window. Billed per trademark that gets them.",
            "default": false
          },
          "monitorMode": {
            "title": "Only new and changed trademarks",
            "type": "boolean",
            "description": "Deliver only marks not delivered by earlier runs, plus marks whose USPTO status changed since then (changeType). Pairs with a daily schedule.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that remembers what earlier runs delivered. Use one name per watch, e.g. \"acme-brand-watch\".",
            "default": "uspto-trademark-monitor"
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most trademarks per search term. 0 = every match (USPTO counts 285 marks for \"star wars\", 23,837 for \"coffee\").",
            "default": 100
          },
          "maxResults": {
            "title": "Max results per run",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Most trademarks for the whole run, across all searches. 0 = no limit.",
            "default": 1000
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Core fields only (mark, serial, status, dates, classes, owner, attorney, link): smaller rows for AI agents, MCP and spreadsheets.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "USPTO allows each IP ~100 requests in 5 minutes. With the Apify proxy (default) the run starts direct and moves to a fresh proxy IP whenever USPTO refuses one.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Requests in flight at once. 4 is fast and gentle; raise it for large TSDR-detail runs.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}