Free, read-only API for solo travel data. Filter by country, city, or coordinates. Perfect for AI assistants, chatbots, and travel apps.
The LonelyRoad API provides free access to:
Rate Limits:
CORS Support:
GET https://lonelyroad.app/api/v1/guides| Parameter | Type | Description |
|---|---|---|
country | string | Filter by country name (e.g., "Netherlands", "Thailand") |
country_code | string | Filter by ISO 3166-1 alpha-2 code (e.g., "NL", "TH", "JP") |
city | string | Filter by city name (e.g., "Amsterdam", "Bangkok") |
preview | boolean | Set to "true" for metadata only (faster response) |
limit | number | Results per page (default: 50, max: 100) |
offset | number | Pagination offset (default: 0) |
# Get all guides in Netherlands curl "https://lonelyroad.app/api/v1/guides?country=Netherlands&preview=true" # Get guides by ISO country code curl "https://lonelyroad.app/api/v1/guides?country_code=TH&preview=true" # Get guide for a specific city curl "https://lonelyroad.app/api/v1/guides?city=Amsterdam"
{
"success": true,
"count": 1,
"pagination": { "limit": 50, "offset": 0, "has_more": false },
"filters_applied": { "country": "Netherlands", "preview": true },
"guides": [
{
"id": "d9dccae1-6850-4cc1-bd8e-fb7616b0a4c3",
"title": "Amsterdam Travel Guide",
"city": "Amsterdam",
"country": "Netherlands",
"country_code": "NL",
"description": "Your personal travel guide to Amsterdam",
"coordinates": { "latitude": 52.3676, "longitude": 4.9041 },
"view_count": 2,
"updated_at": "2025-11-26T06:18:36.132789+00:00",
"urls": {
"web": "https://lonelyroad.app/guide/amsterdam",
"api": "https://lonelyroad.app/api/llm/guide/...",
"api_json": "https://lonelyroad.app/api/v1/guides/..."
}
}
]
}GET https://lonelyroad.app/api/v1/guides/{guide_id}Returns full guide content in JSON format. Add ?preview=true for metadata only.
country_code - ISO 3166-1 alpha-2 codesuggested_activities - List of recommended activitiessuggested_events - Local events and meetupsplaces_to_stay - Accommodation recommendationscafes_and_restaurants - Food recommendationstips - Local travel tipsGET https://lonelyroad.app/api/llm/guide/{guide_id}Returns comprehensive travel guides in clean Markdown format, optimized for AI consumption. All content is verified by the LonelyRoad community.
Content-Type: text/plain; charset=utf-8 Cache-Control: public, s-maxage=3600 X-Verified-By: LonelyRoad-Community Access-Control-Allow-Origin: *
GET https://lonelyroad.app/api/v1/recommendations| Parameter | Type | Required | Description |
|---|---|---|---|
lat | number | Yes | Latitude coordinate (-90 to 90) |
lon | number | Yes | Longitude coordinate (-180 to 180) |
radius | number | No | Search radius in kilometers (default: 10, max: 50) |
limit | number | No | Max results to return (default: 15, max: 50) |
# Lisbon, Portugal curl "https://lonelyroad.app/api/v1/recommendations?lat=38.7223&lon=-9.1393&radius=5"
The API returns different suggestion types:
Use ISO 3166-1 alpha-2 codes with the country_code parameter:
AT - AustriaAU - AustraliaCA - CanadaDE - GermanyDK - DenmarkES - SpainGB - United KingdomGR - GreeceHK - Hong KongJP - JapanKR - South KoreaMY - MalaysiaNL - NetherlandsNZ - New ZealandPT - PortugalSE - SwedenSG - SingaporeTH - ThailandTW - TaiwanUS - United StatesWhen using LonelyRoad data, please include proper attribution:
License: Creative Commons Attribution 4.0 (CC BY 4.0)
Our llms.txt file contains a comprehensive directory of all available travel guides, API endpoints, response examples, and usage guidelines specifically formatted for AI assistants.