WayFy’s Utils API provides two lightweight enrichment endpoints used by the frontend to enhance place cards and trip share previews. The OG image endpoint extracts social preview images from any URL, enabling rich link previews when users share trips. The Google Photo endpoint fetches a street-level or venue photo from the Google Places API v1 for any named location, giving WayFy place cards a visual context when no community photo is available.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jhonyes04/new-wayfy/llms.txt
Use this file to discover all available pages before exploring further.
Both endpoints are rate-limited to 60 requests per minute. Exceeding this limit returns
429 Too Many Requests. The Google photo endpoint requires the GOOGLE_PLACES_KEY environment variable to be configured on the server.Open Graph Images
GET /api/utils/og-image?url=<url>
Fetches the Open Graph or Twitter card image from a given URL by parsing its<meta> tags. Used by WayFy to generate rich trip share previews when users copy a trip link to social media or messaging apps.
Authentication: NoneRate Limit: 60 requests per minute
This endpoint returns
{"image": null} (rather than an error body) when the target page does not have OG/Twitter image meta tags, is unreachable, or returns a non-HTML response. Build your UI to gracefully handle the null case with a fallback image.Request
The fully-qualified URL to inspect for OG/Twitter image meta tags. Must begin with
http:// or https://. Returns 400 Bad Request with {"image": null} if this parameter is missing or does not start with a valid HTTP scheme.Response
The absolute URL of the OG or Twitter card image found in the page’s meta tags, or
null if no image meta tag was found or the request failed.Example
400):
Google Places Photos
GET /api/utils/google-photo?name=<name>&lat=<lat>&lon=<lon>
Fetches a representative photo URI for a named place near a given coordinate using the Google Places API v1 (places.googleapis.com/v1). WayFy uses this endpoint to populate place cards with a venue photo when no community-uploaded photo is available for the location.
Authentication: NoneRate Limit: 60 requests per minute
Request
The name of the place to look up (e.g.
"Café Inclusivo"). Used in the Google Places text search. Returns 400 with {"photo": null} if missing.Latitude coordinate near which to search. Used to bias results toward the correct location when the place name is ambiguous. Returns
400 with {"photo": null} if missing.Longitude coordinate near which to search. Returns
400 with {"photo": null} if missing.Response
The Google Places photo URI for the matched venue, or
null if no photo is available, the place could not be found, or an error occurred.Example
400):
503):