Google Play Movies
Google Play Movies: search by phrase, categories, plain search, charts, sections, video trailers and pagination.
Call via @xylop/api-client-typescript
import { XylopSearchClient, XylopSearchEngines } from "@xylop/api-client-typescript";
interface SearchResponse {
[key: string]: unknown;
}
const client = new XylopSearchClient({
apiKey: "YOUR_API_KEY"
});
const response = await client.search<SearchResponse>(
XylopSearchEngines.GooglePlayMovies,
{
q: "matrix",
gl: "us",
hl: "en",
});
The TypeScript SDK is written in TypeScript, generates `.d.ts`, supports generic response type and works via `fetch`.
Call via @xylop/api-client
import { XylopSearchClient, XylopSearchEngines } from "@xylop/api-client";
const client = new XylopSearchClient({
apiKey: "YOUR_API_KEY"
});
const response = await client.search(
XylopSearchEngines.GooglePlayMovies,
{
q: "matrix",
gl: "us",
hl: "en",
});
JavaScript SDK works in Node.js 18+ and modern browsers via `fetch`; TypeScript declarations are included in the npm package.
Call via XylopSearchClient
using Xylop.Api.Client;
var client = new XylopSearchClient(new HttpClient(), "YOUR_API_KEY");
using var response = await client.SearchJsonAsync(
XylopSearchEngines.GooglePlayMovies,
new Dictionary<string, string?>
{
["q"] = "matrix",
["gl"] = "us",
["hl"] = "en",
});
For typed mode, use `SearchAsync<TResponse>` and the response model from `Xylop.Logic.SerpApiResponses.*`, which is included in the C# SDK.
Call via xylop-api-client
from xylop_api_client import XylopSearchClient, XylopSearchEngines
client = XylopSearchClient("YOUR_API_KEY")
response = client.search(
XylopSearchEngines.GOOGLE_PLAY_MOVIES,
{
"q": "matrix",
"gl": "us",
"hl": "en",
},
)
The Python SDK returns JSON as normal `dict`/`list` and does not require runtime dependencies.
Call via xylop/api-client
<?php
use Xylop\Api\Client\XylopSearchClient;
use Xylop\Api\Client\XylopSearchEngines;
$client = new XylopSearchClient('YOUR_API_KEY');
$response = $client->search(
XylopSearchEngines::GOOGLE_PLAY_MOVIES,
[
'q' => 'matrix',
'gl' => 'us',
'hl' => 'en',
]
);
PHP SDK uses standard stream wrappers, returns a decoded JSON array and does not require runtime dependencies.
Call via xylop-api-client
require "xylop_api_client"
client = XylopApiClient::Client.new(api_key: "YOUR_API_KEY")
response = client.search(
XylopApiClient::Engines::GOOGLE_PLAY_MOVIES,
{
"q" => "matrix",
"gl" => "us",
"hl" => "en",
}
)
Ruby SDK uses standard `net/http`, `json` and returns JSON as normal Hash/Array values.
Call via xylop-api-client
import java.util.Map;
import ru.xylop.api.client.XylopSearchClient;
import ru.xylop.api.client.XylopSearchEngines;
var client = new XylopSearchClient("YOUR_API_KEY");
String responseJson = client.searchJson(
XylopSearchEngines.GOOGLE_PLAY_MOVIES,
Map.of(
"q", "matrix",
"gl", "us",
"hl", "en"
));
The Java SDK uses `java.net.http.HttpClient`, returns a JSON string and does not require runtime dependencies.
Call via xylop-api-kotlin-client
import ru.xylop.api.kotlin.XylopSearchClient
import ru.xylop.api.kotlin.XylopSearchEngines
val client = XylopSearchClient("YOUR_API_KEY")
val responseJson = client.searchJson(
XylopSearchEngines.GOOGLE_PLAY_MOVIES,
mapOf(
"q" to "matrix",
"gl" to "us",
"hl" to "en",
),
)
Kotlin SDK uses the JVM `HttpClient`, returns a JSON string and leaves the JSON mapping to the application.
Call via XylopApiClient
import XylopApiClient
let client = XylopSearchClient(apiKey: "YOUR_API_KEY")
let response = try await client.searchJSON(
engine: XylopSearchEngines.googlePlayMovies,
parameters: [
"q": "matrix",
"gl": "us",
"hl": "en",
]
)
Swift SDK uses Foundation `URLSession`, supports async/await and returns Data, JSONSerialization values or caller-owned Decodable models.
Call via xylop_api_client
import 'package:xylop_api_client/xylop_api_client.dart';
Future<void> main() async {
final client = XylopSearchClient('YOUR_API_KEY');
final response = await client.search(
XylopSearchEngines.googlePlayMovies,
<String, Object?>{
'q': 'matrix',
'gl': 'us',
'hl': 'en',
},
);
print(response);
}
The Dart SDK uses `dart:io`, returns decoded JSON or raw response text, and does not require runtime dependencies.
Call via Xylop.Api.Cpp
#include <xylop/api/client.hpp>
#include <xylop/api/curl_transport.hpp>
int main()
{
xylop::api::search_client client(
"YOUR_API_KEY",
xylop::api::curl_transport);
auto response_json = client.search_text(
xylop::api::engines::google_play_movies,
{
{"q", "matrix"},
{"gl", "us"},
{"hl", "en"},
});
return 0;
}
The C++ SDK has a header-only C++17 core, accepts a transport callback and can use the optional libcurl adapter `xylop::api::curl_transport`.
Call via Xylop.Api.Go
package main
import (
"context"
"log"
xylop "github.com/Leonid-Vizel/Xylop.AdminPanel/src/Xylop.Api.Go"
)
func main() {
client, err := xylop.NewClient("YOUR_API_KEY")
if err != nil {
log.Fatal(err)
}
var response map[string]any
err = client.SearchJSON(
context.Background(),
xylop.EngineGooglePlayMovies,
xylop.Params(map[string]string{
"q": "matrix",
"gl": "us",
"hl": "en",
}),
&response)
if err != nil {
log.Fatal(err)
}
}
The Go SDK returns raw JSON bytes or decodes the response into a custom structure, `map[string]any` or another target.
HTTP contract
- URL
https://api.xylop.ru/search- Engine
google_play_movies- API key
- The SDK is transferred automatically from the client settings.
Request parameters
| Parameter | Type | Required | Meaning | Description |
|---|---|---|---|---|
api_key
SDK
|
string | Yes | — | Xylop API key. In the SDK it is set once in the settings or client designer. |
engine
SDK
|
string | Yes |
google_play_movies
|
Google Play Movies engine. |
q
|
string | No | matrix | Search phrase. You can omit this for plain search or category search. |
movies_category
|
string | No | MOVIE_ACTION_ADVENTURE | Google Play Movies category. |
gl
|
string | No |
us
|
Google Play country code. |
hl
|
string | No |
en
|
Interface language. |
age
|
string | No | AGE_RANGE3 | Age filter. |
chart
|
string | No | topselling_paid | Value from chart_options for top charts. |
next_page_token
|
string | No | pagination.next_page_token | Next page token. |
section_page_token
|
string | No | section token | Pagination token inside a separate section. |
see_more_token
|
string | No | see_more_token | Expand token for a specific section. |
Response fields
| Field | Type | Source | Description |
|---|---|---|---|
search_metadata |
object | Sample answer | Request metadata: status, identifier, execution time and service information of the provider. |
search_parameters |
object | Sample answer | The normalized parameters with which the upstream search performed the request. |
chart_options |
array | Sample answer | Typed response field for this engine; the structure depends on the upstream provider and request parameters. |
organic_results |
array | Sample answer | Main organic results: positions, titles, links and snippets. |
pagination |
object | Sample answer | Pagination data or tokens to move to the next page. |
Sample answer
{
"search_metadata": {
"status": "Success",
"google_play_movies_url": "https://play.google.com/store/search?q=matrix&c=movies&hl=en&gl=us"
},
"search_parameters": {
"engine": "google_play_movies",
"q": "matrix",
"hl": "en",
"gl": "us"
},
"chart_options": [
{
"text": "Top selling",
"value": "topselling_paid"
}
],
"organic_results": [
{
"title": "Movies",
"see_more_token": "...",
"items": [
{
"title": "The Matrix",
"link": "https://play.google.com/store/movies/details?id=...",
"product_id": "...",
"rating": 4.7,
"maturity_rating": "R",
"video": "https://play.google.com/video/lava/web/player/...",
"category": "Action & adventure",
"price": "$3.99",
"extracted_price": 3.99,
"thumbnail": "https://play-lh.googleusercontent.com/...",
"description": "A computer hacker learns about the true nature of his reality."
}
]
}
],
"pagination": {
"next_page_token": "..."
}
}