{
  "openapi": "3.0.1",
  "info": {
    "title": "USPTO Trademark Search Scraper",
    "description": "USPTO trademark search scraper API for trademark lookup by mark, owner, goods and services words, serial or registration number: status, live or dead, classes, filing and registration dates, owners, attorney, goods and services, links to the mark image and status page. $0.05 per 1,000 trademarks.",
    "version": "0.1",
    "x-build-id": "zvHMtSQMwfELz8HWh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~trademark-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-trademark-search-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/dami_studio~trademark-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-trademark-search-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/dami_studio~trademark-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-trademark-search-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": "Marks to search for",
            "type": "array",
            "description": "Words or phrases to look for in the mark itself, one per line. Each line is its own search. \"Match\" below decides whether a mark has to contain the words or read exactly as written.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match",
            "enum": [
              "contains",
              "exact"
            ],
            "type": "string",
            "description": "Contains: marks with all the words, in any order, closest matches first. Exact: marks that read exactly as written, ignoring capitals. Applies to \"Marks to search for\" only.",
            "default": "contains"
          },
          "phraseCheck": {
            "title": "Check each phrase instead (paid option)",
            "type": "boolean",
            "description": "One verdict row per line of \"Marks to search for\" instead of the marks: registered, pending, dead or not found, how many marks read exactly so, their owners and classes, and how many marks hold all the words. Each phrase checked is charged once, whatever the verdict. Of the filters, only \"Classes\" applies; \"Match\" doesn't.",
            "default": false
          },
          "ownerNames": {
            "title": "Owners",
            "type": "array",
            "description": "Owner or applicant names, one per line, to get the marks they hold or applied for. \"Acme Corp\" also finds \"Acme Corporation\" when the words sit close together.",
            "items": {
              "type": "string"
            }
          },
          "goodsAndServicesTerms": {
            "title": "Goods and services words",
            "type": "array",
            "description": "A phrase from the goods and services description, one per line, for example \"surfboard wax\" or \"mobile app\".",
            "items": {
              "type": "string"
            }
          },
          "serialNumbers": {
            "title": "Serial numbers",
            "type": "array",
            "description": "8-digit application serial numbers, one per line. Each gives one row, or a free row saying the register has no mark with that number. The filters below don't apply to numbers.",
            "items": {
              "type": "string"
            }
          },
          "registrationNumbers": {
            "title": "Registration numbers",
            "type": "array",
            "description": "Registration numbers, one per line. Each gives one row, or a free row saying the register has no mark with that number. The filters below don't apply to numbers.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "all",
              "live",
              "liveRegistered",
              "livePending",
              "dead",
              "deadAbandoned",
              "deadCancelled"
            ],
            "type": "string",
            "description": "Keep only marks in this state. Live covers registered marks and pending applications; dead covers abandoned applications and cancelled or expired registrations.",
            "default": "all"
          },
          "niceClasses": {
            "title": "Classes",
            "type": "array",
            "description": "Keep marks filed in any of these international (Nice) classes, 1 to 45, one per line. For example 25 for clothing or 9 for software and electronics.",
            "items": {
              "type": "string"
            }
          },
          "markTypes": {
            "title": "Mark types",
            "type": "array",
            "description": "Keep marks of any of these types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "TRADEMARK",
                "SERVICE MARK",
                "COLLECTIVE MEMBERSHIP MARK",
                "COLLECTIVE TRADEMARK",
                "COLLECTIVE SERVICE MARK",
                "CERTIFICATION MARK"
              ],
              "enumTitles": [
                "Trademark",
                "Service mark",
                "Collective membership mark",
                "Collective trademark",
                "Collective service mark",
                "Certification mark"
              ]
            }
          },
          "filedFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Keep marks whose application was filed on or after this date."
          },
          "filedTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Keep marks whose application was filed on or before this date."
          },
          "registeredFrom": {
            "title": "Registered on or after",
            "type": "string",
            "description": "Keep registered marks whose registration date is on or after this date. Pending applications drop out."
          },
          "registeredTo": {
            "title": "Registered on or before",
            "type": "string",
            "description": "Keep registered marks whose registration date is on or before this date. Pending applications drop out."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "relevance",
              "newest",
              "oldest",
              "markAZ"
            ],
            "type": "string",
            "description": "The order marks come back in, within each search.",
            "default": "relevance"
          },
          "maxResultsPerSearch": {
            "title": "Most marks per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop each search after this many marks. Up to 100,000; \"Most marks in the run\" below still applies.",
            "default": 100
          },
          "maxResults": {
            "title": "Most marks in the run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop the whole run after this many marks, across all searches.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}