https://github.com/bluet/everypixel-js
JavaScript support for EveryPixel API
https://github.com/bluet/everypixel-js
ai api artificial-intelligence everypixel everypixel-api graphics hacktoberfest machine-learning photo picture score
Last synced: 4 months ago
JSON representation
JavaScript support for EveryPixel API
- Host: GitHub
- URL: https://github.com/bluet/everypixel-js
- Owner: bluet
- License: mit
- Created: 2019-07-02T15:48:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-11-01T19:04:53.000Z (8 months ago)
- Last Synced: 2025-11-24T02:17:02.246Z (7 months ago)
- Topics: ai, api, artificial-intelligence, everypixel, everypixel-api, graphics, hacktoberfest, machine-learning, photo, picture, score
- Language: JavaScript
- Homepage:
- Size: 251 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to EveryPixel API ๐

[](https://github.com/BlueT/everypixel-js#readme)
[](https://github.com/BlueT/everypixel-js/graphs/commit-activity)
[](https://github.com/BlueT/everypixel-js/blob/master/LICENSE)
[](https://twitter.com/BlueT)
JavaScript client support for EveryPixel API, works in both Node.js and Browser.
- Image Keywording
- Stock Photography Scoring
- UGC Photography Scoring
- Age recognition
-
### ๐ [Homepage](https://github.com/BlueT/everypixel-js#readme)
## Install
```sh
npm i everypixel
```
## Usage
```js
const EveryPixel = require('everypixel');
const api = new EveryPixel({
"username": "",
"password": ""
});
// Get 10 suggested keywords of online image
let ret = await api.keywords({"url": "http://image.everypixel.com/2014.12/67439828186edc79b9be81a4dedea8b03c09a12825b_b.jpg", "num_keywords": 10});
console.log(ret.data);
// Get 10 suggested keywords of local image file
let ret = await api.keywords({"data": fs.createReadStream("t/cat.jpg"), "num_keywords": 10});
console.log(ret.data);
```
### keywords
```js
await api.keywords({"url": "http://image.everypixel.com/2014.12/67439828186edc79b9be81a4dedea8b03c09a12825b_b.jpg", "num_keywords": 10});
```
```js
await api.keywords({"data": fs.createReadStream(appRoot + "/t/cat.jpg"), "num_keywords": 10});
```
### quality
```js
await api.quality({"url": "http://image.everypixel.com/2014.12/67439828186edc79b9be81a4dedea8b03c09a12825b_b.jpg"});
```
```js
await api.quality({"data": fs.createReadStream(appRoot + "/t/cat.jpg")});
```
### quality_ugc
```js
await api.quality_ugc({"url": "http://image.everypixel.com/2014.12/67439828186edc79b9be81a4dedea8b03c09a12825b_b.jpg"});
```
```js
await api.quality_ugc({"data": fs.createReadStream(appRoot + "/t/cat.jpg")});
```
### faces
```js
await api.faces({"url": "https://labs.everypixel.com/api/static/i/estest_sample3.jpg"});
```
```js
await api.faces({"data": fs.createReadStream(appRoot + "/t/face.jpg")});
```
## Run tests
Because EveryPixel doesn't provide free test account, you need to signup at https://labs.everypixel.com/api and get your client tokens with 100 daily free quota of api calls.
Please modify `t/test.js` and update your token info BEFORE running test.
```sh
npm run test
```
## Author
๐ค **BlueT - Matthew Lien - ็ทดๅๆ <BlueT@BlueT.org>**
* Twitter: [@BlueT](https://twitter.com/BlueT)
* Github: [@BlueT](https://github.com/BlueT)
## ๐ค Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/BlueT/everypixel-js/issues).
## Show your support
Give a โญ๏ธ if this project helped you!
[](https://www.patreon.com/bluet)
## ๐ License
Copyright ยฉ 2019 [BlueT - Matthew Lien - ็ทดๅๆ <BlueT@BlueT.org>](https://github.com/BlueT).
This project is [MIT](https://github.com/BlueT/everypixel-js/blob/master/LICENSE) licensed.
***
_This README was generated with โค๏ธ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_