Get organizations by identifier
curl --request POST \
--url https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"identifiers": [
"530196605",
"13-1624102",
"550e8400-e29b-41d4-a716-446655440000"
]
}
'import requests
url = "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup"
payload = { "identifiers": ["530196605", "13-1624102", "550e8400-e29b-41d4-a716-446655440000"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identifiers: ['530196605', '13-1624102', '550e8400-e29b-41d4-a716-446655440000']
})
};
fetch('https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identifiers' => [
'530196605',
'13-1624102',
'550e8400-e29b-41d4-a716-446655440000'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup"
payload := strings.NewReader("{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"orgs": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ein": "530196605",
"name": "American Red Cross",
"description": "Providing disaster relief and emergency assistance",
"address": {
"line1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "USA"
},
"website": "https://www.redcross.org",
"logo": "https://example.com/logo.png",
"nteeCode": "E91",
"nteeDescription": "Nursing, Convalescent (Geriatric and Nursing)",
"featuredIndex": 100,
"claimedDateUtc": "2024-03-20T10:30:00Z",
"claimedType": "DIRECT",
"claimed": true,
"contractAddress": "0x1234567890123456789012345678901234567890",
"deployments": [
{
"chainId": 1,
"contractAddress": "0x1234567890123456789012345678901234567890",
"usdcBalance": "2000000",
"isDeployed": true
}
],
"compliant": true,
"isCompliant": true,
"nonComplianceReasons": null,
"lifetimeContributionsUsdc": "1000000",
"usdcBalance": "2000000",
"financials": {
"form990FiscalYear": null,
"summary": {
"totalLiabilities": null,
"totalAssets": null,
"contributionsAll": null,
"totalExpenses": null,
"totalRevenue": null,
"netIncome": null
},
"expenses": {}
},
"socials": {
"twitter": null,
"facebook": null,
"linkedin": null,
"instagram": null
},
"staffNotes": null,
"paypalId": null,
"partnerId": null,
"donationsReceived": 42,
"grantsReceived": 7
}
],
"notFound": [
"131624102"
]
}Partner Endpoints
Get organizations by identifier
Resolves up to 25 organizations in a single request. Each identifier is either an EIN, with or without the hyphen, or an Endaoment organization id. Identifiers that are well-formed but do not resolve are returned in notFound; a malformed identifier fails the whole request with a 400.
POST
/
v1
/
orgs
/
partner
/
batch-lookup
Get organizations by identifier
curl --request POST \
--url https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"identifiers": [
"530196605",
"13-1624102",
"550e8400-e29b-41d4-a716-446655440000"
]
}
'import requests
url = "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup"
payload = { "identifiers": ["530196605", "13-1624102", "550e8400-e29b-41d4-a716-446655440000"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identifiers: ['530196605', '13-1624102', '550e8400-e29b-41d4-a716-446655440000']
})
};
fetch('https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identifiers' => [
'530196605',
'13-1624102',
'550e8400-e29b-41d4-a716-446655440000'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup"
payload := strings.NewReader("{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dev.endaoment.org/v1/orgs/partner/batch-lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identifiers\": [\n \"530196605\",\n \"13-1624102\",\n \"550e8400-e29b-41d4-a716-446655440000\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"orgs": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ein": "530196605",
"name": "American Red Cross",
"description": "Providing disaster relief and emergency assistance",
"address": {
"line1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94105",
"country": "USA"
},
"website": "https://www.redcross.org",
"logo": "https://example.com/logo.png",
"nteeCode": "E91",
"nteeDescription": "Nursing, Convalescent (Geriatric and Nursing)",
"featuredIndex": 100,
"claimedDateUtc": "2024-03-20T10:30:00Z",
"claimedType": "DIRECT",
"claimed": true,
"contractAddress": "0x1234567890123456789012345678901234567890",
"deployments": [
{
"chainId": 1,
"contractAddress": "0x1234567890123456789012345678901234567890",
"usdcBalance": "2000000",
"isDeployed": true
}
],
"compliant": true,
"isCompliant": true,
"nonComplianceReasons": null,
"lifetimeContributionsUsdc": "1000000",
"usdcBalance": "2000000",
"financials": {
"form990FiscalYear": null,
"summary": {
"totalLiabilities": null,
"totalAssets": null,
"contributionsAll": null,
"totalExpenses": null,
"totalRevenue": null,
"netIncome": null
},
"expenses": {}
},
"socials": {
"twitter": null,
"facebook": null,
"linkedin": null,
"instagram": null
},
"staffNotes": null,
"paypalId": null,
"partnerId": null,
"donationsReceived": 42,
"grantsReceived": 7
}
],
"notFound": [
"131624102"
]
}Authorizations
Headers
Partner API key used for authentication
Body
application/json
Organization identifiers. Each entry is either an EIN, with or without the hyphen, or an Endaoment organization id.
Required array length:
1 - 25 elementsExample:
[
"530196605",
"13-1624102",
"550e8400-e29b-41d4-a716-446655440000"
]
Response
Organizations that resolved, plus the identifiers that did not
Was this page helpful?