API & agents
Everything the website does is available to programs and assistants. Ask Claude or ChatGPT to “make me a list of London's best burgers and export it for Google Maps”, and it can do exactly that.
Use it from Claude or ChatGPT (MCP)
Add this as a connector (streamable HTTP). Claude, ChatGPT and other hosts sign you in with OAuth — no key needed. Setup for each client, including an Add to Claude button, is on the MCP server page.
https://favourite.place/api/mcpUse it from your own code (REST)
An OpenAPI 3.1 description lives at /api/v1/openapi.json, which can be pasted straight into a ChatGPT custom GPT Action.
# create a list — it belongs to whoever the key belongs to
curl -X POST https://favourite.place/api/v1/lists \
-H "Authorization: Bearer $FAVOURITE_PLACE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"title":"London'"'"'s Best Burgers","place":"London"}'
# add a place — by name; the best Google match is used
curl -X POST https://favourite.place/api/v1/lists/fim/londons-best-burgers/places \
-H "Authorization: Bearer $FAVOURITE_PLACE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"query":"Bleecker Burger","note":"Get the double cheeseburger"}'
# export it — public lists need no credential at all
curl https://favourite.place/api/v1/lists/fim/londons-best-burgers/export/kml -o burgers.kmlAuthorisation
One credential. An API key (fp_…) says who is calling, and it acts as the person it belongs to. What that person owns decides what the key may change — there is no separate per-list token.
Create one in Settings. It is shown once; only its hash is stored, so a lost key is replaced rather than recovered.
MCP hosts use OAuth instead. The MCP endpoint also accepts OAuth 2.1 access tokens (PKCE, dynamic client registration, discovery at /.well-known/oauth-protected-resource), so apps connect by signing you in rather than holding a key.
The browser does not use one. The website is signed in with a session cookie, and every route accepts either — so the pages you use and the endpoints an agent calls are the same code.
One exemption, and it is narrow: fetching or exporting a single public list needs no credential, because a shared link has to work for whoever receives it and the download buttons on a shared page use those routes. It does not extend to enumeration — GET /api/v1/lists requires a key.
About exporting to Google Maps
Google publishes no API for writing places into a user's saved lists, and never has. Anything claiming to “sync a list into Google Maps” is really doing one of two things, and so are we:
- Optionally plan the list as a route. When its owner enables route mode,
route_for_listreturns one Google Maps walking itinerary. The mobile-safe link includes up to five places; a longer list reports how many were omitted. - Import a file into Google My Maps. The KML export is built for this. The map then appears in the Google Maps phone app under Saved → Maps. Limit: 2,000 places per layer.
- Open each place and save it. Every place in the API carries a
googleMapsUrlbuilt from its Google place id, so it opens the exact restaurant rather than a fuzzy search.
For pins that work with no signal, use the GPX export with Organic Maps or OsmAnd — My Maps layers need a connection.