{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Patents API",
    "description": "Google Patents API for Claude, Cursor, ChatGPT, and any MCP-compatible AI agent. Search by keyword, inventor, or assignee across USPTO, EPO, WIPO, JPO, CN, KR + 100 offices. Pull claims, citations, family graphs, CPC. AI patent summaries. Pay per event.",
    "version": "0.0",
    "x-build-id": "xOpPEMoh2yQh0LA26"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/johnvc~google-patents-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-johnvc-google-patents-api",
        "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/johnvc~google-patents-api/runs": {
      "post": {
        "operationId": "runs-sync-johnvc-google-patents-api",
        "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/johnvc~google-patents-api/run-sync": {
      "post": {
        "operationId": "run-sync-johnvc-google-patents-api",
        "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": {
          "q": {
            "title": "Search Query",
            "type": "string",
            "description": "Free-text search query (e.g., 'graphene battery', 'CRISPR gene editing'). At least one of: q, patent_id, assignee, or inventor is required."
          },
          "patent_id": {
            "title": "Patent ID (details mode)",
            "type": "string",
            "description": "Provide to fetch full details for a specific patent instead of running a search. Format: 'patent/<publication_number>/<lang>' (e.g., 'patent/US11734097B1/en') or 'patent/<publication_number>'."
          },
          "assignee": {
            "title": "Assignee Filter",
            "type": "string",
            "description": "Comma-separated assignee (company) names to filter results by (e.g., 'Apple,Microsoft'). Use alone or alongside q."
          },
          "inventor": {
            "title": "Inventor Filter",
            "type": "string",
            "description": "Comma-separated inventor names to filter results by (e.g., 'John Smith,Jane Doe'). Use alone or alongside q."
          },
          "country": {
            "title": "Country / Patent Office",
            "type": "string",
            "description": "Comma-separated patent office codes. Common: US (USPTO), EP (EPO), WO (WIPO), JP (JPO), KR (KIPO), CN (CNIPA), DE, GB, FR, CA, AU, IN. Example: 'US,EP,WO'."
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Comma-separated languages. Use full names (ENGLISH, GERMAN, CHINESE, FRENCH, SPANISH, ARABIC, JAPANESE, KOREAN, PORTUGUESE, RUSSIAN, ITALIAN, DUTCH, SWEDISH, FINNISH, NORWEGIAN, DANISH) or 2-letter codes (EN, DE, ZH, ...) which we translate automatically. Example: 'ENGLISH,GERMAN' or 'EN,DE'."
          },
          "status": {
            "title": "Patent Status",
            "enum": [
              "GRANT",
              "APPLICATION"
            ],
            "type": "string",
            "description": "Filter by patent status."
          },
          "type": {
            "title": "Patent Type",
            "enum": [
              "PATENT",
              "DESIGN"
            ],
            "type": "string",
            "description": "Filter by patent type."
          },
          "before": {
            "title": "Latest Date Filter",
            "type": "string",
            "description": "Upper-bound date filter. Format 'type:YYYYMMDD' where type is one of priority, filing, publication. Example: 'publication:20251231'."
          },
          "after": {
            "title": "Earliest Date Filter",
            "type": "string",
            "description": "Lower-bound date filter. Format 'type:YYYYMMDD' where type is one of priority, filing, publication. Example: 'filing:20200101'."
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "new",
              "old"
            ],
            "type": "string",
            "description": "Sort search results by relevance (default), newest first, or oldest first."
          },
          "litigation": {
            "title": "Litigation Filter",
            "enum": [
              "YES",
              "NO"
            ],
            "type": "string",
            "description": "Return only patents that have been litigated (YES) or only those that have not (NO)."
          },
          "num": {
            "title": "Results per Page",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "Results returned per page, 10 to 100. Default 10.",
            "default": 10
          },
          "max_pages": {
            "title": "Maximum Pages",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of pages to fetch. Set to 0 for unlimited. Each page is one charged event.",
            "default": 1
          },
          "clustered": {
            "title": "Cluster by Classification",
            "type": "boolean",
            "description": "Group results by classification when true.",
            "default": false
          },
          "dups": {
            "title": "Deduplicate by Publication",
            "type": "boolean",
            "description": "Collapse near-duplicate publications across languages so each unique invention shows once.",
            "default": false
          },
          "scholar": {
            "title": "Include Google Scholar Results",
            "type": "boolean",
            "description": "Also include matching Google Scholar (academic paper) results alongside patents. Useful for prior-art workflows that consider non-patent literature.",
            "default": false
          },
          "no_cache": {
            "title": "Bypass Cache",
            "type": "boolean",
            "description": "Force a fresh fetch instead of returning cached results. Recommended for scheduled monitoring runs that need to detect newly published filings.",
            "default": false
          },
          "include_ai_summary": {
            "title": "Include AI Summary",
            "type": "boolean",
            "description": "Attach the AI-generated summary block (top assignees, inventors, CPC classes with percentages and year-range frequencies) to the first page item. Returned free with every search response. Default ON. No competitor offers this.",
            "default": true
          },
          "include_details": {
            "title": "Include Full Details for Each Result",
            "type": "boolean",
            "description": "After paginating, fetch full details (claims, citations, family, CPC, PDF URL) for each patent up to a hard cap of 10. Each details lookup is one additional charged event.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}