To optimize performance, reduce API quota consumption, and improve user experience, Sonora.Chat implements the following data retention practices for YouTube API data:
- Permanent storage: We permanently store channel IDs (
channelId) and topic IDs (topicId) obtained from YouTube search results. These are public identifiers that do not change over time and are essential for efficient future searches. This practice is explicitly permitted under YouTube's API policies as it reduces unnecessary repeated API calls.
- Temporary caching: Dynamic content such as:
- Auto Youtube Mix by Genre or Mood
- Video lists and search results
- Video metadata (titles, thumbnails, descriptions)
is stored temporarily with a Time-To-Live (TTL) of up to 30 days, in compliance with YouTube's data freshness requirements. Most cached data expires within 12 to 24 hours to ensure content remains current.
- No permanent storage of user data: We do not permanently store any personal user data obtained through YouTube API. Session data is maintained only as long as necessary for the current search session.
- Compliance justification: This caching strategy complies with YouTube API Services Terms of Service, specifically Section III.E.4 regarding data freshness, and follows best practices recommended by Google for efficient API usage.
API Efficiency
Why we cache channel IDs permanently: Channel IDs are immutable public identifiers. Storing them permanently eliminates the need for repeated API calls to resolve artist names, significantly reducing our API quota usage and improving response times for users.
If you have questions about our data retention practices, please contact us at legal@sonora.chat.