Skip to content

Commit a1b936b

Browse files
authored
Merge pull request #5 from mustberuss/switch-to-new-api-version
Switch to new api version
2 parents 327e77c + d777f2e commit a1b936b

File tree

2 files changed

+129
-136
lines changed

2 files changed

+129
-136
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This project is a wrapper for the PatentsView API.
1414
* There needs to be an environmental variable PATENTSVIEW_API_KEY set to the value of your API key.
1515
* The endpoints of the new version of the API are at <https://search.patentsview.org>, they had last been at <https://api.patentsview.org/>.
1616
* The API team produced a [Swagger UI page](https://search.patentsview.org/swagger-ui/) for the new version of the API. Your API key can be entered by pressing the Authorize button.
17-
* The new version of the API does not seem to return USPC classifications, the code was switched to use CPC classifications.
17+
* The new version of the API now returns USPC classifications, but we'll use CPC classifications. After May 2015 the patent office stopped assigning USPCs to utility patents.
1818

1919
## Remarks about the data
2020

@@ -24,7 +24,7 @@ This project is a wrapper for the PatentsView API.
2424
* As an example: `NETFLIX, INC.` has an `assignee_key_id` of `17594` and an `assignee_id` of `org_2lAuxOpAtNMvtTxhuLmX`; `NETFLIX.COM, INC.` on the other hand an `assignee_key_id` of `org_UNHkzir8tY7NlQrOJKT4` and an `assignee_id` of `363028`. (This of course assumes `NETFLIX, INC.` and `NETFLIX.COM, INC.` are the same company, which is highly probable).
2525
* The same applies for acquisitions. Example: Company A has patent *X*; once company B acquires company A, patent *X* would still show that it is assigned to company *A*.
2626
* Probably the same thing holds if a company acquires certain patents of another company.
27-
* The patents can be assigned to organizations (as opposed to individuals). This is indicated by the 'assignees_at_grant.organization' field returned by the API.
27+
* The patents can be assigned to organizations (as opposed to individuals). This is indicated by the 'assignees.assignee_organization' field returned by the API.
2828
* The assignee organizations (i.e. companies) are distinguished by name. Each organization name is a 'separate' company.
2929
* This means that a patent can be assigned to "IBM", "IBM Inc.", "International Business Machines".
3030
* Different organization names have different `assignee_id`s and `assignee_key_id`s (see `NETFLIX` example above).
@@ -98,7 +98,7 @@ SELECT
9898
an.name as "Company Name Listed on Patent",
9999
p.year,
100100
p.grant_date as "Grant Date",
101-
p.cpc_subsection_id as "CPC Subsections"
101+
p.cpc_group_id as "CPC Subsections"
102102
FROM
103103
patents as p
104104
JOIN

0 commit comments

Comments
 (0)