uspto

2.0.1 • Public • Published

uspto is a library for directly retrieving USPTO patent information

Lead Maintainer: Ho-Fan Kang

Example

var Uspto = require('uspto');

var options = {
  query: 'IN/KANG-HO-FAN'
};

Uspto.listPatents(options).then(function (data) {

  data.patentList.forEach(function (element) {

    console.log('patent number: ' + element.id);
    console.log('patent link: ' + element.url);
    console.log('patent title: ' + element.title);
    console.log('patent pdf link: ' + element.pdf);
    console.log('');
  });

  console.log('Displaying patents ' + data.startIndex + ' - ' + data.endIndex + ' out of ' + data.totalCount + ' patents found.');
}).catch(function (err) {

  console.log(err);
});

Usage

listPatents(options)

Retrieves a list of up to 50 patents/grants based on:

  • options - required:
    • query - USPTO Query String, required.
    • page - number, used when retrieving beyond the first 50 search results, defaults to 1.

Returns a promise with the following data:

  • data - an object containing:
    • patentList - an array of up to 50 objects containing:
      • id - the patent id.
      • url - a link to the patent on the USPTO website.
      • title - the patent title.
      • pdf - a link to a full pdf download of the patent.
    • startIndex - the index of the first patent in patentList within totalCount.
    • endIndex - the index of the last patent in patentList within totalCount.
    • totalCount - the total number of patents found.

Readme

Keywords

Package Sidebar

Install

npm i uspto

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

9.1 kB

Total Files

8

Last publish

Collaborators

  • hofan41