Interface language English
SDK engine

Google Immersive Product

Google Shopping product card by page_token: preview, price, stores, reviews, insights, videos, forums, product options and token of the next store page.

engine: google_immersive_product TS: XylopSearchEngines.GoogleImmersiveProduct JS: XylopSearchEngines.GoogleImmersiveProduct C#: XylopSearchEngines.GoogleImmersiveProduct Python: XylopSearchEngines.GOOGLE_IMMERSIVE_PRODUCT PHP: XylopSearchEngines::GOOGLE_IMMERSIVE_PRODUCT Ruby: XylopApiClient::Engines::GOOGLE_IMMERSIVE_PRODUCT Java: XylopSearchEngines.GOOGLE_IMMERSIVE_PRODUCT Kotlin: XylopSearchEngines.GOOGLE_IMMERSIVE_PRODUCT Swift: XylopSearchEngines.googleImmersiveProduct Dart: XylopSearchEngines.googleImmersiveProduct C++: xylop::api::engines::google_immersive_product Go: xylop.EngineGoogleImmersiveProduct GET /search
TypeScript example

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.GoogleImmersiveProduct,
  {
    page_token: "immersive product page_token",
    more_stores: "false",
    no_cache: "false",
  });

The TypeScript SDK is written in TypeScript, generates `.d.ts`, supports generic response type and works via `fetch`.

JavaScript example

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.GoogleImmersiveProduct,
  {
    page_token: "immersive product page_token",
    more_stores: "false",
    no_cache: "false",
  });

JavaScript SDK works in Node.js 18+ and modern browsers via `fetch`; TypeScript declarations are included in the npm package.

C# example

Call via XylopSearchClient

using Xylop.Api.Client;

var client = new XylopSearchClient(new HttpClient(), "YOUR_API_KEY");

using var response = await client.SearchJsonAsync(
    XylopSearchEngines.GoogleImmersiveProduct,
    new Dictionary<string, string?>
    {
        ["page_token"] = "immersive product page_token",
        ["more_stores"] = "false",
        ["no_cache"] = "false",
    });

For typed mode, use `SearchAsync<TResponse>` and the response model from `Xylop.Logic.SerpApiResponses.*`, which is included in the C# SDK.

Python example

Call via xylop-api-client

from xylop_api_client import XylopSearchClient, XylopSearchEngines

client = XylopSearchClient("YOUR_API_KEY")

response = client.search(
    XylopSearchEngines.GOOGLE_IMMERSIVE_PRODUCT,
    {
        "page_token": "immersive product page_token",
        "more_stores": "false",
        "no_cache": "false",
    },
)

The Python SDK returns JSON as normal `dict`/`list` and does not require runtime dependencies.

PHP example

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_IMMERSIVE_PRODUCT,
    [
        'page_token' => 'immersive product page_token',
        'more_stores' => 'false',
        'no_cache' => 'false',
    ]
);

PHP SDK uses standard stream wrappers, returns a decoded JSON array and does not require runtime dependencies.

Ruby example

Call via xylop-api-client

require "xylop_api_client"

client = XylopApiClient::Client.new(api_key: "YOUR_API_KEY")

response = client.search(
  XylopApiClient::Engines::GOOGLE_IMMERSIVE_PRODUCT,
  {
    "page_token" => "immersive product page_token",
    "more_stores" => "false",
    "no_cache" => "false",
  }
)

Ruby SDK uses standard `net/http`, `json` and returns JSON as normal Hash/Array values.

Java example

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_IMMERSIVE_PRODUCT,
    Map.of(
        "page_token", "immersive product page_token",
        "more_stores", "false",
        "no_cache", "false"
    ));

The Java SDK uses `java.net.http.HttpClient`, returns a JSON string and does not require runtime dependencies.

Kotlin example

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_IMMERSIVE_PRODUCT,
    mapOf(
        "page_token" to "immersive product page_token",
        "more_stores" to "false",
        "no_cache" to "false",
    ),
)

Kotlin SDK uses the JVM `HttpClient`, returns a JSON string and leaves the JSON mapping to the application.

Swift example

Call via XylopApiClient

import XylopApiClient

let client = XylopSearchClient(apiKey: "YOUR_API_KEY")

let response = try await client.searchJSON(
    engine: XylopSearchEngines.googleImmersiveProduct,
    parameters: [
        "page_token": "immersive product page_token",
        "more_stores": "false",
        "no_cache": "false",
    ]
)

Swift SDK uses Foundation `URLSession`, supports async/await and returns Data, JSONSerialization values or caller-owned Decodable models.

Dart example

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.googleImmersiveProduct,
    <String, Object?>{
      'page_token': 'immersive product page_token',
      'more_stores': 'false',
      'no_cache': 'false',
    },
  );

  print(response);
}

The Dart SDK uses `dart:io`, returns decoded JSON or raw response text, and does not require runtime dependencies.

C++ example

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_immersive_product,
        {
            {"page_token", "immersive product page_token"},
            {"more_stores", "false"},
            {"no_cache", "false"},
        });

    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`.

Go example

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.EngineGoogleImmersiveProduct,
        xylop.Params(map[string]string{
            "page_token": "immersive product page_token",
            "more_stores": "false",
            "no_cache": "false",
        }),
        &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.

Endpoint

HTTP contract

URL
https://api.xylop.ru/search
Engine
google_immersive_product
API key
The SDK is transferred automatically from the client settings.
Input parameters

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_immersive_product Google Immersive Product Engine.
page_token string Yes immersive product page_token Immersive product token from Google Shopping / AI Mode shopping result.
more_stores string No false Return an expanded list of stores in one request.
next_page_token string No product_results.stores_next_page_token Token for the next store page from product_results.stores_next_page_token.
no_cache string No false Force request for a fresh response.
Output parameters

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.
product_results object Sample answer Products, prices, sellers, ratings and links to cards.
related_searches array Sample answer Related search terms that you can use for your next search.
JSON

Sample answer

{
  "search_metadata": {
    "status": "Success",
    "google_immersive_product_url": "https://www.google.com/async/oapv?..."
  },
  "search_parameters": {
    "engine": "google_immersive_product",
    "page_token": "eyJ..."
  },
  "product_results": {
    "title": "LG Class G4 Series OLED evo 4K Smart TV",
    "brand": "LG",
    "rating": 4.8,
    "reviews": 3551,
    "price_range": "$1,797-$2,200",
    "stores": [
      {
        "name": "Best Buy",
        "link": "https://www.bestbuy.com/site/...",
        "title": "LG - 55\" Class G4 Series OLED evo 4K UHD Smart webOS TV (2024)",
        "rating": 4.6,
        "reviews": 623,
        "payment_methods": "PayPal, Zip accepted",
        "details_and_offers": [
          "In stock online",
          "$50 delivery"
        ],
        "price": "$2,199.99",
        "extracted_price": 2199.99,
        "shipping": "+ $50.00",
        "total": "$2,420.49",
        "extracted_total": 2420.49
      }
    ],
    "stores_next_page_token": "f69uOnica15...",
    "about_the_product": {
      "title": "65 inch LG OLED evo AI G4 4K Smart TV 2024",
      "description": "Bring the movie theatre experience into your home..."
    },
    "ratings": [
      {
        "stars": 5,
        "amount": 3166
      }
    ]
  },
  "related_searches": [
    {
      "query": "lg smart tvs",
      "link": "https://www.google.com/search?cs=1&q=lg+smart+tvs"
    }
  ]
}