{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper — Patents, Citations & Assignees",
    "description": "Scrape Google Patents: search by keyword, assignee, inventor, CPC, country, status & date. Get abstracts, claims, CPC classifications, backward/forward citations, legal status, expiry, patent family & assignee intelligence. Assignee & inventor portfolios. Monitoring mode. No API key, no browser.",
    "version": "0.1",
    "x-build-id": "TUgb0ErMBwxb95tcj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~google-patents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-google-patents-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/scrapesage~google-patents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-google-patents-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/scrapesage~google-patents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-google-patents-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "assigneePortfolio",
              "inventorPortfolio",
              "patentDetails"
            ],
            "type": "string",
            "description": "search = keyword/filter search. assigneePortfolio = every patent for given companies/assignees. inventorPortfolio = every patent for given inventors. patentDetails = full records for specific patent numbers. Start URLs override the mode.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords / phrases for search mode. Each query runs separately and combines with the filters below. Examples: \"machine learning\", \"solid state battery\", \"mRNA vaccine\".",
            "items": {
              "type": "string"
            }
          },
          "assignees": {
            "title": "Assignees (companies)",
            "type": "array",
            "description": "Company / organization names. Primary input for assigneePortfolio mode (one search per assignee). In search mode the first assignee is used as a filter. Examples: \"Apple\", \"Cisco Technology\", \"Samsung Electronics\".",
            "items": {
              "type": "string"
            }
          },
          "inventors": {
            "title": "Inventors",
            "type": "array",
            "description": "Inventor names. Primary input for inventorPortfolio mode (one search per inventor). In search mode the first inventor is used as a filter. Example: \"Geoffrey Hinton\".",
            "items": {
              "type": "string"
            }
          },
          "patentNumbers": {
            "title": "Patent numbers",
            "type": "array",
            "description": "Publication numbers for patentDetails mode, e.g. \"US12438891B1\", \"EP3000000A1\", \"WO2021123456A1\". Full detail (claims, citations, classifications, legal status, family) is always fetched for these.",
            "items": {
              "type": "string"
            }
          },
          "cpcCodes": {
            "title": "CPC classification codes",
            "type": "array",
            "description": "Cooperative Patent Classification codes to require, e.g. \"G06N20/00\" (machine learning), \"H01M10\" (batteries). Combined with the search query.",
            "items": {
              "type": "string"
            }
          },
          "countryCodes": {
            "title": "Country / office codes",
            "type": "array",
            "description": "Limit to patent offices, e.g. \"US\", \"EP\", \"WO\", \"CN\", \"JP\", \"KR\", \"GB\", \"DE\". Empty = all offices.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "any",
              "GRANT",
              "APPLICATION"
            ],
            "type": "string",
            "description": "Filter by grant status.",
            "default": "any"
          },
          "patentType": {
            "title": "Document type",
            "enum": [
              "any",
              "PATENT",
              "DESIGN"
            ],
            "type": "string",
            "description": "Filter by document type.",
            "default": "any"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Optional document language filter, e.g. \"ENGLISH\", \"GERMAN\", \"CHINESE\", \"JAPANESE\", \"KOREAN\", \"FRENCH\". Empty = any."
          },
          "dateType": {
            "title": "Date field for the range",
            "enum": [
              "publication",
              "filing",
              "priority"
            ],
            "type": "string",
            "description": "Which date the From/To range filters on.",
            "default": "publication"
          },
          "dateFrom": {
            "title": "Date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only patents on/after this date (using the date field above). Example: \"2024-01-01\". Great for monitoring recent filings."
          },
          "dateTo": {
            "title": "Date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Only patents on/before this date (using the date field above). Example: \"2024-12-31\"."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "new",
              "old"
            ],
            "type": "string",
            "description": "Result ordering. \"new\"/\"old\" sort by date; relevance is Google's default ranking.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Max patents (total)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total cap on patents emitted across all queries/assignees/inventors in this run.",
            "default": 100
          },
          "maxResultsPerQuery": {
            "title": "Max patents per query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap per individual query/assignee/inventor (0 = no per-query cap, only the total cap applies). Google Patents serves up to ~1000 results per query — narrow with filters to go deeper.",
            "default": 0
          },
          "includePatentDetails": {
            "title": "Include full patent details",
            "type": "boolean",
            "description": "Fetch each patent's detail page for abstract, claims, CPC classifications, citations, legal status, expiry & patent family (one extra request per patent). Turn off for fast, cheap search-only runs.",
            "default": true
          },
          "includeClaims": {
            "title": "Include claims text",
            "type": "boolean",
            "description": "When fetching details, include the full claims text (and always the claim count + first claim). Turn off to keep records smaller.",
            "default": true
          },
          "includeCitations": {
            "title": "Include citations",
            "type": "boolean",
            "description": "When fetching details, include backward citations (patents this one cites) and forward citations (patents that cite this one), with their numbers, titles, assignees and dates.",
            "default": true
          },
          "includeDescription": {
            "title": "Include full description text",
            "type": "boolean",
            "description": "When fetching details, also include the (long) specification/description text, truncated to ~8000 chars. Off by default — the description count is always reported.",
            "default": false
          },
          "maxCitations": {
            "title": "Max citations per direction",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on backward and forward citation rows captured per patent.",
            "default": 100
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Google Patents URLs to scrape directly (auto-routed). Supports patent pages (patents.google.com/patent/US12438891B1/en) and search URLs (patents.google.com/?q=...&assignee=...).",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (only new patents)",
            "type": "boolean",
            "description": "Remember patents seen in previous runs (in a named key-value store) and emit only NEW ones. Pair with Apify Schedules to watch a competitor, technology area or inventor for newly published patents. Does not conflict with scheduling.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' patent numbers for monitor mode. Use a distinct name per saved task so their histories stay separate.",
            "default": "google-patents-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Maximum detail pages fetched in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Google Patents has no aggressive anti-bot, so the default Apify datacenter proxy is plenty.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}