{
  "openapi": "3.0.1",
  "info": {
    "title": "USPTO Trademark Scraper — Marks, Owners, Status & Classes",
    "description": "USPTO trademark scraper: search US trademarks by word mark, goods and services, owner, serial or registration number; filter live/dead, Nice class and filing or registration dates; get status, dates, classes, goods and services, owner company and TSDR link as JSON.",
    "version": "0.1",
    "x-build-id": "2mzarHsf6Sd3vJEhz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~uspto-trademark-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-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/fabrikit~uspto-trademark-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-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/fabrikit~uspto-trademark-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-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",
            "type": "array",
            "description": "One USPTO search per entry: the words of a mark (apple, blue moon), or any text depending on `searchIn`. In the `fieldTags` mode you can write the USPTO field-tag syntax, for example `WM:apple AND IC:009 AND LD:true`. The rank of each mark in its search is saved as `position`.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Search in",
            "enum": [
              "wordmark",
              "general",
              "goodsAndServices",
              "fieldTags"
            ],
            "type": "string",
            "description": "Where the search terms are matched: the word mark (as the site's Wordmark search, including pseudo marks), everywhere (General search: marks, goods and services, owners, descriptions, serial and registration numbers), the goods and services text only, or the raw USPTO field-tag query syntax (WM:, GS:, ON:, IC:, LD:, SN:, RN:, FD:, RD: ...).",
            "default": "wordmark"
          },
          "ownerName": {
            "title": "Owner name",
            "type": "string",
            "description": "Only marks whose owner (applicant / registrant) contains these words, for example `Apple Inc.` or `Nike`. Can be used alone to list a company's trademarks. Owners that are natural persons are returned without name and address."
          },
          "serialNumbers": {
            "title": "Serial numbers",
            "type": "array",
            "description": "Specific applications to fetch: 8-digit USPTO serial numbers (98594142) or TSDR / tmsearch URLs that contain one. Fetched before the search terms, 100 per request.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Registration numbers",
            "type": "array",
            "description": "Specific registrations to fetch by US registration number (1078312, Reg. No. 1,124,610). Fetched before the search terms, 100 per request.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "live",
              "dead",
              "registered",
              "pending",
              "cancelled",
              "abandoned"
            ],
            "type": "string",
            "description": "Live marks are pending applications and registrations in force; dead marks were abandoned or cancelled / expired. `registered` and `pending` are the two kinds of live marks; `cancelled` and `abandoned` the two kinds of dead marks.",
            "default": "all"
          },
          "internationalClasses": {
            "title": "Nice classes",
            "type": "array",
            "description": "Only marks in these international (Nice) classes: 1-34 goods, 35-45 services, for example 009 (software, electronics), 025 (clothing), 035 (advertising / retail), 042 (software services). Leading zeros optional. A mark in several classes matches if any of them is listed.",
            "items": {
              "type": "string"
            }
          },
          "filedFrom": {
            "title": "Filed from",
            "type": "string",
            "description": "Only marks filed on or after this date: YYYY-MM-DD, YYYY-MM or YYYY (for example 2024-01-01)."
          },
          "filedTo": {
            "title": "Filed until",
            "type": "string",
            "description": "Only marks filed on or before this date: YYYY-MM-DD, YYYY-MM or YYYY."
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Only marks registered on or after this date (YYYY-MM-DD, YYYY-MM or YYYY). Excludes pending applications, which have no registration date."
          },
          "registeredTo": {
            "title": "Registered until",
            "type": "string",
            "description": "Only marks registered on or before this date (YYYY-MM-DD, YYYY-MM or YYYY)."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "filingDateDesc",
              "filingDateAsc",
              "serialDesc",
              "serialAsc"
            ],
            "type": "string",
            "description": "Relevance (USPTO ranking; the first 10,000 results of a search are reachable) or by filing date / serial number (newest or oldest first; no 10,000 limit).",
            "default": "relevance"
          },
          "maxItems": {
            "title": "Maximum trademarks",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many trademarks in total (exact; a mark found by several searches is saved and charged once).",
            "default": 100
          },
          "includeGoodsAndServices": {
            "title": "Include goods and services text",
            "type": "boolean",
            "description": "Save the full goods and services statement per class (`goodsAndServices`). Turn off to keep records small; the same requests are made either way.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The USPTO search backend accepts direct connections, so no proxy is used by default. If its AWS WAF challenges the Apify IPs, the Actor switches to Apify datacenter and then residential (US) proxies by itself; set a configuration here to start on one of them.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}