> ## 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](./grant-from-daf). Trigger when the user searches for a charity to support.

This step can run before or after [Fund a DAF](./donate-to-daf)—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](/developers/api/nonprofit-organizations/search-organizations)

See also: [Nonprofit Organizations](/developers/api/nonprofit-organizations/search-organizations) 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](/developers/api/nonprofit-organizations/get-organization-by-ein) 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](./grant-from-daf)
