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

@bigdatacloudapi/client

v2.0.0

Published

A NodeJS client for BigDataCloud API connectivity (https://www.bigdatacloud.com)

Downloads

198

Readme

BigDataCloud NodeJS API Client

A NodeJS client for connecting to the API services provided by BigDataCloud.

What API services does BigDataCloud offer?

BigDataCloud offers a range of extremely useful and fast APIs that can be utilised in both backend and frontend scenarios. From validating customer input live to the next generation of IP Geolocation technology, BigDataCloud has an API suitable to your needs.

You can access any and all BigDataCloud APIs with a free API Key. To get your API Key, just access your account and retrieve it from your Account Dashboard.

If you are not yet a customer, it is completely free to join — sign up at bigdatacloud.com/login.

BigDataCloud API Packages

All BigDataCloud APIs are bundled into API packages, each with its own subscription plans and pricing:

Installation

npm install @bigdatacloudapi/client

Quick Start

const client = require('@bigdatacloudapi/client')('YOUR_API_KEY');

// IP Geolocation
const geo = await client.getIpGeolocationFull({ ip: '8.8.8.8' });
console.log(geo.location.city); // "Mountain View"

// Reverse Geocoding
const address = await client.getReverseGeocode({ latitude: -34.9285, longitude: 138.6007 });
console.log(address.locality); // "Adelaide"

// ASN Info
const asn = await client.getAsnInfo({ asn: 'AS13335' });
console.log(asn.organisation); // "Cloudflare, Inc."

Usage

All API endpoints are accessed via magic methods in camelCase format: method + endpoint.

The endpoint name is converted from camelCase to kebab-case automatically. For example:

| Method call | HTTP Request | |---|---| | client.getIpGeolocation({ ip: '1.1.1.1' }) | GET /data/ip-geolocation?ip=1.1.1.1 | | client.getIpGeolocationFull({ ip: '1.1.1.1' }) | GET /data/ip-geolocation-full?ip=1.1.1.1 | | client.getReverseGeocode({ latitude: 0, longitude: 0 }) | GET /data/reverse-geocode?latitude=0&longitude=0 | | client.getPhoneNumberValidate({ number: '+1234567890' }) | GET /data/phone-number-validate?number=... | | client.getEmailVerify({ emailAddress: '[email protected]' }) | GET /data/email-verify?emailAddress=... |

All methods return a Promise that resolves to the JSON response.

Available Endpoints

  • IP Geolocation: getIpGeolocation, getIpGeolocationFull, getIpGeolocationWithConfidence
  • Reverse Geocoding: getReverseGeocode, getReverseGeocodeWithTimezone
  • Network: getAsnInfo, getNetworkByIp, getCountryByIp
  • Timezone: getTimezoneByIp, getTimezoneByLocation
  • Validation: getPhoneNumberValidate, getEmailVerify
  • Security: getHazardReport, getUserAgentInfo, getTorExitNodesList

Custom Server

// Use a specific API server
const client = require('@bigdatacloudapi/client')('YOUR_API_KEY', 'data', 'api-bdc.net');

TypeScript

TypeScript type definitions are included. Import with:

import createClient from '@bigdatacloudapi/client';

const client = createClient('YOUR_API_KEY');
const result = await client.getIpGeolocationFull({ ip: '8.8.8.8' });

Error Handling

try {
    const result = await client.getIpGeolocationFull({ ip: '8.8.8.8' });
    console.log(result);
} catch (error) {
    console.error('Error:', error.error);
    console.error('Status:', error.code);
}

Migration from v1.x

  • Breaking: Requires Node.js 18+ (uses native fetch instead of node-fetch)
  • Breaking: Default API server changed from api.bigdatacloud.net to api-bdc.net
  • Removed node-fetch dependency (zero dependencies!)
  • Added TypeScript type definitions

If you need to continue using the old server:

const client = require('@bigdatacloudapi/client')('KEY', 'data', 'api.bigdatacloud.net');

About BigDataCloud

BigDataCloud provides next-generation IP geolocation powered by patented technology. Our system continuously collects ground-truth location data and uses proprietary algorithms to deliver industry-leading accuracy.

  • 🏆 Patented technology — US Patent 11,792,110 B2
  • 📊 Transparent accuracy — public daily benchmark vs. competitors
  • 🌍 Global coverage — IPv4 and IPv6
  • ⚡ Ultra-fast — edge-deployed flat-file architecture

Also available

License

MIT