Skip to content

Commands Reference

Google Patents for SEO and Social Media

Command Categories and Relationships

Common CLI Commands

🚀 Search Patents

CommandDescription
"patent:keyword"Search for patents containing the specified keyword
"assignee:company"Search for patents assigned to a specific company
"inventor:name"Search for patents by a specific inventor
"publication_number:123456"Search for a specific patent by its publication number
"priority_date:YYYY-MM-DD"Search for patents with a specific priority date

🤔 Filter & Refine

CommandDescription
"status:active"Filter for active patents
"status:expired"Filter for expired patents
"type:utility"Filter for utility patents
"type:design"Filter for design patents
"type:plant"Filter for plant patents
"cited_by:123456"Filter for patents that cite a specific patent
"cpc:G06F"Filter for patents with a specific CPC classification

⚙️ Analyze & Insights

CommandDescription
"cited_by_count:>100"Find patents with more than 100 citations
"priority_date:YYYY-MM-DD..YYYY-MM-DD"Analyze patents within a specific date range
"title_length:>20"Find patents with long titles (more than 20 characters)
"independent_claims:>10"Find patents with more than 10 independent claims
"total_claims:>30"Find patents with more than 30 total claims

🤔 Export & Share

bash
# Export patent data to a CSV file
$ googlepatents export --output=patents.csv --query="patent:keyword"

# Share a patent link on social media
$ googlepatents share --id=12345678 --platform=twitter

Useful Snippets

📊 Analyze Patent Portfolios

python
from googlepatents import search

# Search for patents by a specific company
company_patents = search("assignee:Apple")

# Analyze the patent portfolio
print(f"Total patents: {len(company_patents)}")
print(f"Average citations: {sum(p.cited_by_count for p in company_patents) / len(company_patents)}")
print(f"Newest patent: {max(company_patents, key=lambda p: p.priority_date)}")

📊 Monitor Competitors

python
from googlepatents import search
import time

# Search for patents by a competitor
competitor_patents = search("assignee:Microsoft")

# Monitor new patents from the competitor
while True:
    new_patents = search("assignee:Microsoft", after=max(p.priority_date for p in competitor_patents))
    if new_patents:
        print(f"New patents from Microsoft: {', '.join(p.title for p in new_patents)}")
    time.sleep(86400)  # Check for new patents every 24 hours
python
import matplotlib.pyplot as plt
from googlepatents import search

# Search for patents in a technology area
tech_patents = search("cpc:G06F")

# Group patents by priority year and count them
priority_years = [p.priority_date.year for p in tech_patents]
year_counts = {year: priority_years.count(year) for year in set(priority_years)}

# Plot the patent trend over time
plt.figure(figsize=(12, 6))
plt.bar(year_counts.keys(), year_counts.values())
plt.title("Patent Trends in Technology Area G06F")
plt.xlabel("Priority Year")
plt.ylabel("Number of Patents")
plt.show()