Unified access to google data.
GET /v1/google/search
5 credits
cached 5m
Parameters
| query | required | e.g. open source |
| region | optional | e.g. value |
| date_posted | optional | e.g. value |
| page | optional | e.g. value |
curl "http://datatrend.nl/v1/google/search?query=open+source" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/search?query=open+source");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/search?query=open+source",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/search?query=open+source",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/ad
5 credits
cached 5m
Parameters
| url | required | e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ |
curl "http://datatrend.nl/v1/google/ad?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/ad?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/ad?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/ad?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/adlibrary/advertisers/search
5 credits
cached 5m
Parameters
| query | required | e.g. open source |
| region | optional | e.g. value |
curl "http://datatrend.nl/v1/google/adlibrary/advertisers/search?query=open+source" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/adlibrary/advertisers/search?query=open+source");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/adlibrary/advertisers/search?query=open+source",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/adlibrary/advertisers/search?query=open+source",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/company/ads
5 credits
cached 5m
Parameters
| domain | optional | e.g. value |
| advertiser_id | optional | e.g. value |
| topic | optional | e.g. ai agents |
| region | optional | e.g. value |
| start_date | optional | e.g. value |
| end_date | optional | e.g. value |
| platform | optional | e.g. value |
| format | optional | e.g. value |
| get_ad_details | optional | e.g. value |
| cursor | optional | e.g. value |
curl "http://datatrend.nl/v1/google/company/ads" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/company/ads");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/company/ads",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/company/ads",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/business/info
5 credits
cached 5m
Parameters
| keyword | optional | e.g. value |
| cid | optional | e.g. value |
| place_id | optional | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
curl "http://datatrend.nl/v1/google/business/info" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/business/info");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/business/info",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/business/info",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/business/extended-reviews
5 credits
cached 5m
Parameters
| keyword | optional | e.g. value |
| cid | optional | e.g. value |
| place_id | optional | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
| depth | optional | e.g. value |
curl "http://datatrend.nl/v1/google/business/extended-reviews" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/business/extended-reviews");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/business/extended-reviews",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/business/extended-reviews",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/business/updates
5 credits
cached 5m
Parameters
| keyword | optional | e.g. value |
| cid | optional | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
curl "http://datatrend.nl/v1/google/business/updates" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/business/updates");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/business/updates",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/business/updates",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/business/questions
5 credits
cached 5m
Parameters
| keyword | optional | e.g. value |
| cid | optional | e.g. value |
| place_id | optional | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
| depth | optional | e.g. value |
curl "http://datatrend.nl/v1/google/business/questions" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/business/questions");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/business/questions",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/business/questions",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/hotels/search
5 credits
cached 5m
Parameters
| keyword | required | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
| check_in | optional | e.g. value |
| check_out | optional | e.g. value |
curl "http://datatrend.nl/v1/google/hotels/search?keyword=value" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/hotels/search?keyword=value");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/hotels/search?keyword=value",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/hotels/search?keyword=value",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/google/hotels/info
5 credits
cached 5m
Parameters
| hotel_identifier | required | e.g. value |
| location_name | optional | e.g. value |
| language_name | optional | e.g. value |
curl "http://datatrend.nl/v1/google/hotels/info?hotel_identifier=value" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/google/hotels/info?hotel_identifier=value");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/google/hotels/info?hotel_identifier=value",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/google/hotels/info?hotel_identifier=value",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);