{
  "openapi": "3.0.1",
  "info": {
    "title": "USPTO Trademark Scraper - Brand-Owner & Attorney Leads",
    "description": "Scrape USPTO trademarks by keyword, owner, class or serial number. Get mark, status, Nice classes, owner name & address, goods & services, dates, plus the filing attorney's name & email. Export brand-owner and IP-attorney leads. Monitor new filings. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "mkRQGbEBF7w4YEMl7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~uspto-trademark-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~uspto-trademark-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~uspto-trademark-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": "Search terms (mark name)",
            "type": "array",
            "description": "Keywords matched against the trademark name, e.g. <code>coffee</code>, <code>blockchain</code>, <code>peloton</code>. Each term is searched separately. Combine with the class / status / date filters below.",
            "items": {
              "type": "string"
            }
          },
          "ownerName": {
            "title": "Owner / applicant name contains",
            "type": "string",
            "description": "Map a competitor's trademark portfolio: keep only marks whose owner/applicant name contains this text (e.g. <code>Nike</code>). Used together with the search terms above (or on its own as a search term)."
          },
          "serialNumbers": {
            "title": "Serial numbers",
            "type": "array",
            "description": "Look up specific US applications directly by serial number (e.g. <code>97123456</code>). Full detail is always fetched for these.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Registration numbers",
            "type": "array",
            "description": "Look up specific US registrations directly by registration number (e.g. <code>1092517</code>).",
            "items": {
              "type": "string"
            }
          },
          "offices": {
            "title": "Trademark offices",
            "type": "array",
            "description": "Office codes to search (TMview network). Default <code>US</code> (USPTO). Other examples: <code>EM</code> (EUIPO), <code>GB</code>, <code>CA</code>, <code>AU</code>, <code>WO</code> (WIPO). Full owner-address / attorney-email detail enrichment is available for <code>US</code> only.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "niceClasses": {
            "title": "Nice classes",
            "type": "array",
            "description": "Filter by international (Nice) class numbers 1–45, e.g. <code>9</code> (software), <code>25</code> (clothing), <code>35</code> (advertising/business), <code>42</code> (technology services).",
            "items": {
              "type": "string"
            }
          },
          "statusFilter": {
            "title": "Status filter",
            "enum": [
              "all",
              "live",
              "registered",
              "dead"
            ],
            "type": "string",
            "description": "Restrict by registration status.",
            "default": "all"
          },
          "filedAfter": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Only include marks with a filing date on or after this date (YYYY-MM-DD). New filings are high-intent leads — a brand owner who just filed is actively investing in their brand."
          },
          "filedBefore": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Only include marks with a filing date on or before this date (YYYY-MM-DD)."
          },
          "maxResults": {
            "title": "Max trademark records",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of trademark records to emit across all search terms.",
            "default": 100
          },
          "includeFullDetail": {
            "title": "Include full detail (owner address, attorney email, goods & services)",
            "type": "boolean",
            "description": "For each US mark, fetch the USPTO TSDR status page to add owner name + address, legal entity, the prosecuting attorney's name + e-mail, examining attorney, goods & services and register. This is the lead data — leave on for lead generation.",
            "default": true
          },
          "emitOwnerLeads": {
            "title": "Emit brand-owner leads",
            "type": "boolean",
            "description": "In addition to trademark records, push one deduplicated lead per owner/applicant (type = \"ownerLead\") with their full portfolio count, address, legal entity and a 0–100 lead score.",
            "default": false
          },
          "emitAttorneyLeads": {
            "title": "Emit IP-attorney / law-firm leads",
            "type": "boolean",
            "description": "Push one deduplicated lead per prosecuting attorney / correspondent (type = \"attorneyLead\") with their e-mail, firm website, the marks they handle and a 0–100 lead score.",
            "default": false
          },
          "enrichAttorneyContacts": {
            "title": "Enrich attorney firm websites",
            "type": "boolean",
            "description": "For each attorney lead, crawl the firm website (home + contact/about) for additional emails, phone numbers and social links. Only runs when 'Emit IP-attorney leads' is on.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (only new filings)",
            "type": "boolean",
            "description": "Remember trademarks already seen (by serial number) in a named store and emit only NEW ones on each run. Perfect for a scheduled brand-watch or new-filing lead feed. Works independently of Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the monitor store so different searches keep separate memory (e.g. <code>fintech-class-9</code>).",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Residential is required — the TMview search API blocks datacenter IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}