Skip to content

Instantly share code, notes, and snippets.

@bojanbabic
Created March 30, 2020 22:16
Show Gist options
  • Save bojanbabic/66057d1f6000d2c8735630feea820702 to your computer and use it in GitHub Desktop.
Save bojanbabic/66057d1f6000d2c8735630feea820702 to your computer and use it in GitHub Desktop.
# curl "https://www.airbnb.com/api/v2/autocompletes?country=US&key=d306zoyjsyarp7ifhu67rjxn52tv0t20&language=en&locale=en&num_results=5&user_input=yoga&api_version=1.2.0&vertical_refinement=all&region=1&options=should_show_stays" | jq '.autocomplete_terms[0] '
{
"id": "78f3c2985523dd6742202ebcddcc02604d5af94f5ecd6c44414b86d24d6640c7",
"explore_search_params": {
"refinement_paths": [
"/experiences/KG/Tag:76"
],
"reset_filters": false,
"reset_keys": [],
"query": "Yoga in San Diego, CA",
"params": [],
"place_id": "ChIJSx6SrQ9T2YARed8V_f0hOg0",
"refinement_path": "/experiences/KG/Tag:76"
},
"suggestion_type": "REFINEMENT_LOCATION",
"suggestionType": "REFINEMENT_LOCATION",
"vertical_type": "experiences",
"verticalType": "experiences",
"display_name": "Yoga in San Diego, CA",
"metadata": {
"location_only_result": false,
"airmoji": "extras_star"
},
"location": {
"offset_start": 0,
"offset_end": 0,
"location_name": "San Diego, CA, United States",
"google_place_id": "ChIJSx6SrQ9T2YARed8V_f0hOg0",
"types": [
"locality",
"political"
],
"terms": [
{
"offset": 0,
"value": "San Diego"
},
{
"offset": 11,
"value": "CA"
},
{
"offset": 15,
"value": "United States"
}
]
},
"refinements": [
{
"offset_start": 0,
"offset_end": 0,
"id": 3092,
"name": "Yoga",
"inputName": "yoga",
"vertical": "experiences",
"path": "/experiences/KG/Tag:76",
"tagType": "activity"
}
],
"highlights": [
{
"offset_start": 4,
"offset_end": 20
}
],
"sxsDebugInfo": {
"sxsScoreAttrs": {}
},
"placeId": "ChIJSx6SrQ9T2YARed8V_f0hOg0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment