{
  "openapi": "3.0.1",
  "info": {
    "title": "USPTO & Global Patents Scraper — Claims, Citations & Family",
    "description": "Scrape USPTO, EP, WO, JP & CN patents with independent/dependent claims trees, canceled-claim expansion, CPC/IPC codes, examiner vs. applicant citations, forward citations, deduplicated assignees & worldwide families. Built for IP search & Apify MCP.",
    "version": "1.0",
    "x-build-id": "SyiWt6ZYvoJTGf0gt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/autotroph~uspto-patent-intelligence-normalizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-autotroph-uspto-patent-intelligence-normalizer",
        "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/autotroph~uspto-patent-intelligence-normalizer/runs": {
      "post": {
        "operationId": "runs-sync-autotroph-uspto-patent-intelligence-normalizer",
        "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/autotroph~uspto-patent-intelligence-normalizer/run-sync": {
      "post": {
        "operationId": "run-sync-autotroph-uspto-patent-intelligence-normalizer",
        "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": "Ingestion Mode",
            "enum": [
              "search",
              "patent_numbers"
            ],
            "type": "string",
            "description": "Choose 'search' to query patents by keyword/assignee/CPC/date, or 'patent_numbers' to normalize a specific list of USPTO/global patent numbers.",
            "default": "search"
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Search keywords or phrase (e.g., 'solid state battery', 'neural network', 'CRISPR', 'autonomous vehicle lidar').",
            "default": "solid state battery"
          },
          "searchScope": {
            "title": "Query Field Scope",
            "enum": [
              "title",
              "all",
              "abstract",
              "claims"
            ],
            "type": "string",
            "description": "Where to match the search query: 'title' (highest precision), 'abstract', 'claims', or 'all' (full-text across title, abstract, and claims).",
            "default": "title"
          },
          "patentNumbers": {
            "title": "Patent Numbers (Direct Lookup)",
            "type": "array",
            "description": "List of patent numbers for 'patent_numbers' mode (accepts 'US10886558B2', 'US-10886558-B2', 'US8697359B1', 'EP4836300A1', etc.).",
            "items": {
              "type": "string"
            },
            "default": [
              "US-10886558-B2",
              "US-10000000-B2",
              "US-8697359-B1"
            ]
          },
          "countries": {
            "title": "Patent Office Countries",
            "type": "array",
            "description": "2-letter patent office country codes to search (e.g., ['US'], or ['US', 'EP', 'WO', 'JP', 'CN']). Empty searches all IP5 offices.",
            "items": {
              "type": "string"
            },
            "default": [
              "US"
            ]
          },
          "assignee": {
            "title": "Assignee / Applicant Filter (Optional)",
            "type": "string",
            "description": "Optional organization/assignee name filter (e.g., 'NVIDIA', 'Toyota', 'Apple', 'Samsung').",
            "default": ""
          },
          "classificationPrefix": {
            "title": "CPC / IPC Classification Prefix (Optional)",
            "type": "string",
            "description": "Optional CPC or IPC prefix filter (e.g., 'H01M' for batteries, 'G06N' for AI/ML, 'A61K' for pharma, 'H01L' for semiconductors).",
            "default": ""
          },
          "dateFrom": {
            "title": "Publication Date From (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive publication start date (e.g., '2020-01-01').",
            "default": ""
          },
          "dateTo": {
            "title": "Publication Date To (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive publication end date (e.g., '2026-12-31').",
            "default": ""
          },
          "documentTypes": {
            "title": "Document Types (Optional Filter)",
            "type": "array",
            "description": "Optional filter: include 'GRANT' (issued patents: B1/B2/C1/E/S1) and/or 'APPLICATION' (published applications: A1/A2/A9). Leave empty for both.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "enrichCitationsAndClassifications": {
            "title": "Enrich Citations, CPC/IPC & Patent Family (NIH/PubChem)",
            "type": "boolean",
            "description": "Cross-enrich each patent with official US NIH/NCBI PubChem Patent PUG-View REST JSON for IPC/CPC codes, examiner vs applicant citations, forward citations, and worldwide patent family.",
            "default": true
          },
          "includeClaimsText": {
            "title": "Include Parsed Independent Claims Text",
            "type": "boolean",
            "description": "Include full cleaned text of active independent claims and compact claim dependency tree.",
            "default": true
          },
          "maxItems": {
            "title": "Max Normalized Patents",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of verified patent records to emit (1 to 1,000).",
            "default": 20
          },
          "strictValidation": {
            "title": "Drop Records Failing Integrity Checks",
            "type": "boolean",
            "description": "When true, patent records failing deterministic schema/chronological integrity checks are logged as warnings instead of pushed/billed.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}