{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper - Patent Search & Details",
    "description": "Search Google Patents and export results: title, assignee, inventors, dates, status, country, PDF; optional details with abstract, claims, CPC codes, citations and family. Filter by query, assignee, inventor, country, dates.",
    "version": "0.1",
    "x-build-id": "SBV5nV0BjQiHqltGD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~google-patents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-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/fabrikit~google-patents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-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/fabrikit~google-patents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-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": {
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Google Patents query: keywords, phrases in quotes, boolean operators (`(solid state) AND battery`) and field codes such as `CPC=H01M10/0562`. Leave empty if you search by assignee or inventor only.",
            "default": ""
          },
          "assignee": {
            "title": "Assignee / company",
            "type": "string",
            "description": "Company or organisation that owns the patent, e.g. `Tesla`, `Samsung SDI`, `Massachusetts Institute of Technology`.",
            "default": ""
          },
          "inventor": {
            "title": "Inventor",
            "type": "string",
            "description": "Inventor name as printed on the patent (bibliographic data of the patent record).",
            "default": ""
          },
          "countries": {
            "title": "Patent offices",
            "type": "array",
            "description": "Office codes: `US`, `EP`, `WO`, `CN`, `JP`, `KR`, `DE`, `GB`, `FR`... Leave empty for all offices.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Grant status",
            "enum": [
              "any",
              "grant",
              "application"
            ],
            "type": "string",
            "description": "`grant` = granted patents only, `application` = published applications only.",
            "default": "any"
          },
          "patentType": {
            "title": "Document type",
            "enum": [
              "any",
              "patent",
              "design"
            ],
            "type": "string",
            "description": "Restrict to utility patents or design patents.",
            "default": "any"
          },
          "language": {
            "title": "Language of the document",
            "type": "string",
            "description": "Optional, e.g. `ENGLISH`, `GERMAN`, `CHINESE`, `JAPANESE`.",
            "default": ""
          },
          "dateType": {
            "title": "Date to filter and slice by",
            "enum": [
              "publication",
              "priority",
              "filing"
            ],
            "type": "string",
            "description": "Which date `From date`, `To date` and the year/month slicing use.",
            "default": "publication"
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Only patents with the chosen date on or after this day (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Only patents with the chosen date on or before this day (YYYY-MM-DD)."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Result ordering. `newest` / `oldest` use the publication date.",
            "default": "relevance"
          },
          "patentNumbers": {
            "title": "Patent numbers (details only)",
            "type": "array",
            "description": "Skip the search and fetch these patents directly: `US9000000B2`, `EP3000000A1` or patents.google.com/patent/... URLs. Details are always included in this mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "fetchDetails": {
            "title": "Fetch patent details (add-on)",
            "type": "boolean",
            "description": "Open each patent page (1 extra request per patent) to add abstract, claims, CPC codes, all inventors and assignees, legal status, events, citations, cited-by and family. Billed with the separate `patent-details` event.",
            "default": false
          },
          "includeDescription": {
            "title": "Include full description text",
            "type": "boolean",
            "description": "With details: also save the full patent description (up to 60,000 characters). Makes items much larger.",
            "default": false
          },
          "maxItems": {
            "title": "Max patents",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many patents. One search returns at most 1,000; bigger runs are sliced by year and month automatically.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify datacenter proxy by default; the Actor switches to residential proxies by itself if Google blocks it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}