npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

behanceapi

v1.1.4

Published

A small library providing utility methods to get data from Behance Api

Readme

behanceapi

behanceapi is designed to get data from Behance API in vary simplest way.

How to install

npm install behanceapi --save

How to use

example

var Behance = require('behanceapi')
    , behance = new Behance('YOUR CLIENT_ID');

behance.getProjects({q: "Bikes", page: 2}, function (err, result) {
  if (err) {
    console.log("Error:", err);
  }
  if (result) {
    console.log("Result: ", JSON.parse(result));
  }
});

behance.getProjectById('957077', function (err, result) {
  if (err) {
    console.log("Error:", err);
  }
  if (result) {
    console.log("Result: ", JSON.parse(result));
  }
});

behanceapi provides the following functions.


behance.getProjects(params, done)

Search for projects.

arguments

  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getProjectById(projectId, done)

Get the information and content of a project.

arguments

  • projectId: is used to specify a particular project to get
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getCommentsFromProject(projectId, page, done)

Get the comments for a project.

arguments

  • projectId: is used to specify a particular project to get
  • page: is a number that determine the page that need to retrieve
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.creativesToFollowList(page, done)

Provides a list of creatives you might be interested in following.

arguments

  • page: is a number that determine the page that need to retrieve
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getAllCreativeFields(done)

Retrieves all Creative Fields in two groups, all fields (in "fields") and popular ones (in "popular").

arguments

  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUsersList(params, done)

Search for users.

arguments

  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUser(user, done)

Get basic information about a user.

arguments

  • user: is used to specify a particular user to get. It can be a username or userId.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserProjects(user, params, done)

Get the projects published by a user.

arguments

  • user: is used to specify a particular user to get. It can be a username or userId.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserWips(user, params, done)

Get the works-in-progress published by a user.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserAppreciations(user, page, done)

Get a list of user's recently appreciated projects.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • page: is a number that determine the page that need to retrieve
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserCollections(user, params, done)

Get a list of a user's collections.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserStats(user, done)

Get statistics (all-time and today) for a specific user. Includes number of project views, appreciations, comments, and profile views.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserFollowers(user, params, done)

Get a list of creatives who follow the user.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserFollowing(user, params, done)

Get a list of creatives followed by the user.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getBehanceUserWorkExperienceList(user, done)

A list of the user's professional experience.

arguments

  • user: is used to specify a particular user. It can be a username or userId.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getWips(params, done)

Search for works-in-progress.

arguments

  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getWipsByWipId(wipId, done)

Get information about a work in progress

arguments

  • wipId: is used to specify a particular work-in-progress to get
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getWipsRevisionInfo(wipId, revisionId, done)

Get information and contents of a revision of a work in progress.

arguments

  • wipId: is used to specify a particular work-in-progress to get.
  • revisionId: is used to specify a particular revision of a work in progress.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getCommentsOnRevisionWips(wipId, revisionId, page, done)

Get comments on a revision of a work in progress.

arguments

  • wipId: is used to specify a particular work-in-progress to get.
  • revisionId: is used to specify a particular revision of a work in progress.
  • page: is a number that determine the page that need to retrieve.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getCollections(params, done)

Search for collections.

arguments

  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getCollectionById(collectionId, done)

Get basic information about a collection.

arguments

  • collectionId: is used to specify a particular collection to get.
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

behance.getProjectsFromCollection(collectionId, params, done)

Get projects from a collection.

arguments

  • collectionId: is used to specify a particular collection to get.
  • params: is an optional object that you use to send with request to Behance API
  • done: is a function that is called when the data is retrieved from the server. function(err, result){}

Click here to explore more examples on git.