Many travel booking APIs are not free and will require payment of a fee in order to use them. The fees can be based on a variety of factors such as the number of API requests, the number of bookings made through the API, or a monthly or annual subscription fee.
However, some travel providers such as airlines and hotels do offer free APIs for developers to use. These APIs will usually be limited in their functionality and may require approval from the provider before use.