{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper",
    "description": "Search Google Patents and pull full patent metadata: abstract, claims, classifications (CPC/IPC), inventors, assignees, priority/grant dates, family, citations, and PDFs. Search by keyword, inventor, assignee, classification, or citation; lookup by publication number or URL.",
    "version": "1.0",
    "x-build-id": "CK2139c6caxTRTVbr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~google-patents-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~google-patents-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~google-patents-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchPatents",
              "byPatent",
              "byInventor",
              "byAssignee",
              "byClassification",
              "byCitation",
              "byUrl"
            ],
            "type": "string",
            "description": "Which lookup axis to use.",
            "default": "searchPatents"
          },
          "query": {
            "title": "Query (mode=searchPatents)",
            "type": "string",
            "description": "Free-text search query — same syntax as the Google Patents site search box.",
            "default": "quantum computing"
          },
          "publicationNumber": {
            "title": "Publication number (mode=byPatent)",
            "type": "string",
            "description": "Patent publication number, e.g. US11704715B2, EP3789012A1, WO2020012345A1, CN101234567A. The actor accepts any country prefix supported by Google Patents.",
            "default": ""
          },
          "publicationNumbers": {
            "title": "Publication numbers (batch — mode=byPatent or mode=byCitation)",
            "type": "array",
            "description": "Optional: list multiple publication numbers to fetch in one run (mode=byPatent) or to seed citation traversal (mode=byCitation).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "inventor": {
            "title": "Inventor (mode=byInventor)",
            "type": "string",
            "description": "Inventor name, e.g. \"Geoffrey Hinton\".",
            "default": ""
          },
          "assignee": {
            "title": "Assignee / Company (mode=byAssignee)",
            "type": "string",
            "description": "Assignee or applicant company, e.g. \"Google\", \"Apple Inc\", \"IBM\".",
            "default": ""
          },
          "classification": {
            "title": "Classification code (mode=byClassification)",
            "type": "string",
            "description": "CPC or IPC code, e.g. H04L9/06 or G06N3/00. The Google Patents site search uses CPC=... internally.",
            "default": ""
          },
          "citationDirection": {
            "title": "Citation direction (mode=byCitation)",
            "enum": [
              "backward",
              "forward",
              "both"
            ],
            "type": "string",
            "description": "Which side of the citation graph to walk: backward (cited by this patent), forward (citing this patent), or both.",
            "default": "both"
          },
          "urls": {
            "title": "Patent URLs (mode=byUrl)",
            "type": "array",
            "description": "Direct patents.google.com URLs (search results, patent pages, or inventor / assignee search URLs).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Filing-jurisdiction filter",
            "enum": [
              "",
              "US",
              "EP",
              "WO",
              "JP",
              "CN",
              "KR",
              "DE",
              "GB",
              "FR",
              "CA",
              "AU",
              "IN",
              "BR",
              "RU",
              "ES",
              "IT",
              "NL",
              "AT",
              "BE",
              "CH",
              "SE",
              "DK",
              "FI",
              "NO",
              "PL",
              "PT",
              "TW",
              "MX",
              "AR",
              "ZA"
            ],
            "type": "string",
            "description": "Restrict search modes to a specific patent office. (any) = no restriction.",
            "default": ""
          },
          "language": {
            "title": "Result language",
            "enum": [
              "en",
              "de",
              "fr",
              "es",
              "ja",
              "ko",
              "zh",
              "ru",
              "pt",
              "it"
            ],
            "type": "string",
            "description": "Translate the returned patent metadata to this language when Google Patents has a translation available. Patent text is multilingual; this only affects the rendered locale.",
            "default": "en"
          },
          "status": {
            "title": "Status filter",
            "enum": [
              "",
              "GRANT",
              "APPLICATION"
            ],
            "type": "string",
            "description": "Restrict results by legal status of the family.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "new",
              "old"
            ],
            "type": "string",
            "description": "Sort order for search modes.",
            "default": "relevance"
          },
          "filingDateFrom": {
            "title": "Filing date — from (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop patents filed before this date.",
            "default": ""
          },
          "filingDateTo": {
            "title": "Filing date — to (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop patents filed after this date.",
            "default": ""
          },
          "publicationDateFrom": {
            "title": "Publication date — from (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop patents published before this date.",
            "default": ""
          },
          "publicationDateTo": {
            "title": "Publication date — to (YYYY-MM-DD)",
            "type": "string",
            "description": "Drop patents published after this date.",
            "default": ""
          },
          "fetchFullDetails": {
            "title": "Fetch full patent details",
            "type": "boolean",
            "description": "For search modes (searchPatents, byInventor, byAssignee, byClassification): also fetch each patent's full HTML page for abstract, claims, classifications, citations. Adds 1 HTTP request per patent.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 25
          },
          "useProxy": {
            "title": "Use Apify proxy",
            "type": "boolean",
            "description": "Route requests through Apify proxy. Google Patents is generally accessible without a proxy; enable only if direct fetches return 429 / 403.",
            "default": false
          },
          "autoEscalateOnBlock": {
            "title": "Auto-escalate on block",
            "type": "boolean",
            "description": "If direct fetches start returning 403 / 429, automatically retry through Apify proxy.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy configuration. Used when useProxy is enabled or auto-escalation triggers.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}