DEV Community

Tarek Etman for SpecStream

Posted on

Querying US Private Foundations and IRS Form 990-PF Grantmakers With Python ($15 to $49)

Grant seekers and fundraising teams spend hours reading Form 990-PF returns to find which private foundations fund their cause, in their state, at a grant size they can win. This guide does that work in pandas, on an open sample of 5,000 US private foundations drawn from their latest IRS Form 990-PF returns.

The sample is free under CC BY 4.0: Zenodo (DOI 10.5281/zenodo.24826828), Hugging Face, Kaggle and GitHub. It comes from the 129,222 private foundations and 2,471,755 grants on SpecStream.

1. Load the file

import pandas as pd

URL = "https://huggingface.co/datasets/SpecStreamAI/us-foundations-grantmakers-990pf-2026/resolve/main/us_foundations_grantmakers_990pf_2026.parquet"
df = pd.read_parquet(URL)
df["typical_grant_usd"] = df["typical_grant_usd"].astype("Int64")
print(df.shape)
print(f"${df.total_assets_usd.sum()/1e9:,.2f}B assets, ${df.grants_paid_latest_year_usd.sum()/1e9:,.2f}B paid")
Enter fullscreen mode Exit fullscreen mode
(5000, 17)
$370.67B assets, $23.27B paid
Enter fullscreen mode Exit fullscreen mode

Each row is one foundation: EIN, legal name, city and state, total assets, grants paid in the latest year, the number of grants listed, the typical (median) grant, the causes it funds, its NTEE code, the IRS record and its grants page on SpecStream.

2. How much foundations pay out

bands = pd.cut(df["grants_paid_latest_year_usd"],
               [0, 100_000, 500_000, 1_000_000, 10_000_000, 10**12],
               labels=["under $100K", "$100K to $500K", "$500K to $1M", "$1M to $10M", "$10M and up"])
print(bands.value_counts().sort_index())
Enter fullscreen mode Exit fullscreen mode
grants_paid_latest_year_usd
under $100K       2009
$100K to $500K    1333
$500K to $1M       336
$1M to $10M        942
$10M and up        380
Enter fullscreen mode Exit fullscreen mode

The 1,000 largest grantmakers are all in the sample, so 380 foundations pay $10 million or more a year. The rest are spread down to small family foundations, which is where most first grants are won.

3. Education funders in California with a $25,000 to $100,000 typical grant

ca = df[(df.state == "CA")
        & df.causes_funded.str.contains("Education")
        & df.typical_grant_usd.between(25_000, 100_000)]
print(len(ca))
print(ca.nlargest(6, "grants_paid_latest_year_usd")[
    ["foundation", "city", "grants_paid_latest_year_usd", "typical_grant_usd"]])
Enter fullscreen mode Exit fullscreen mode
62
                        foundation          city  grants_paid_latest_year_usd  typical_grant_usd
                   Rippleworks Inc San Francisco                    153837539             100000
          The California Endowment   Los Angeles                    141467127             100000
                Resnick Foundation   Los Angeles                     78301329              25000
           The Ahmanson Foundation Beverly Hills                     68985498              50000
Wayne and Gladys Valley Foundation       Oakland                     63067474              50000
       The Karsh Family Foundation Beverly Hills                     47968051              25000
Enter fullscreen mode Exit fullscreen mode

Change the state, the cause and the grant band to fit your program, and the list is your prospect list.

4. Payout rate against assets

Private foundations must pay out about 5% of their investment assets each year. Grants paid over total assets is a quick check of who gives above that line.

big = df[df.total_assets_usd >= 10_000_000].copy()
big["payout_pct"] = 100 * big.grants_paid_latest_year_usd / big.total_assets_usd
print(len(big), "with $10M+ assets; median payout", round(big.payout_pct.median(), 1), "%")
print(big.groupby("state").payout_pct.agg(["size", "median"])
         .query("size >= 40").sort_values("median", ascending=False).round(1).head(8))
Enter fullscreen mode Exit fullscreen mode
1321 with $10M+ assets; median payout 4.8 %
       size  median
state              
MA       45     5.8
NY      175     5.2
CA      121     4.9
NJ       42     4.8
IL       76     4.7
TX      105     4.6
FL      112     4.6
OH       48     4.5
Enter fullscreen mode Exit fullscreen mode

5. Causes and typical grant size

c = df.assign(cause=df.causes_funded.str.split("; ")).explode("cause")
c = c[c.cause.fillna("") != ""]
top = (c.groupby("cause")
         .agg(foundations=("ein", "size"), median_typical=("typical_grant_usd", "median"))
         .sort_values("foundations", ascending=False).head(8))
print(top.astype(int))
Enter fullscreen mode Exit fullscreen mode
                                                       foundations  median_typical
cause                                                                             
Education                                                     2345           10000
Human services                                                1704           10000
Arts, culture and humanities                                  1520           10000
Philanthropy, voluntarism and grantmaking foundations         1096           10000
Health care                                                    913           10000
International, foreign affairs and national security           679            8500
Environment                                                    657            8000
Religion-related                                               584            6195
Enter fullscreen mode Exit fullscreen mode

6. The foundations' own NTEE codes

print(df.ntee_code.str[:3].replace("", "none").value_counts().head(6))
Enter fullscreen mode Exit fullscreen mode
ntee_code
none    1509
T20     1398
T22     1127
T21      137
B82      109
T90       97
Enter fullscreen mode Exit fullscreen mode

T20 (private grantmaking foundations) and T22 (private independent foundations) cover most of the file. B82 marks scholarship funds, which give to students rather than organizations.

7. New York arts funders that give many grants

ny = df[(df.state == "NY") & df.causes_funded.str.contains("Arts")]
print(ny.nlargest(5, "grants_listed_latest_return")[
    ["foundation", "grants_listed_latest_return", "typical_grant_usd", "specstream_foundation_url"]])
Enter fullscreen mode Exit fullscreen mode
                      foundation  grants_listed_latest_return  typical_grant_usd                                                                specstream_foundation_url
  Select Equity Group Foundation                          850               1500   https://specstream.ai/data/funders/foundation/select-equity-group-foundation-137221529
      The Shubert Foundation Inc                          671              40000       https://specstream.ai/data/funders/foundation/the-shubert-foundation-inc-136106961
Carnegie Corporation of New York                          558             233400 https://specstream.ai/data/funders/foundation/carnegie-corporation-of-new-york-131628151
            Pinkerton Foundation                          463              75000             https://specstream.ai/data/funders/foundation/pinkerton-foundation-136206624
           Surdna Foundation Inc                          397              90000            https://specstream.ai/data/funders/foundation/surdna-foundation-inc-136108163
Enter fullscreen mode Exit fullscreen mode

Each link opens the foundation's grants on SpecStream, recipient by recipient.

From $15 to $49 for the full data

The sample stops at 5,000 foundations. The full data covers every one:

  • Foundation grants: 129,222 private foundations and 2,471,755 grants, with a page for every cause in every state. The newest 100 rows are $15. The Monthly Pro Pass is $49 a month for 5,000 rows a month and API access.
  • Nonprofit organizations: 737,995 US tax exempt organizations with revenue, expenses and assets by year.
  • The Search API reads a foundation's site or a grantee's news from the live web, with a source for each value. Search packs start at 80,000 fast searches for $49, paid once.

New accounts get $2 of credit with no card. The GitHub repository has a standard library script to find foundations by state, cause, assets and grant size.

Top comments (0)