API reference · v1.0.0
Fairplace API
The /v1 API used by the Fairplace web app, the iPhone app and, later, API customers. Changes within /v1 are additive only (ADR 0006): new routes, new response fields and new optional request fields. Enums are open: handle unknown values of status, error, code, category and mode, because new ones can appear without a version change.
Base URL https://halfway-510801.web.app/v1. Requests and replies are JSON with camelCase field names.
The meeting-points endpoint for partners, with API keys and usage plans, is planned for V1. Until then this page covers the endpoints the Fairplace apps use.
Authentication
There are no user accounts. Each route lists the headers it needs.
Authorization: BearerA participant or host token from create or join.X-Firebase-AppCheckA Firebase App Check token. Only Fairplace's own web and iPhone apps can get one.X-Api-KeyA partner API key issued by Fairplace.
Errors
Every error is an RFC 9457 problem, sent as application/problem+json. Switch on code, never on detail. A request that breaks the rules below is a 400 with invalid_request; each route lists its other codes.
typestringrequired
titlestringrequired
statusintegerrequired
detailstringrequired
A sentence that is safe to show to people.
codestringrequired
Stable, machine-readable reason. Clients switch on this, never on detail.
requestIdstringrequired
Rate limits
Limits are per IP address, per route group. Every limited reply carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds). Over the limit, the reply is a 429 with Retry-After and the code rate_limited. Each route below states its limit.
Sessions
A meetup: people join with their start points and get places ranked by how fair the trip is for each of them.
Start a meetup
POST/v1/sessions
Send X-Firebase-AppCheck or X-Api-Key
Creates a meetup with the host's start point and travel mode, and what it is for: a category, free text in query, or both. Returns the session, a hostToken (needed to change the meetup) and a participantToken (the host's own seat). Share the session id with the other person so they can join. The host's location is stored only to compute travel times and is never returned to anyone. Fairplace works in the United States for now. Errors: outside_us (400) when the start point is outside the US.
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 10 requests per hour per IP (per key for partners).
Request body
Send at least one of: query, category.
namestring
Shown to the other people in the meetup.
Up to 40 characters
locationobjectrequired
Where this person starts from. Used only to compute travel times; never returned.
latnumberrequired
-90 to 90
lngnumberrequired
-180 to 180
modestringrequired
How this person travels.
One of: "drive", "walk", "bike", "transit"
querystring
Free text, such as "ramen" or "quiet bar".
Up to 60 characters
categorystring
Limits the search to one kind of place.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
{
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"mode": "drive",
"query": "quiet patio",
"category": "coffee"
}Reply · 201
Show 53 fields
sessionobjectrequired
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
hostTokenstringrequired
Lets the host change the meetup. Keep it secret.
participantTokenstringrequired
The host's own seat: send it to read, pick and give feedback. Keep it secret.
{
"session": {
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
},
"hostToken": "string",
"participantToken": "string"
}Get a meetup
GET/v1/sessions/{id}
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
The current state of a meetup: who has joined (names only), status, the ranked results and the pick. Poll this while status is computing. Send your participant token as a bearer token to get your own me entry; without one, me is null. A leg with fallbackMode: "drive" means transit or bike reached none of the places, so that person's minutes are by car. When status is no_results, noResultsReason says whether no places matched or none could be reached. Never includes anyone's start point. Replies with Cache-Control: no-store. Errors: session_not_found (404) when it never existed or has expired.
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 120 requests per minute per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Change what the meetup is for
PATCH/v1/sessions/{id}
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
Host only (send the hostToken). Changes the category, the free-text query, or both, and recomputes the results when everyone is in. Errors: not_the_host (403), too_many_recomputes (429).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 20 requests per hour per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Request body
Send at least one of: query, category.
querystring
Free text, such as "ramen" or "quiet bar".
Up to 60 characters
categorystring
Limits the search to one kind of place.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
{
"query": "quiet patio",
"category": "coffee"
}Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Join a meetup
POST/v1/sessions/{id}/participants
Send X-Firebase-AppCheck or X-Api-Key
Adds the guest with their start point and travel mode, and returns their participantToken. When everyone is in, the fair places are computed before the reply, so the session usually comes back ready; with real travel times that can take 10 seconds or more, so show a progress screen as soon as the request is sent. startsApartKm is set when the two starts are more than 150 km apart. Send an Idempotency-Key header and reuse it when you retry after a dropped connection: if the first attempt went through, the retry returns the same seat and participantToken (and the session as it is now, possibly still computing, so poll it) instead of session_full. Errors: outside_us (400) when the start point is outside the US, session_full (409), session_not_found (404), too_many_recomputes (429).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 20 requests per hour per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
idempotency-keystring (header)
Optional. A random value (such as a UUID) made once per join attempt and sent again on every retry of it. A retry of a join that already went through returns the same seat and `participantToken` instead of `session_full`. Keep it as secret as the token.
Matches ^[A-Za-z0-9_-]{32,128}$
Request body
namestring
Shown to the other people in the meetup.
Up to 40 characters
locationobjectrequired
Where this person starts from. Used only to compute travel times; never returned.
latnumberrequired
-90 to 90
lngnumberrequired
-180 to 180
modestringrequired
How this person travels.
One of: "drive", "walk", "bike", "transit"
{
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"mode": "drive"
}Reply · 201
Show 52 fields
sessionobjectrequired
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
participantTokenstringrequired
Your seat in the meetup. Keep it secret.
{
"session": {
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
},
"participantToken": "string"
}Update my details
PATCH/v1/sessions/{id}/participants/me
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
Changes your own name, start point or travel mode (send at least one). Results are recomputed when your start point or mode actually changes and everyone is in; each recompute counts toward the meetup's limit of 5 computations. Errors: outside_us (400) when the new start point is outside the US, not_a_participant (403), too_many_recomputes (429).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 20 requests per hour per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Request body
Send at least 1 field.
namestring
Shown to the other people in the meetup.
Up to 40 characters
locationobject
Where this person starts from. Used only to compute travel times; never returned.
latnumberrequired
-90 to 90
lngnumberrequired
-180 to 180
modestring
How this person travels.
One of: "drive", "walk", "bike", "transit"
{
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"mode": "drive"
}Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Pick a place
POST/v1/sessions/{id}/pick
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
Any participant picks one of the results by its venue.id. Sets pickedVenueId and pickedBy for everyone. Errors: not_a_participant (403), unknown_venue (400).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 60 requests per minute per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Request body
venueIdstringrequired
The venue.id of one of the results.
1 to 300 characters
{
"venueId": "string"
}Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Record a directions tap
POST/v1/sessions/{id}/directions
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
Records that a participant opened directions to one of the results, for product metrics. Replies 204 with no body. Errors: not_a_participant (403), unknown_venue (400).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 60 requests per minute per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Request body
venueIdstringrequired
The venue.id of one of the results.
1 to 300 characters
{
"venueId": "string"
}Reply · 204
No body.
Rate how fair a place felt
POST/v1/sessions/{id}/feedback
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
A participant answers "Did this spot feel fair to you?" for one of the results, with an optional comment of up to 140 characters. Your answer comes back in me.feedback and is never shown to the other person. Errors: not_a_participant (403), unknown_venue (400).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 60 requests per minute per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Request body
venueIdstringrequired
The venue.id of one of the results.
1 to 300 characters
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring
Optional. Kept anonymously.
Up to 140 characters
sortstring
One of: "fair", "fast", "rated"
{
"venueId": "string",
"rating": "yes",
"comment": "string",
"sort": "fair"
}Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Retry the results
POST/v1/sessions/{id}/recompute
Send X-Firebase-AppCheck and Authorization: Bearer or X-Api-Key and Authorization: Bearer
Retries a computation that failed, found nothing or got stuck. Counts toward the meetup's limit of 5 computations. Errors: not_recomputable (409) when there is nothing to retry, too_many_recomputes (429).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 20 requests per hour per IP (per key for partners).
Parameters
idstring (path)required
Matches ^[A-Za-z0-9_-]{22}$
Reply · 200
Show 50 fields
idstringrequired
querystringrequired
Free text, or "" when only a category was chosen.
categorystring | nullrequired
What the search was limited to. Null for free-text meetups.
One of: "coffee", "bar", "food_grab_and_go", "food_quick", "food_casual", "food_fine", "park"
statusstringrequired
waiting: not everyone has joined. computing: places are being ranked. ready: results are in. no_results: nothing suitable nearby. error: see error.
One of: "waiting", "computing", "ready", "no_results", "error"
errorstring | nullrequired
Set when status is "error". "busy" means today's capacity is used up, or Google turned us away for quota, so retrying soon won't help (and doesn't count toward the 5 computations); "failed" can be retried.
One of: "busy", "failed"
retryAtdate-time | nullrequired
With error "busy": when today's capacity resets (the next 00:00 UTC), so a client can say when to come back. A hint, not a promise: there may be room sooner. Null otherwise.
meobject | nullrequired
idstringrequired
rolestringrequired
One of: "host", "guest"
feedbackobject | null
My own answer to "Did this spot feel fair to you?". Never shown to the other person.
venueIdstringrequired
ratingstringrequired
One of: "yes", "somewhat", "no"
commentstring | nullrequired
participantsobject[]required
idstringrequired
namestring | nullrequired
rolestringrequired
One of: "host", "guest"
modestringrequired
One of: "drive", "walk", "bike", "transit"
maxParticipantsintegerrequired
How many people the meetup takes, host included.
startsApartKminteger | nullrequired
Roughly how far apart the start points are, in km, rounded to the nearest 50. Set only when everyone is in and the starts are more than 150 km apart, where results get worse (show a warning); null otherwise. Never precise enough to locate anyone.
resultsobject[]required
rankintegerrequired
1 is the best balance of fair and good.
venueobjectrequired
idstringrequired
The place ID (a Google place ID). Send it to pick, feedback and directions.
namestringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
addressstring
ratingnumber
userRatingCountinteger
priceLevelstring
primaryTypestring
The place type, such as "wine_bar" or "fast_food_restaurant".
mapsUristring
Opens the place in Google Maps.
opensAtdate-time
Only on a place that is closed now: when it next opens.
fairnessobjectrequired
scorenumberrequired
0 to 100: the shortest trip as a share of the longest. 100 means everyone travels the same time.
maxMinutesnumberrequired
The longest trip, in minutes.
spreadMinutesnumberrequired
Longest trip minus shortest, in minutes.
travelobject[]required
participantIdstringrequired
modestringrequired
The travel mode this person chose.
One of: "drive", "walk", "bike", "transit"
fallbackModestring
Only present when the chosen mode (transit or bike) reached none of the places, so the minutes are by car. Show "by car" instead of `mode`.
One of: "drive"
minutesnumberrequired
Travel time from this person's start point, by `fallbackMode` when it is set.
widenedbooleanrequired
The first search found too few places, so these come from a wider area and may be less fair.
noResultsReasonstring | nullrequired
Set only when status is "no_results". "no_venues": no open places of that kind matched. "unreachable": there were places, but not all of them could be reached from both start points (checked after the driving fallback). Meetups stored before this field read as "no_venues".
One of: "no_venues", "unreachable"
pickedVenueIdstring | nullrequired
The venue.id someone picked, or null.
pickedBystring | nullrequired
The participant ID of whoever picked.
createdAtdate-timerequired
expiresAtdate-timerequired
After this the meetup and everyone's start points are deleted.
{
"id": "string",
"query": "quiet patio",
"category": "coffee",
"status": "waiting",
"error": "busy",
"retryAt": "2026-10-10T18:00:00.000Z",
"me": {
"id": "string",
"role": "host",
"feedback": {
"venueId": "string",
"rating": "yes",
"comment": "string"
}
},
"participants": [
{
"id": "string",
"name": "Alex",
"role": "host",
"mode": "drive"
}
],
"maxParticipants": 0,
"startsApartKm": 0,
"results": [
{
"rank": 0,
"venue": {
"id": "string",
"name": "Alex",
"location": {
"lat": 40.7411,
"lng": -73.9897
},
"address": "string",
"rating": 0,
"userRatingCount": 0,
"priceLevel": "string",
"primaryType": "string",
"mapsUri": "string",
"opensAt": "2026-10-10T18:00:00.000Z"
},
"fairness": {
"score": 0,
"maxMinutes": 0,
"spreadMinutes": 0
},
"travel": [
{
"participantId": "string",
"mode": "drive",
"fallbackMode": "drive",
"minutes": 0
}
]
}
],
"widened": false,
"noResultsReason": "no_venues",
"pickedVenueId": "string",
"pickedBy": "string",
"createdAt": "2026-10-10T18:00:00.000Z",
"expiresAt": "2026-10-10T18:00:00.000Z"
}Places
Address search for a start point.
Search addresses
GET/v1/places/autocomplete
Send X-Firebase-AppCheck or X-Api-Key
Address suggestions while someone types their start point. Pass the same sessionToken (any URL-safe string up to 36 characters) for every keystroke and the details call that ends the search, so they are billed as one search. Errors: address_search_unavailable (503).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 60 requests per minute per IP (per key for partners).
Parameters
inputstring (query)required
What the person has typed so far.
1 to 100 characters
sessionTokenstring (query)
One value per address search, from the first keystroke to the resolve call, so Google bills it as one search.
Matches ^[A-Za-z0-9_-]{1,36}$
Reply · 200
Show 4 fields
suggestionsobject[]required
placeIdstringrequired
primaryTextstringrequired
secondaryTextstringrequired
{
"suggestions": [
{
"placeId": "string",
"primaryText": "string",
"secondaryText": "string"
}
]
}Resolve an address
GET/v1/places/{placeId}
Send X-Firebase-AppCheck or X-Api-Key
Turns a suggestion's placeId into a label and coordinates for the person searching, to use as their start point. The answer goes only to them. Replies with Cache-Control: no-store. Errors: place_not_found (404), address_search_unavailable (503).
Needs a registered app: X-Firebase-AppCheck from the Fairplace apps, or X-Api-Key from a partner. Errors: unverified_app (401) without a valid App Check token, invalid_api_key (401) for an unknown key.
Rate limit: 60 requests per minute per IP (per key for partners).
Parameters
sessionTokenstring (query)
One value per address search, from the first keystroke to the resolve call, so Google bills it as one search.
Matches ^[A-Za-z0-9_-]{1,36}$
placeIdstring (path)required
Matches ^[A-Za-z0-9_-]{1,512}$
Reply · 200
Show 5 fields
placeIdstringrequired
labelstringrequired
locationobjectrequired
latnumberrequired
lngnumberrequired
{
"placeId": "string",
"label": "string",
"location": {
"lat": 40.7411,
"lng": -73.9897
}
}Meta
About the service itself.
Service info
GET/v1/meta
No credentials needed.
fakeData is true when the API runs on offline fake places and travel times (local development only). The deployed API always answers false. minAppVersion.ios is the oldest iPhone app version the API still supports; an older build should ask its user to update. It is null when every version is supported.
Reply · 200
Show 3 fields
fakeDatabooleanrequired
minAppVersionobjectrequired
The oldest app version this API still supports, per platform. An older app should ask its user to update.
iosstring | nullrequired
Oldest supported iPhone app version (semver, e.g. 1.2.0), or null when every version is supported.
{
"fakeData": false,
"minAppVersion": {
"ios": "string"
}
}