{
  "openapi": "3.0.1",
  "info": {
    "title": "US Patent Grants Feed - New USPTO Patents Weekly",
    "description": "Every Tuesday's newly granted US patents from the official USPTO Official Gazette: assignee company, CPC/IPC classes, claims, claim 1, priority, PCT, drawing. Filter by keyword, assignee, CPC or country; 'new since last run' for patent watch schedules.",
    "version": "0.1",
    "x-build-id": "K3UnDXpuD1M2mfrRw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~us-patent-grants-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-us-patent-grants-feed",
        "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/moment-data~us-patent-grants-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-us-patent-grants-feed",
        "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/moment-data~us-patent-grants-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-us-patent-grants-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): patents from the latest weekly issue(s), no saved state. sinceLastRun: only patents not delivered before for this State key; use for weekly or daily schedules.",
            "default": "window"
          },
          "issues": {
            "title": "Weekly issues",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many of the latest weekly Gazette issues to read (patents are granted every Tuesday; ~5,000-7,000 per issue). Default 1 = the latest Tuesday.",
            "default": 1
          },
          "issueDate": {
            "title": "Specific issue date (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Read the issue published on or before this date (YYYY-MM-DD, issues are Tuesdays). The Gazette site keeps the latest 52 weekly issues."
          },
          "patentTypes": {
            "title": "Patent types",
            "type": "array",
            "description": "Document types to include (default: utility, design, plant, reissue).",
            "items": {
              "type": "string",
              "enum": [
                "utility",
                "design",
                "plant",
                "reissue",
                "reexamination"
              ],
              "enumTitles": [
                "Utility patents (B1/B2)",
                "Design patents (S)",
                "Plant patents (P2/P3)",
                "Reissue patents (E)",
                "Ex parte reexamination certificates (C)"
              ]
            },
            "default": [
              "utility",
              "design",
              "plant",
              "reissue"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep patents whose title, assignee/applicant or first claim contains any of these words (e.g. battery, lidar, CRISPR, autonomous). Titles and assignees are pre-screened from the Gazette index, so keyword runs are fast.",
            "items": {
              "type": "string"
            }
          },
          "assigneeKeywords": {
            "title": "Assignee / applicant contains",
            "type": "array",
            "description": "Keep patents whose assignee or applicant organisation contains any of these (e.g. apple inc, samsung, university). Use it to monitor competitors.",
            "items": {
              "type": "string"
            }
          },
          "cpcPrefixes": {
            "title": "CPC class prefixes",
            "type": "array",
            "description": "Keep patents whose primary CPC class starts with any of these (e.g. G06N = AI/ML, H01M = batteries, A61K = drugs, B60L = EV charging, H04W = wireless). Plant patents use IPC A01H; design patents have no CPC and are skipped by this filter.",
            "items": {
              "type": "string"
            }
          },
          "assigneeCountries": {
            "title": "Assignee countries",
            "type": "array",
            "description": "Keep patents with an owner in these 2-letter countries (e.g. US, JP, KR, CN, DE, TW).",
            "items": {
              "type": "string"
            }
          },
          "ownerTypes": {
            "title": "Owner types",
            "type": "array",
            "description": "Keep only these owner types (default: all). organization = company/university/government owner; individual = privately owned (name withheld); unassigned = no assignee at grant.",
            "items": {
              "type": "string",
              "enum": [
                "organization",
                "mixed",
                "individual",
                "unassigned"
              ],
              "enumTitles": [
                "Organisation-owned",
                "Mixed organisation + individual",
                "Individual-owned (name withheld)",
                "Unassigned at grant"
              ]
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop patents whose title or assignee contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "includeFirstClaim": {
            "title": "Include first claim text",
            "type": "boolean",
            "description": "Include the text of claim 1 (truncated to 3,000 characters). Turn off for smaller records.",
            "default": true
          },
          "maxItems": {
            "title": "Max patents",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum patents to output (default 30). Without filters a sample spread evenly across all technology classes is returned; raise to 10000 to get a whole weekly issue.",
            "default": 30
          },
          "maxDetailRequests": {
            "title": "Max patent pages to read",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Safety cap on Gazette patent pages read when filters need the full record (countries, owner types, exclusions). Raised automatically to at least Max patents.",
            "default": 500
          },
          "stateKey": {
            "title": "State key (sinceLastRun)",
            "type": "string",
            "description": "Separate 'already delivered' memory per saved task/schedule (stored in the named key-value store us-patent-grants-feed-state).",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}