{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper - Search & Full Records",
    "description": "Search the Google Patents index by keyword, assignee, inventor, country, date window and grant status, or read patents in full: every inventor, the four dates kept apart, classifications, claim count and how many later patents cite it.",
    "version": "0.1",
    "x-build-id": "E4bIqHyaNRafxw6qM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~google-patents/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-google-patents",
        "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/s-r~google-patents/runs": {
      "post": {
        "operationId": "runs-sync-s-r-google-patents",
        "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/s-r~google-patents/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-google-patents",
        "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",
              "detail"
            ],
            "type": "string",
            "description": "Search walks the index and returns a row per hit, a hundred per request. Detail reads publication numbers you already have and returns the full record for each.",
            "default": "search"
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Search terms, as you would type them into Google Patents. Leave empty if you are searching by assignee or inventor alone."
          },
          "assignee": {
            "title": "Assignee",
            "type": "string",
            "description": "Company the patent is assigned to. Google matches corporate families, so Google LLC also returns X Development and the Japanese-script filings of the same company."
          },
          "inventor": {
            "title": "Inventor",
            "type": "string",
            "description": "Inventor name. Works on its own without a keyword."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter patent office code, such as US, EP, CN, DE, JP. Leave empty for every office."
          },
          "after": {
            "title": "On or after",
            "type": "string",
            "description": "A date floor written as Google writes it: priority:20240101, filing:20200101 or publication:20230101."
          },
          "before": {
            "title": "On or before",
            "type": "string",
            "description": "A date ceiling in the same form, such as priority:20200101."
          },
          "status": {
            "title": "Grant status",
            "enum": [
              "ANY",
              "GRANT",
              "APPLICATION"
            ],
            "type": "string",
            "description": "GRANT returns granted patents, APPLICATION returns filings that have not been granted.",
            "default": "ANY"
          },
          "type": {
            "title": "Document type",
            "enum": [
              "ANY",
              "PATENT",
              "DESIGN"
            ],
            "type": "string",
            "description": "PATENT for utility patents, DESIGN for design patents.",
            "default": "ANY"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "new",
              "old"
            ],
            "type": "string",
            "description": "Relevance is Google's ranking. New and old sort by publication date, which is how you get the most recent filings in a field.",
            "default": "relevance"
          },
          "max_results": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many patents. Also the cost ceiling for the run.",
            "default": 100
          },
          "follow_details": {
            "title": "Read each result in full",
            "type": "boolean",
            "description": "After searching, open every result and add the full record: every inventor rather than the first, classifications, claim count and citation counts. This costs one extra request per patent, so it is off by default.",
            "default": false
          },
          "publication_numbers": {
            "title": "Publication numbers",
            "type": "array",
            "description": "Detail mode only. One per line, such as US10000000B2 or EP1000000A1. Full Google Patents URLs are accepted too.",
            "items": {
              "type": "string"
            }
          },
          "language_page": {
            "title": "Page language",
            "type": "string",
            "description": "Which translation of the patent page to read. Two letters, such as en or de.",
            "default": "en"
          },
          "attempts": {
            "title": "Attempts per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How often to retry a request that fails. Google throttles by volume, and a retry usually clears it.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}