post https://api.your-cause.com/v1/groups/programs//search
<div>
<p>
This endpoint allows you to search for a Group page within a specific Group Program. To get a list of all the programs for a client, use the /programs endpoint in the reference below.
<br /><br />
Once you have the groupProgramId, you can construct a request to search the Program. In the body of the request, provide the search term, page number, and pageSize. The <strong>term</strong> is the string which the API will use to search for the group page name. The <strong>page</strong> is the page number of the paginated results you want to pull. The <strong>pageSize</strong> is the number of results per page. There is a limit of 25 results per page.
<br /><br />
The <strong>includeVirtual</strong> param is optional. If set to true, groups with no defined location will be included in your results. The default value is false.
<br /><br />
To search by location, you can use the optional <strong>distanceInMiles</strong>, <strong>latitude</strong>, and <strong>longitude</strong> params. By passing a lat and long, your result set will contain groups within a 50 mile radius of the location. If you wish to change the search radius, use the distanceInMiles param to define a different search radius.
<br /><br />
For each valid request, the api will return a payload of group pages and their primary details.
</p>
<br />
<br />
</div>