propublica-nonprofit-explorer-sdk
v3.0.0
Published
SDK for ProPublica Nonprofit Explorer API
Downloads
9
Readme
SDK for the ProPublica Nonprofit Explorer API
This is an SDK for the ProPublica Nonprofit Explorer API.
Disclaimer: This SDK is not officially supported by ProPublica and I am not affiliated with ProPublica in any way.
Usage
Get an Organization by EIN
const client = new Client();
const response = await client.organization(142007220);Search for an Organization
Note:
num_pagesis one-indexed butcur_pageis zero-indexed. This is part of the API, so I do not change it.
const client = new Client();
const response = await client.search({
q: 'propublica',
page: 0,
'state[id]': 'NY',
'ntee[id]': 1,
'c_code[id]': 3,
});