PHPackages                             purewater2011/google-trends - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. purewater2011/google-trends

ActiveLibrary[API Development](/categories/api)

purewater2011/google-trends
===========================

PHP Google Trends API

2.0.3(5y ago)05MITPHPPHP &gt;=7.2

Since Mar 26Pushed 4y agoCompare

[ Source](https://github.com/purewater2011/google-trends)[ Packagist](https://packagist.org/packages/purewater2011/google-trends)[ RSS](/packages/purewater2011-google-trends/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (12)Used By (0)

Google Trends PHP API
=====================

[](#google-trends-php-api)

[![Total Downloads](https://camo.githubusercontent.com/da001b8015622dc254aacc9614a83645b6c78533006de83d28b3e4650975dc8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6761627269656c6673372f676f6f676c652d7472656e64733f7365727665723d68747470732533412532462532467061636b61676973742e6f7267)](https://packagist.org/packages/gabrielfs7/google-trends)[![Latest Stable Version](https://camo.githubusercontent.com/7dc23fac30bf4d9a130dd013d4f96d45c5ddf704432416c0e95c0b49f916fe5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6761627269656c6673372f676f6f676c652d7472656e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gabrielfs7/google-trends)

[![Branch master](https://camo.githubusercontent.com/d13ff590538bd288fc9f75cbfe383af4eaaaa0c356f9e90aed2263bb322bd87f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d13ff590538bd288fc9f75cbfe383af4eaaaa0c356f9e90aed2263bb322bd87f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Build Status](https://camo.githubusercontent.com/68ee37c5dca0b9950ba7a07bb6b503e531910badcf6e86ed342b78cc3f5e8cf6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6761627269656c6673372f676f6f676c652d7472656e64732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gabrielfs7/google-trends/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cd663b7f152ed06ac3ea37d5ba7f377cd24233125509fb983dd25d516e63e46c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6761627269656c6673372f676f6f676c652d7472656e64732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gabrielfs7/google-trends/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/908d8c4555381ea692c1acd8af1151a236c8892507fd8273542c3e1957064cdc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6761627269656c6673372f676f6f676c652d7472656e64732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gabrielfs7/google-trends/?branch=master)

A easier way to search on Google Trends and get a standard response in JSON or PHP DTO.

Dependencies
------------

[](#dependencies)

- PHP 7.2+
- PHP ext-json

Advantages on using this API
----------------------------

[](#advantages-on-using-this-api)

- Get standard response that can be easily imported to your BI system.
- No need to have a google account.
- No need for web scraping data from Google Trends UI.
- We deal with Google request token handling for you.
- Allows you to create custom reports that better fit to your business.

Current support
---------------

[](#current-support)

- PSR7 Support
- Related topics Search.
- Related queries Search.
- Interest over time Search.
- Interest by region Search.
- Search by categories.
- Search by location.
- Language support.
- Includes top or rising metrics.
- Search type:
    - Web
    - Image
    - News
    - Youtube
    - Google Shopping

Usage
-----

[](#usage)

### Using Open API and PSR7

[](#using-open-api-and-psr7)

The library provides PSR7 http message support. Check [\\GSoares\\GoogleTrends\\Search\\Psr7\\Search](./src/Search/Psr7/Search.php).

Example:

```
