FX-Port API
Hotels

Hotel name search

Fuzzy search for hotels by name — handles typos, partial matches, and diacritics normalization.

Fuzzy search for a hotel by name. Handles exact matches, partial matches, typos, and diacritics normalization (e.g. "peremé" matches "Pereme").

Permission: Read

Two equivalent forms are available — pick whichever fits your client better.

GET /api/v1/hotels/name-search
ParameterTypeRequiredDefaultDescription
querystringYes—Hotel name or partial name
limitintegerNo10Max results, 1–100
min_scorefloatNo60Minimum match score, 0–100
include_locationbooleanNotrueInclude address, city, country
include_detailsbooleanNofalseReturn full hotel data per match
curl --get \
  --url https://api.fx-port.com/api/v1/hotels/name-search \
  --header 'Authorization: Bearer fxp_test_YOUR_KEY' \
  --data-urlencode 'query=Sofitel' \
  --data-urlencode 'limit=5' \
  --data-urlencode 'min_score=50'

Response example

{
  "environment": "sandbox",
  "query": "Sofitel",
  "results_count": 3,
  "search_time": "0.235s",
  "hotels": [
    {
      "id": "sofitel_algiers_hamma_garden",
      "name": "Sofitel Algiers Hamma Garden",
      "match_score": 95.5,
      "match_type": "fuzzy",
      "address": "172 Rue Hassiba Ben Bouali, Algiers",
      "city": "Algiers",
      "country_code": "DZ",
      "postal_code": "16000"
    }
  ]
}

With include_details: true, each entry in hotels[] is the full cached hotel document instead of the compact match summary above.

Field reference

FieldDescription
match_score0–100 similarity score
match_typeexact, partial, or fuzzy
idPass this as id on search_advanced or get_rates

Edge cases

// Typos — still matches
{ "query": "softel algirs" }

// Diacritics — normalized both ways
{ "query": "peremé" }

// Partial name
{ "query": "hilton" }

On this page