{
  "openapi": "3.0.1",
  "info": {
    "title": "Uspto Trademark Search Status Scraper",
    "description": "Search the USPTO register by keyword, owner or class, and pull full TSDR dossiers by serial number: prosecution status and history, owners with addresses, attorneys, goods & services. No API key.",
    "version": "1.0",
    "x-build-id": "48TpjEQZywo2H9mGE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~uspto-trademark-search-status-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-uspto-trademark-search-status-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/sian.agency~uspto-trademark-search-status-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-uspto-trademark-search-status-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/sian.agency~uspto-trademark-search-status-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-uspto-trademark-search-status-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search",
              "dossier"
            ],
            "type": "string",
            "description": "Pick one mode per run. Search Discovery finds marks by keyword with live/dead and Nice-class filters; Deep Dossier pulls the complete TSDR case file for serial numbers you already know.",
            "default": "search"
          },
          "queries": {
            "title": "🔤 Queries",
            "type": "array",
            "description": "Search terms (Search Discovery) or serial numbers (Deep Dossier) — one per item. In search mode each term is matched against word marks, owners, goods & services and serial/registration numbers, like the official search portal. In dossier mode each item must be an 8-digit serial number like 78787878.",
            "default": [
              "nike"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchFilter": {
            "title": "🎯 Status filter",
            "enum": [
              "all",
              "live",
              "dead"
            ],
            "type": "string",
            "description": "Keep live, dead, or all matching marks — Search Discovery only.",
            "default": "all"
          },
          "niceClasses": {
            "title": "🏷️ Nice classes",
            "type": "array",
            "description": "Select Nice International Classification classes (1–45) to restrict your search. Multi-select prevents typing errors — Search Discovery only.",
            "items": {
              "type": "string",
              "enum": [
                "001",
                "002",
                "003",
                "004",
                "005",
                "006",
                "007",
                "008",
                "009",
                "010",
                "011",
                "012",
                "013",
                "014",
                "015",
                "016",
                "017",
                "018",
                "019",
                "020",
                "021",
                "022",
                "023",
                "024",
                "025",
                "026",
                "027",
                "028",
                "029",
                "030",
                "031",
                "032",
                "033",
                "034",
                "035",
                "036",
                "037",
                "038",
                "039",
                "040",
                "041",
                "042",
                "043",
                "044",
                "045"
              ],
              "enumTitles": [
                "Class 01 - Chemicals & Chemical Synthetics",
                "Class 02 - Paints, Varnishes & Anti-Rust Agents",
                "Class 03 - Cosmetics, Soaps, Perfumery & Cleaning",
                "Class 04 - Industrial Oils, Lubricants & Fuels",
                "Class 05 - Pharmaceuticals & Medical Preparations",
                "Class 06 - Common Metals & Metal Hardware",
                "Class 07 - Machines, Power Tools & Motors",
                "Class 08 - Hand Tools & Implements",
                "Class 09 - Software, Electronics, Computers & Scientific",
                "Class 10 - Medical & Veterinary Devices",
                "Class 11 - Heating, Lighting, Cooling & Sanitation",
                "Class 12 - Vehicles & Transport Equipment",
                "Class 13 - Firearms & Pyrotechnics",
                "Class 14 - Jewelry, Precious Metals & Watches",
                "Class 15 - Musical Instruments",
                "Class 16 - Paper, Printed Matter & Office Supplies",
                "Class 17 - Rubber, Plastics & Insulating Materials",
                "Class 18 - Leather, Luggage, Handbags & Umbrellas",
                "Class 19 - Non-Metallic Building Materials",
                "Class 20 - Furniture, Mirrors & Picture Frames",
                "Class 21 - Household Utensils, Glassware & Cookware",
                "Class 22 - Ropes, String, Tents, Tarpaulins & Sacks",
                "Class 23 - Yarns & Threads for Textile Use",
                "Class 24 - Textiles & Fabrics",
                "Class 25 - Clothing, Footwear & Headwear (Apparel)",
                "Class 26 - Lace, Embroidery, Ribbons & Haberdashery",
                "Class 27 - Carpets, Rugs, Mats & Floor Coverings",
                "Class 28 - Games, Toys, Video Games & Sporting Goods",
                "Class 29 - Meat, Fish, Poultry & Preserved Foods",
                "Class 30 - Coffee, Tea, Cocoa, Bakery & Confectionery",
                "Class 31 - Agricultural Products, Fresh Produce & Seeds",
                "Class 32 - Beers, Mineral Waters & Soft Drinks",
                "Class 33 - Alcoholic Beverages (Except Beer)",
                "Class 34 - Tobacco, Matches & Smokers' Articles",
                "Class 35 - Advertising, Business Management & Retail Services",
                "Class 36 - Insurance, Financial & Real Estate Services",
                "Class 37 - Construction, Installation & Repair Services",
                "Class 38 - Telecommunications & Data Transmission",
                "Class 39 - Transport, Travel & Storage Services",
                "Class 40 - Treatment of Materials & Manufacturing Services",
                "Class 41 - Education, Training, Entertainment & Sporting",
                "Class 42 - Scientific, IT, Software Development & SaaS",
                "Class 43 - Food & Drink Services (Restaurants, Hotels)",
                "Class 44 - Medical, Veterinary & Hygienic Services",
                "Class 45 - Legal, Security, IP & Social Services"
              ]
            },
            "default": []
          },
          "searchField": {
            "title": "🔎 Search in",
            "enum": [
              "all",
              "wordmark",
              "owner",
              "goodsServices"
            ],
            "type": "string",
            "description": "Scope the term match — Search Discovery only.",
            "default": "all"
          },
          "maxResultsPerQuery": {
            "title": "🔢 Max results per query",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on records returned per query (1–1000). Search Discovery only.",
            "default": 100
          },
          "includeProsecutionHistory": {
            "title": "📜 Prosecution history",
            "type": "boolean",
            "description": "Include the dated prosecution-history timeline (office actions, responses, publications) in dossier rows.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}