# Best Practice

  • Authentication: Include Authorization: Bearer YOUR_TOKEN in all requests
  • Response Time Management: Typical response time: 3-4 seconds (live queries)
  • Data Handling: Handle missing optional fields gracefully; Don't assume all fields are present
  • Caching: Cache results briefly (5-10 minutes) for repeated queries; Invalidate cache when user explicitly refreshes
  • Empty Results: Empty arrays are normal and not an error; Some hotels have limited provider coverage. Handle gracefully with appropriate UI messaging
  • Error handling: Check error field in responses for processing failures