---
title: "How search works"
description: "Flight and hotel searches are asynchronous; read results until they settle."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.wego.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How search works

Flight and hotel searches are asynchronous. Creating a search returns a `searchId` immediately while travel providers keep answering in the background. Each read of the results endpoint returns the current ranked snapshot; early reads can be sparse or empty, so read again after a moment until the page fills or `metadata` stops growing.

Source: https://docs.wego.com/api/how-search-works/index.mdx
