> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endaoment.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Find a Nonprofit

> Search Endaoment organizations to recommend grants.

## Outcome

Your app has one or more matching nonprofit organizations. Store the selected org `id` for grant submission.

## When

Before [Recommend a Grant](https://docs.endaoment.org/developers/quickstart/grant-from-daf.md). Trigger when the user searches for a charity to support.

This step can run before or after [Fund a DAF](https://docs.endaoment.org/developers/quickstart/donate-to-daf.md)—grants require both a fund and an organization.

## Auth

**None.** Organization search is a public endpoint.

You may call it from your backend or client. Prefer a backend call if you want to add caching, logging, or rate-limit handling consistently with other flows.

## Endpoint

`GET /v2/orgs/search?searchTerm={term}`

API reference: [Search organizations](https://docs.endaoment.org/developers/api/nonprofit-organizations/search-organizations.md)

See also: [Nonprofit Organizations](https://docs.endaoment.org/developers/api/nonprofit-organizations/search-organizations.md) in API reference.

## Required inputs

| Param | Description |
| - | - |
| `searchTerm` | Name, EIN, or keyword to search |

Additional filters are documented in the API reference.

## Example request

```bash theme={null}
curl "https://api.dev.endaoment.org/v2/orgs/search?searchTerm=red+cross"
```

## Response you need

From the results array, persist:

| Field | Use |
| - | - |
| `id` | Organization ID for grant submission |
| `name` | Display name in your UI |
| `ein` | Optional verification display |

## Common mistakes

* Assuming search requires a Bearer token
* Using EIN lookup endpoints when keyword search is sufficient (see [Get organization by EIN](https://docs.endaoment.org/developers/api/nonprofit-organizations/get-organization-by-ein.md) for direct EIN lookup)
* Granting without confirming the org `id` from search results

## Full sample

Reference UI patterns: [GitHub quickstart frontend](https://github.com/endaoment/endaoment-integration-docs/tree/main/quickstart/frontend).

**Next:** [Recommend a Grant](https://docs.endaoment.org/developers/quickstart/grant-from-daf.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.