{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper",
    "description": "Search Google Patents by keyword, assignee, inventor, patent office, status and date. Get title, dates, assignee, PDF and figures for each patent, plus optional abstract, claims, CPC codes, legal status, expiry, citations and family.",
    "version": "0.1",
    "x-build-id": "Dq9exa8SndoPzBQUZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapeworks~google-patents-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapeworks-google-patents-search",
        "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/scrapeworks~google-patents-search/runs": {
      "post": {
        "operationId": "runs-sync-scrapeworks-google-patents-search",
        "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/scrapeworks~google-patents-search/run-sync": {
      "post": {
        "operationId": "run-sync-scrapeworks-google-patents-search",
        "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": "Search terms",
            "type": "array",
            "description": "What to search for. Each entry is its own search. You can use the same syntax as patents.google.com, for example: solar panel, (lidar OR radar) AND vehicle, \"solid state battery\", or a CPC code such as CPC=H01M10/0562. Leave empty to list everything from the assignees or inventors below.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum patents",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops after this many patents in total, across all search terms. You pay per patent returned.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full patent details",
            "type": "boolean",
            "description": "Opens each patent page and adds the abstract, all claims, CPC codes, legal status, expiry date, current assignee, citations, cited-by, legal events and family. Priced per patent with details (see Pricing).",
            "default": false
          },
          "includeFullText": {
            "title": "Include the full description text",
            "type": "boolean",
            "description": "Adds the whole description section of each patent. It can be very long. Needs 'Include full patent details'.",
            "default": false
          },
          "assignees": {
            "title": "Assignees",
            "type": "array",
            "description": "Companies or people that own the patents. Several entries match any of them.",
            "items": {
              "type": "string"
            }
          },
          "inventors": {
            "title": "Inventors",
            "type": "array",
            "description": "Inventor names. Several entries match any of them.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Patent offices",
            "type": "array",
            "description": "Only patents published by these offices. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "EP",
                "WO",
                "CN",
                "JP",
                "KR",
                "DE",
                "GB",
                "FR",
                "CA",
                "AU",
                "IN",
                "TW",
                "RU",
                "BR",
                "ES",
                "IT",
                "NL",
                "SE",
                "CH",
                "AT",
                "DK",
                "FI",
                "BE",
                "IL",
                "MX",
                "SG"
              ],
              "enumTitles": [
                "United States (US)",
                "European Patent Office (EP)",
                "WIPO (PCT) (WO)",
                "China (CN)",
                "Japan (JP)",
                "South Korea (KR)",
                "Germany (DE)",
                "United Kingdom (GB)",
                "France (FR)",
                "Canada (CA)",
                "Australia (AU)",
                "India (IN)",
                "Taiwan (TW)",
                "Russia (RU)",
                "Brazil (BR)",
                "Spain (ES)",
                "Italy (IT)",
                "Netherlands (NL)",
                "Sweden (SE)",
                "Switzerland (CH)",
                "Austria (AT)",
                "Denmark (DK)",
                "Finland (FI)",
                "Belgium (BE)",
                "Israel (IL)",
                "Mexico (MX)",
                "Singapore (SG)"
              ]
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "any",
              "GRANT",
              "APPLICATION"
            ],
            "type": "string",
            "description": "Granted patents, published applications, or both.",
            "default": "any"
          },
          "patentType": {
            "title": "Type",
            "enum": [
              "any",
              "PATENT",
              "DESIGN"
            ],
            "type": "string",
            "description": "Utility patents, design patents, or both.",
            "default": "any"
          },
          "dateType": {
            "title": "Date type for the date range",
            "enum": [
              "priority",
              "filing",
              "publication"
            ],
            "type": "string",
            "description": "Which date the date range below filters on.",
            "default": "priority"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Only patents with this date or later."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Only patents with this date or earlier."
          },
          "litigation": {
            "title": "Only patents with litigation",
            "type": "boolean",
            "description": "Only patents that Google Patents lists as involved in litigation.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of the results, as on patents.google.com.",
            "default": "relevance"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Google limits how many pages one IP address can open, so the actor spreads requests over Apify Proxy IPs. The default works for most runs.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}