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

@datafire/ebay_commerce_charity

v3.0.0

Published

DataFire integration for Charity API

Readme

@datafire/ebay_commerce_charity

Client library for Charity API

Installation and Usage

npm install --save @datafire/ebay_commerce_charity
let ebay_commerce_charity = require('@datafire/ebay_commerce_charity').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

The Charity API allows third-party developers to search for and access details on supported charitable organizations.

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

ebay_commerce_charity.oauthCallback({
  "code": ""
}, context)

Input

  • input object
    • code required string

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

oauthRefresh

Exchange a refresh_token for an access_token

ebay_commerce_charity.oauthRefresh(null, context)

Input

This action has no parameters

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

getCharityOrgs

This call is used to search for supported charitable organizations. It allows users to search for a specific charitable organization, or for multiple charitable organizations, from a particular charitable domain and/or geographical region, or by using search criteria. The call returns paginated search results containing the charitable organizations that match the specified criteria.

ebay_commerce_charity.getCharityOrgs({
  "X-EBAY-C-MARKETPLACE-ID": ""
}, context)

Input

  • input object
    • limit string: The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
    • offset string: The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Valid Values: 0-10,000 Default: 0
    • q string: A query string that matches the keywords in name, mission statement, or description.
    • registration_ids string: A comma-separated list of charitable organization registration IDs. Note: Do not specify this parameter for query-based searches. Specify either the q or registration_ids parameter, but not both. Maximum Limit: 20
    • X-EBAY-C-MARKETPLACE-ID required string: A header used to specify the eBay marketplace ID. Valid Values: EBAY_GB and EBAY_US

Output

getCharityOrgByLegacyId

This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID. The legacy charity ID is separate from eBay’s generic charity ID.

ebay_commerce_charity.getCharityOrgByLegacyId({
  "X-EBAY-C-MARKETPLACE-ID": "",
  "legacy_charity_org_id": ""
}, context)

Input

  • input object
    • X-EBAY-C-MARKETPLACE-ID required string: A header used to specify the eBay marketplace ID. Valid Values: EBAY_GB and EBAY_US
    • legacy_charity_org_id required string: The legacy ID of the charitable organization. Note: The legacy charity ID is the identifier assigned to an organization upon registration with the PayPal Giving Fund (PPGF). It has also been referred to as the external ID/charity number.

Output

getCharityOrg

This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID. The call returns the full details for the charitable organization that matches the specified ID.

ebay_commerce_charity.getCharityOrg({
  "charity_org_id": "",
  "X-EBAY-C-MARKETPLACE-ID": ""
}, context)

Input

  • input object
    • charity_org_id required string: The unique ID of the charitable organization.
    • X-EBAY-C-MARKETPLACE-ID required string: A header used to specify the eBay marketplace ID. Valid Values: EBAY_GB and EBAY_US

Output

Definitions

Address

  • Address object: The physical location of the item.
    • city string: The city of the charitable organization.
    • country string: The two-letter ISO 3166 standard of the country of the address. For implementation help, refer to eBay API documentation
    • postalCode string: The postal code of the charitable organization.
    • stateOrProvince string: The state or province of the charitable organization.

CharityOrg

  • CharityOrg object: The full location, ID, logo and other details of the charity organization.
    • charityOrgId string: The ID of the charitable organization.
    • description string: The description of the charitable organization.
    • location Location
    • logoImage Image
    • missionStatement string: The mission statement of the charitable organization.
    • name string: The name of the charitable organization.
    • registrationId string: The registration ID for the charitable organization. For the US marketplace, this is the EIN.
    • website string: The link to the website for the charitable organization.

CharitySearchResponse

  • CharitySearchResponse object: A single set of search results, with information for accessing other sets.
    • charityOrgs array: The list of charitable organizations that match the search criteria.
    • href string: The relative path to the current set of results.
    • limit integer: The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
    • next string: The relative path to the next set of results.
    • offset integer: The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. For example, if the offset is set to 0 and the limit is set to 10, the method will retrieve items 1 through 10 from the list of items returned. If the offset is set to 10 and the limit is set to 10, the method will retrieve items 11 through 20 from the list of items returned. Valid Values: 0-10,000 Default: 0
    • prev string: The relative path to the previous set of results.
    • total integer: The total number of matches for the search criteria.

Error

  • Error object: This type defines the fields that can be returned in an error.
    • parameters array: An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.
    • category string: Identifies the type of erro.
    • domain string: Name for the primary system where the error occurred. This is relevant for application errors.
    • errorId integer: A unique number to identify the error.
    • inputRefIds array: An array of request elements most closely associated to the error.
      • items string
    • longMessage string: A more detailed explanation of the error.
    • message string: Information on how to correct the problem, in the end user's terms and language where applicable.
    • outputRefIds array: An array of request elements most closely associated to the error.
      • items string
    • subdomain string: Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc.

ErrorParameter

  • ErrorParameter object
    • name string: The object of the error.
    • value string: The value of the object.

GeoCoordinates

  • GeoCoordinates object: Defines the format of a geographic coordinate.
    • latitude number: The latitude component of the geographic coordinate.
    • longitude number: The longitude component of the geographic coordinate.

Image

  • Image object: The logo of the charitable organization.
    • height string: The height of the logo image.
    • imageUrl string: The URL to the logo image location.
    • width string: The width of the logo image.

Location