# octopart

> A simple wrapper for the Octopart V3 API for Node

Latest version **0.1.1** (published 2014-02-03) · 0 weekly downloads

## Install

```sh
npm install octopart
pnpm add octopart
yarn add octopart
bun add octopart
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-02-03 |
| First published | 2014-01-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Joris Aerts |
| Maintainers | jorisa |

## Links

- npm: https://www.npmjs.com/package/octopart
- Repository: https://github.com/jorisa/octopart
- Issues: https://github.com/jorisa/octopart/issues
- npm.io page: https://npm.io/package/octopart

## Dependencies (1)

- [request](https://npm.io/package/request.md) >2.0.0

## Recent versions

- 0.1.1 (latest) — 2014-02-03
- 0.1.0 — 2014-01-29

## README

# Octopart

A simple wrapper for the Octopart V3 API for Node.
http://octopart.com/api/docs/v3/rest-api

## Quick Example

```javascript
var octopart = require("octopart");

octopart.apikey = '12345678';

var queries = [
    {reference: '1', mpn: 'SN74S74N'},
    {reference: '2', mpn: 'CRCW060310K0FKEA'},
];

octopart.parts.match(queries, {
    exact_only: true,
    show: ['uid','mpn','manufacturer']
}).success(function(body) {
    for(var i=0;i<body.results.length;i++) {
        console.log("Result", i, body.results[i].items);
    }
}).failure(function(err) {
    console.log("Ooops....", err");
});
```

## Implemented endpoints

```javascript
octopart.brands.get(uids, options)
octopart.brands.search(q, options)
octopart.categories.get(uids, options)
octopart.categories.search(q, options)
octopart.parts.get(uids, options)
octopart.parts.match(queries, options)
octopart.parts.search(q, options)
octopart.sellers.get(uids, options)
octopart.sellers.search(q, options)
```

---
_Source: https://npm.io/package/octopart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
