{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents Scraper API | $2/1K Patents",
    "description": "Google Patents scraper for prior-art and IP intelligence. Search or look up patents; filter assignee, inventor, CPC, country, date and status; extract claims, citations. From $2 per 1,000 patents, platform usage included.",
    "version": "0.2",
    "x-build-id": "dGXDIvX1mWQXBwgfc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zenomastro~google-patents-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zenomastro-google-patents-intelligence",
        "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/zenomastro~google-patents-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-zenomastro-google-patents-intelligence",
        "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/zenomastro~google-patents-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-zenomastro-google-patents-intelligence",
        "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": {
          "queries": {
            "title": "Google Patents search expressions",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "Search terms or Google Patents query expressions.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerQuery": {
            "title": "Maximum results per query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum results per query. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 250
          },
          "maxPagesPerQuery": {
            "title": "Maximum result pages per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum result pages per query. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 10
          },
          "country": {
            "title": "Optional country filter",
            "type": "string",
            "description": "Optional country filter. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use."
          },
          "language": {
            "title": "Optional language filter",
            "type": "string",
            "description": "Optional language filter. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use."
          },
          "includeDetails": {
            "title": "Enrich patent detail pages",
            "type": "boolean",
            "description": "Adds abstract, detail title, inventors/assignees, application/patent numbers, PDF and references when exposed.",
            "default": false
          },
          "detailsLimitPerQuery": {
            "title": "Maximum detail pages per query",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum detail pages per query. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 50
          },
          "detailConcurrency": {
            "title": "Detail request concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Detail request concurrency. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 5
          },
          "monitorKey": {
            "title": "Persistent monitor key",
            "type": "string",
            "description": "Persistent monitor key. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use."
          },
          "onlyNew": {
            "title": "Emit only newly observed publications",
            "type": "boolean",
            "description": "Emit only newly observed publications. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": false
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Request timeout. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 30
          },
          "retries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries. Configure this value to control the Actor run; bounded defaults are chosen for reliable production use.",
            "default": 2
          },
          "publicationNumbers": {
            "title": "Publication numbers or Google Patents URLs",
            "maxItems": 100,
            "type": "array",
            "description": "Optional direct patent lookups such as US20240256345A1 or a patents.google.com/patent/... URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeClaims": {
            "title": "Include claim text in enriched/direct records",
            "type": "boolean",
            "description": "Extract bounded public claim text from patent detail pages. Enable only when needed because claims can make records large.",
            "default": false
          },
          "claimsLimit": {
            "title": "Maximum claims per patent",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum claim blocks kept per enriched or direct patent detail.",
            "default": 20
          },
          "assignee": {
            "title": "Assignee filter",
            "type": "string",
            "description": "Optional Google Patents assignee filter, e.g. Google LLC."
          },
          "inventor": {
            "title": "Inventor filter",
            "type": "string",
            "description": "Optional inventor name filter."
          },
          "cpc": {
            "title": "CPC classification",
            "type": "string",
            "description": "Optional CPC code filter such as G06F."
          },
          "after": {
            "title": "Patent date after",
            "type": "string",
            "description": "Optional Google Patents date lower bound, e.g. 2024-01-01."
          },
          "before": {
            "title": "Patent date before",
            "type": "string",
            "description": "Optional Google Patents date upper bound, e.g. 2026-01-01."
          },
          "legalStatus": {
            "title": "Legal status filter",
            "type": "string",
            "description": "Optional Google Patents legal-status filter when supported by the current search surface."
          },
          "sort": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Requested Google Patents ordering.",
            "default": "relevance"
          },
          "includeGraph": {
            "title": "Build citation & family graph",
            "type": "boolean",
            "description": "Emit a free patent_graph row per search query with patent nodes, directed citation edges and family links derived from enriched metadata.",
            "default": false
          },
          "graphMaxNodes": {
            "title": "Maximum graph nodes",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Bound graph size for predictable memory and output volume.",
            "default": 500
          },
          "includeLandscapeSummary": {
            "title": "Include patent landscape summary",
            "type": "boolean",
            "description": "Emit a free per-query intelligence row with top assignees, inventors, CPC codes, publication-year mix, legal-status distribution and citation counts.",
            "default": true
          },
          "landscapeTopN": {
            "title": "Landscape top values",
            "minimum": 5,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum ranked assignee, inventor, CPC and legal-status values included in each landscape summary.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}