DEV Community

carrierone
carrierone

Posted on

USPTO Patent and Trademark Data via REST API

USPTO Patent and Trademark Data via REST API

As a developer looking to build tools for patent search, IP analytics, prior art searches, and trademark monitoring, you need access to comprehensive datasets. The United States Patent and Trademark Office (USPTO) provides such data through their RESTful API, accessible at api.verilexdata.com/api/v1/patents/sample.

Problem: Building a Comprehensive Patent Search Tool

When developing tools that require patent information, one common challenge is accessing up-to-date and accurate patent datasets. The USPTO's API offers a solution by providing sample data for testing purposes or as an endpoint to integrate with your own applications.

Small Python Code Example: Accessing the USPTO Patents Data via API

Here’s a simple example of how you can access the USPTO patents data using Python:


python
import requests

def get_patent_data():
    url = "https://api.verilexdata.com/api/v1/patents/sample"

    response = requests.get(url)

    if response.status_code == 200:
        return response.json()
    else:
        raise Exception(f"Failed to retrieve data: {response.status_code}")

# Example of calling the function
patent_data = get_patent_data()

for patent in patent_data:
    print(f"Inventor:
Enter fullscreen mode Exit fullscreen mode

Top comments (0)