Non Profits
The Daffy API let's you get information about Non Profits
Get Non Profit by EIN
Resource
GET /v1/non_profits/:ein
Path Params
Name | Type | Description |
---|---|---|
ein | string | Non Profit EIN |
Sample Response
{
"ein": "261544963",
"name": "Khan Academy",
"website": "https://www.khanacademy.org/",
"city": "Mountain View",
"state": "CA",
"public_path": "/charities/261544963-khan-academy-mountain-view-ca",
"public_url": "https://www.daffy.org/charities/261544963-khan-academy-mountain-view-ca",
"logo": "https://s3.us-west-2.amazonaws.com/production-daffy-static-content/non_profit/logos/4904275",
"cause": {
"id": 1,
"name": "Education",
"color": "#C6ADF8",
"logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Education.png"
},
"causes": [
{
"id": 1,
"name": "Education",
"color": "#C6ADF8",
"logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Education.png"
}
]
}
Response Reference
Name | Type | Description |
---|---|---|
ein | string | The EIN number of the organization |
name | string | The name of the organization |
website | string | The website URL of the organization |
city | string | The city where the organization is based |
state | string | The state where the organization is based |
public_url | string | The public URL of the organization on Daffy |
latitude | number | The latitude coordinate of the organization |
longitude | number | The longitude coordinate of the organization |
logo | string | The URL of the logo of the organization |
cause.id | number | The ID of the main cause |
cause.name | string | The name of the main cause |
cause.color | string | The hex color associated with the cause |
cause.logo | string | The URL of the cause's logo |
causes | array | The array of all causes related to this organization |
Sample Request
curl "https://public.daffy.org/v1/non_profits/261544963" -H 'X-Api-Key: <YOUR KEY HERE>'
Search Non Profits
Resource
GET /v1/non_profits?cause_id=1&query=trees
Query Params
Name | Type | Description |
---|---|---|
cause_id | number | Cause ID |
query | string | Text to search |
Sample Response
{
"meta": {
"count": 1440,
"page": 1,
"last": 72
},
"items": [
{
"ein": "813379802",
"name": "Goals and Assists Foundation",
"website": null,
"city": "Philadelphia",
"state": "PA",
"public_path": "/charities/813379802-goals-and-assists-foundation-philadelphia-pa",
"public_url": "https://www.daffy.org/charities/813379802-goals-and-assists-foundation-philadelphia-pa",
"latitude": null,
"longitude": null,
"cause": {
"id": 1,
"name": "Education",
"color": "#C6ADF8",
"logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Education.png"
},
"logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Education.png",
"causes": [
{
"id": 1,
"name": "Education",
"color": "#C6ADF8",
"logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Education.png"
}
]
},
...
]
}
Domain objects live under the items
key, see pagination for more details.
Response Reference
Name | Type | Description |
---|---|---|
id | number | The ID of the organization |
ein | string | The EIN number of the organization |
name | string | The name of the organization |
website | string | The website URL of the organization |
city | string | The city where the organization is based |
state | string | The state where the organization is based |
public_url | string | The public URL of the organization on Daffy |
latitude | number | The latitude coordinate of the organization |
longitude | number | The longitude coordinate of the organization |
logo | string | The URL of the logo of the organization |
cause.id | number | The ID of the main cause |
cause.name | string | The name of the main cause |
cause.color | string | The hex color associated with the cause |
cause.logo | string | The URL of the cause's logo |
causes | array | The array of all causes related to this organization |
Sample Request
curl "https://public.daffy.org/v1/non_profits?cause_id=1&query=assist" -H 'X-Api-Key: <YOUR KEY HERE>'