Skip to content

Instantly share code, notes, and snippets.

@ReedJessen
Created April 14, 2016 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReedJessen/b75db64da4eb2c5c5c34517eb53d462d to your computer and use it in GitHub Desktop.
Save ReedJessen/b75db64da4eb2c5c5c34517eb53d462d to your computer and use it in GitHub Desktop.
Searches for patents owned by the supplied entity name
import json
import requests
def search_by_owner(entity_name):
endpoint = 'https://api.ipstreet.com/v1/data/patent'
headers = {'x-api-key': "Your_IPStreet_API_Key"}
payload = json.dumps({'q': {"owner":entity_name}})
r = requests.post(endpoint, headers=headers, data=payload)
return r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment