# maxResultCount on POST /v1/places:searchText is deprecated

Google Places API (New) deprecated POST /v1/places:searchText, body parameter maxResultCount without giving a shutdown date yet.

Google Places API (New) deprecated the body parameter maxResultCount on POST /v1/places:searchText as of May 13, 2024, without announcing a shutdown date. The provider made this change to better meet developer needs. Calls that continue to rely on this parameter will eventually fail once it is fully removed.

## What to use instead

Use pageSize to set the number of results per page.

- API: Google Places API (New) (places.googleapis.com)
- Kind: Endpoint removal
- Announced: May 13, 2024
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/places:searchText`, `body parameter maxResultCount`
- Source: [Announcement](https://developers.google.com/maps/documentation/places/web-service/release-notes)
- Verified: October 26, 2026, against Google Places API (New)'s own pages
- Page: https://www.okapi.bot/providers/google-places-api-new/breaking-changes/maxresultcount-on-post-v1-places-searchtext-is-deprecated/

## Google Places API (New)'s words

> To better meet developer needs, the Text Search (New) field maxResultCount in the Places API (New) is deprecated as of May 13, 2024.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
