Fortunately, there's no publicly available official Google Trends API. If you need data from Google Trends, you can rely on unofficial libraries such as PyTrends (Python) or google-trends-api (Node.JS).