uspto-patents-view-api
Version:
An api wrapper for the patent view api run by the uspto
46 lines (36 loc) • 1.73 kB
Markdown
# Patent View Api
[](https://github.com/dills122/patent-view-api/actions/workflows/ci.action.yml)
[](https://www.codefactor.io/repository/github/dills122/patent-view-api)
[](https://www.codacy.com/gh/dills122/patent-view-api/dashboard?utm_source=github.com&utm_medium=referral&utm_content=dills122/patent-view-api&utm_campaign=Badge_Grade)
[](https://badge.fury.io/js/uspto-patents-view-api)
Checkout all the granted patents over the last 50 years.
## API Description
Examples of the
Shared arguments:
* `dataPoints` - fields you want in your response;
* example: `["patent_number", "date"]`
* `sortBy` - how you would like your results sorting in the response
* example: `[{"patent_number":"desc"}]`
All endpoints support pagination, thus all endpoint's args object will have the following properties
```typescript
{
pageSize?: number;
pages?: number;
}
```
* `Endpoints`
* `Patents` - retrieve details about patents and inventors
* `Range` - Get all the patents between a period of time
* ```typescript
/*
RangeArgs: {
startDate: string;
endDate: string;
}
*/
const resp = await new Range().between({
args: RangeArgs;
dataPoints: DataPoints;
sortBy?: SortingOptions;
})
```