> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/api-targets/es/comercio-electronico/walmart/search.md).

# Búsqueda

La `walmart_search` fuente walmart\_search está diseñada para recuperar páginas de resultados de búsqueda de Walmart. Podemos devolver el HTML de cualquier página de Walmart que desees. Además, podemos entregar **salida estructurada (analizada) para páginas de búsqueda de Walmart**.

## Ejemplos de solicitud

El ejemplo a continuación muestra cómo puedes obtener un resultado de página de búsqueda de Walmart analizado.

{% tabs %}
{% tab title="cURL" %}

```shell
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "walmart_search", 
        "query": "iphone", 
        "parse": true
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint


# Structure payload.
payload = {
    'source': 'walmart_search',
    'query': 'iphone',
    'parse': True,
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const https = require("https");

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "walmart_search",
    query: "iphone",
    parse: true,
};

const options = {
    hostname: "realtime.oxylabs.io",
    path: "/v1/queries",
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        Authorization:
            "Basic " + Buffer.from(`${username}:${password}`).toString("base64"),
    },
};

const request = https.request(options, (response) => {
    let data = "";

    response.on("data", (chunk) => {
        data += chunk;
    });

    response.on("end", () => {
        const responseData = JSON.parse(data);
        console.log(JSON.stringify(responseData, null, 2));
    });
});

request.on("error", (error) => {
    console.error("Error:", error);
});

request.write(JSON.stringify(body));
request.end();
```

{% endtab %}

{% tab title="HTTP" %}

```http
Toda la cadena que envíes debe estar codificada en URL.

https://realtime.oxylabs.io/v1/queries?source=walmart_search&query=iphone&parse=true&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'walmart_search',
    'query' => 'iphone',
    'parse' => true
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://realtime.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "USERNAME" . ":" . "PASSWORD");

$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
```

{% endtab %}

{% tab title="Golang" %}

```go
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
)

func main() {
	const Username = "USERNAME"
	const Password = "PASSWORD"

	payload := map[string]interface{}{
		"source":       "walmart_search",
		"query":        "iphone",
		"parse":        true,
	}

	jsonValue, _ := json.Marshal(payload)

	client := &http.Client{}
	request, _ := http.NewRequest("POST",
		"https://realtime.oxylabs.io/v1/queries",
		bytes.NewBuffer(jsonValue),
	)

	request.SetBasicAuth(Username, Password)
	response, _ := client.Do(request)

	responseText, _ := ioutil.ReadAll(response.Body)
	fmt.Println(string(responseText))
}

```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;

namespace OxyApi
{
    class Program
    {
        static async Task Main()
        {
            const string Username = "USERNAME";
            const string Password = "PASSWORD";

            var parameters = new {
                source = "walmart_search",
                query = "iphone",
                parse = true
            };

            var client = new HttpClient();

            Uri baseUri = new Uri("https://realtime.oxylabs.io");
            client.BaseAddress = baseUri;

            var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/queries");
            requestMessage.Content = JsonContent.Create(parameters);

            var authenticationString = $"{Username}:{Password}";
            var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.UTF8.GetBytes(authenticationString));
            requestMessage.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);

            var response = await client.SendAsync(requestMessage);
            var contents = await response.Content.ReadAsStringAsync();

            Console.WriteLine(contents);
        }
    }
}
```

{% endtab %}

{% tab title="Java" %}

```java
package org.example;

import okhttp3.*;
import org.json.JSONObject;
import java.util.concurrent.TimeUnit;

public class Main implements Runnable {
    private static final String AUTHORIZATION_HEADER = "Authorization";
    public static final String USERNAME = "USERNAME";
    public static final String PASSWORD = "PASSWORD";

    public void run() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "walmart_search");
        jsonObject.put("query", "iphone");
        jsonObject.put("parse", true);

        Authenticator authenticator = (route, response) -> {
            String credential = Credentials.basic(USERNAME, PASSWORD);
            return response
                    .request()
                    .newBuilder()
                    .header(AUTHORIZATION_HEADER, credential)
                    .build();
        };

        var client = new OkHttpClient.Builder()
                .authenticator(authenticator)
                .readTimeout(180, TimeUnit.SECONDS)
                .build();

        var mediaType = MediaType.parse("application/json; charset=utf-8");
        var body = RequestBody.create(jsonObject.toString(), mediaType);
        var request = new Request.Builder()
                .url("https://realtime.oxylabs.io/v1/queries")
                .post(body)
                .build();

        try (var response = client.newCall(request).execute()) {
            if (response.body() != null) {
                try (var responseBody = response.body()) {
                    System.out.println(responseBody.string());
                }
            }
        } catch (Exception exception) {
            System.out.println("Error: " + exception.getMessage());
        }

        System.exit(0);
    }

    public static void main(String[] args) {
        new Thread(new Main()).start();
    }
}
```

{% endtab %}

{% tab title="JSON" %}

```json
{
    "source": "walmart_search", 
    "query": "iphone", 
    "parse": true
}
```

{% endtab %}
{% endtabs %}

Usamos [**Realtime**](/products/es/web-scraper-api/integration-methods/realtime.md) método de integración síncrona en nuestros ejemplos. Si deseas usar [**Proxy Endpoint**](/products/es/web-scraper-api/integration-methods/proxy-endpoint.md) o integración asíncrona [**Push-Pull**](/products/es/web-scraper-api/integration-methods/push-pull.md) consulta la [**sección de métodos de integración**](/products/es/web-scraper-api/integration-methods.md) .

## Valores de parámetros de solicitud

### Genérico

<table><thead><tr><th width="207">Parámetro</th><th width="334.3333333333333">Descripción</th><th>Valor predeterminado</th></tr></thead><tbody><tr><td><mark style="background-color:green;"><strong><code>source</code></strong></mark></td><td>Configura el scraper.</td><td><code>walmart_search</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>query</code></strong></mark></td><td>La palabra clave o frase para buscar productos.</td><td>-</td></tr><tr><td><code>min_price</code></td><td>Establece el precio mínimo.</td><td>-</td></tr><tr><td><code>max_price</code></td><td>Establece el precio máximo.</td><td>-</td></tr><tr><td><code>sort_by</code></td><td>Selecciona el orden de los productos. Los valores disponibles son: <code>price_low</code>, <code>price_high</code>, <code>best_seller</code>, <code>best_match</code>.</td><td><code>best_match</code></td></tr><tr><td><code>render</code></td><td>Habilita el renderizado de JavaScript cuando se establece en <code>html</code>. <a href="/spaces/xofNngbwiAAH0MB3lMAb/pages/47852075b446d7f11217f4c0334348f21fb197b8#javascript-rendering"><strong>Más información</strong></a><strong>.</strong></td><td>-</td></tr><tr><td><code>parse</code></td><td>Devuelve datos analizados cuando se establece en <code>true</code>.</td><td><code>false</code></td></tr><tr><td><code>callback_url</code></td><td>URL de tu endpoint de callback. <a href="/spaces/xofNngbwiAAH0MB3lMAb/pages/28181dba27c108c1684f7f17f5d8fef78bd80d90"><strong>Más información</strong></a></td><td>-</td></tr><tr><td><code>user_agent_type</code></td><td>Tipo de dispositivo y navegador. La lista completa se puede encontrar <a href="/spaces/xofNngbwiAAH0MB3lMAb/pages/c0794af77dadf44c32dae6894baaca0b93585869"><strong>aquí</strong></a>.</td><td><code>desktop</code></td></tr></tbody></table>

&#x20;    \- parámetro obligatorio

### Localización

Adapta los resultados a tiendas específicas, ubicaciones de envío, etc. Encuentra la lista de IDs de tiendas de Walmart aquí:

{% file src="/files/493a8893a6604772933a284df173027fb064ce00" %}

También puedes encontrar la página oficial de Walmart Stores [**aquí**](https://www.walmart.com/store-directory)**.**

<table><thead><tr><th width="179">Parámetro</th><th width="434">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>dominio</code></td><td>Localización de dominio para Walmart. Valores disponibles: <code>com</code>, <code>com.mx</code>, <code>ca</code>, <code>co.cr</code>. Predeterminado: <code>com</code>.</td><td>Cadena</td></tr><tr><td><code>fulfillment_speed</code></td><td>Establece la velocidad de fulfillment. Los valores disponibles son: <code>today</code>, <code>2_days</code>, <code>anytime</code>, <code>tomorrow</code>.</td><td>Cadena</td></tr><tr><td><code>fulfillment_type</code></td><td>Establece el tipo de fulfillment. Valores compatibles: <code>pickup</code>, <code>delivery</code>, <code>shipping.</code></td><td>Cadena</td></tr><tr><td><code>delivery_zip</code></td><td>Establece la ubicación de envío.</td><td>Cadena</td></tr><tr><td><code>store_id</code></td><td>Establece la ubicación de la tienda.</td><td>Cadena</td></tr></tbody></table>

La disponibilidad del parámetro de tipo de fulfillment varía según el dominio de Walmart:

<table><thead><tr><th width="341">Dominio</th><th>Tipos de fulfillment compatibles</th></tr></thead><tbody><tr><td><code>walmart.com</code></td><td><code>pickup</code>, <code>delivery</code>, <code>shipping</code></td></tr><tr><td><code>walmart.com.mx</code></td><td><code>pickup</code>, <code>delivery</code></td></tr><tr><td><code>walmart.ca</code></td><td><code>pickup</code>, <code>delivery</code></td></tr><tr><td><code>walmart.co.cr</code></td><td><code>pickup</code></td></tr></tbody></table>

Para listas internacionales `store_id` consulta los archivos a continuación:

{% file src="/files/baa88128d1a8013e576c70c5933a816402aaed75" %}

{% file src="/files/071b51a6e83a73c87aff91365d8a21fed58150ee" %}

{% file src="/files/f9b10166a66b5da8b8b56cc8442c5f0c22ffd581" %}

{% hint style="info" %}
Si la tienda objetivo está demasiado lejos del código postal dado, intentaremos usar el código postal de la tienda objetivo; de lo contrario, la ubicación no se establecerá correctamente. En caso de que no podamos establecer el `delivery_zip` - Walmart devolverá sus resultados predeterminados sin segmentación por tienda.
{% endhint %}

### Paginación

<table><thead><tr><th width="222">Parámetro</th><th width="350.3333333333333">Descripción</th><th width="167">Valor predeterminado</th></tr></thead><tbody><tr><td><code>start_page</code></td><td>Número de página inicial.</td><td><code>1</code></td></tr></tbody></table>

## Datos estructurados

{% hint style="info" %}
En las siguientes secciones, los fragmentos de código JSON analizados se acortan cuando hay más de un elemento disponible para el tipo de resultado.
{% endhint %}

<details>

<summary>Salida estructurada de la página de búsqueda de Walmart</summary>

```json
{
    "results": [
        {
            "content": {
                "url": "https://www.walmart.com/search?q=adidas",
                "facets": [
                    {
                        "type": "sort",
                        "values": [
                            {
                                "name": "Best Match"
                            },
                            {
                                "name": "Price Low"
                            },
                            {
                                "name": "Price High"
                            },
                            {
                                "name": "Best Seller"
                            }
                        ],
                        "display_name": "Sort by"
                    },
                    ...
                ],
                "results": [
                    {
                        "price": {
                            "price": 31.95,
                            "currency": "USD"
                        },
                        "rating": {
                            "count": 0,
                            "rating": 0
                        },
                        "seller": {
                            "id": "5027DF43EB634E91AEADF0D69DD4E009",
                            "name": "Revel Commerce"
                        },
                        "general": {
                            "pos": 13,
                            "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=VARIANT",
                            "image": "https://i5.walmartimages.com/seo/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt_1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
                            "title": "Adidas Men's California 2.0 Crew Neck Short Sleeve Tee T-Shirt",
                            "sponsored": false,
                            "product_id": "833623567",
                            "out_of_stock": false,
                            "section_title": "Results for \"adidas\""
                        },
                        "variants": [
                            {
                                "url": "/ip/Adidas-Men-California-2-0-Tee-S-Black/524412260?classType=undefined&variantFieldId=actual_color",
                                "image": "https://i5.walmartimages.com/asr/f60cd6ff-41fd-484d-b76e-57f6022c2201.eedd632efbb4ce3803e9ef8306190aa3.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
                                "title": "Black/White",
                                "product_id": "524412260"
                            },
                            {
                                "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=undefined&variantFieldId=actual_color",
                                "image": "https://i5.walmartimages.com/asr/1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
                                "title": "White",
                                "product_id": "833623567"
                            }
                        ],
                        "fulfillment": {
                            "pickup": false,
                            "delivery": false,
                            "shipping": true,
                            "free_shipping": true
                        }
                    },
                    ...
                ],
                "location": {
                    "city": "Sacramento",
                    "state": "CA",
                    "zipcode": "95829",
                    "store_id": "3081"
                },
                "page_details": {
                    "page": 1,
                    "total_results": 11524,
                    "last_visible_page": 25
                },
                "parse_status_code": 12000
            },
            "created_at": "2024-10-16 09:57:40",
            "updated_at": "2024-10-16 09:57:46",
            "page": 1,
            "url": "https://www.walmart.com/search?q=adidas",
            "job_id": "7252256376867528705",
            "is_render_forced": false,
            "status_code": 200,
            "parser_type": "walmart_search_new"
        }
    ]
}
```

</details>

## Diccionario de datos de salida

#### **Ejemplo de HTML**

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXfYKEySR7wMk6YcQlNwL_-Md1jjuDsNYTvGWce18gD6iEPG_h6xZNBify4gxkgVVIL8paPHhpH3nM1hJPHgtyDsq_d3hfieZdRKXGwmSq8k2Qor046eUzY-ZVLMuE8V5pHs7AxC-L8aHx5KZVa0ivMlY0c?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

#### **Estructura JSON**

La tabla siguiente presenta una lista detallada de cada elemento de la página de búsqueda que analizamos, junto con su descripción y tipo de datos. La tabla también incluye algunos metadatos.

<table><thead><tr><th width="245">Clave</th><th width="327">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>url</code></td><td>La URL de la página de búsqueda.</td><td>cadena</td></tr><tr><td><code>facets</code></td><td>Un arreglo que contiene detalles de cualquier facet de búsqueda disponible (refinamientos) mostrado en la página de resultados de búsqueda.</td><td>arreglo</td></tr><tr><td><code>results</code></td><td>Resultados de la página de búsqueda.</td><td>arreglo</td></tr><tr><td><code>results.general</code></td><td>Un objeto con detalles generales del producto.</td><td>objeto</td></tr><tr><td><code>results.price</code></td><td>Un objeto con detalles de precios del producto.</td><td>objeto</td></tr><tr><td><code>results.rating</code></td><td>El objeto contiene detalles sobre la calificación del producto.</td><td>objeto</td></tr><tr><td><code>results.seller</code></td><td>El objeto contiene información del vendedor.</td><td>objeto</td></tr><tr><td><code>results.variants</code> (opcional)</td><td>El arreglo contiene una lista de variantes del producto.</td><td>arreglo</td></tr><tr><td><code>results.fulfillment</code></td><td>El objeto contiene detalles sobre las opciones de entrega del producto.</td><td>objeto</td></tr><tr><td><code>location</code></td><td>Proporciona información sobre la ubicación en la que se ejecutó la solicitud.</td><td>objeto</td></tr><tr><td><code>page_details</code></td><td>El objeto contiene datos sobre la página de resultados de la consulta de búsqueda.</td><td>objeto</td></tr><tr><td><code>parse_status_code</code></td><td>El código de estado del trabajo de análisis. Puede ver los códigos de estado del analizador descritos <a href="https://github.com/oxylabs/gitbook-public-english/blob/master/scraping-solutions/web-scraper-api/targets/walmart/broken-reference/README.md"><strong>aquí</strong></a>.</td><td>entero</td></tr><tr><td><code>created_at</code></td><td>La marca de tiempo en que se creó el trabajo de scraping.</td><td>marca de tiempo</td></tr><tr><td><code>updated_at</code></td><td>La marca de tiempo en que se finalizó el trabajo de scraping.</td><td>marca de tiempo</td></tr><tr><td><code>page</code></td><td>Número de página de la que se extrajeron los datos</td><td>entero</td></tr><tr><td><code>url</code></td><td>La URL de la página de búsqueda.</td><td>cadena</td></tr><tr><td><code>job_id</code></td><td>El ID del trabajo asociado al trabajo de scraping.</td><td>cadena</td></tr><tr><td><code>status_code</code></td><td>El código de estado del trabajo de scraping. Puede ver los códigos de estado del scraper descritos <a href="https://github.com/oxylabs/gitbook-public-english/blob/master/scraping-solutions/web-scraper-api/targets/walmart/broken-reference/README.md"><strong>aquí</strong></a>.</td><td>entero</td></tr><tr><td><code>is_render_forced</code></td><td>Identifica si se ha forzado el renderizado para esta solicitud.</td><td>booleano</td></tr><tr><td><code>parser_type</code></td><td>Tipo de analizador usado para extraer los datos (p. ej., "walmart_search_new").</td><td>cadena</td></tr></tbody></table>

### **General**

<figure><img src="/files/9baabe5b92e98f08daec96942ed8050625dcac61" alt="" width="207"><figcaption></figcaption></figure>

```javascript
...
"general": {
    "pos": 1,
    "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=VARIANT",
    "image": "https://i5.walmartimages.com/seo/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt_1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
    "title": "Adidas Men's California 2.0 Crew Neck Short Sleeve Tee T-Shirt",
    "sponsored": true,
    "product_id": "833623567",
    "out_of_stock": false,
    "section_title": "Results for \"adidas\""
},
...
```

<table><thead><tr><th>Clave (general)</th><th width="319">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>pos</code></td><td>Un indicador que denota la posición de un elemento dado dentro de la sección a la que se atribuye el producto.</td><td>entero</td></tr><tr><td><code>url</code></td><td>La URL del producto.</td><td>cadena</td></tr><tr><td><code>image</code></td><td>La URL de la imagen principal del producto.</td><td>cadena</td></tr><tr><td><code>title</code></td><td>Título o nombre del producto.</td><td>cadena</td></tr><tr><td><code>product_id</code></td><td>El ID del producto.</td><td>cadena</td></tr><tr><td><code>sponsored</code></td><td>Identifica si el producto está patrocinado.</td><td>booleano</td></tr><tr><td><code>badge</code> (opcional)</td><td>Oferta, elección popular, más vendido, 100+ comprados desde ayer</td><td>lista de cadenas</td></tr><tr><td><code>section_title</code></td><td>El nombre de la sección a la que se atribuye el producto en la página de búsqueda.</td><td>cadena</td></tr><tr><td><code>out_of_stock</code></td><td>Indica si el artículo está agotado.</td><td>booleano</td></tr></tbody></table>

### Precio

<figure><img src="/files/8d53855d71f9084fca9a360e425491dc00caa13e" alt="" width="249"><figcaption></figcaption></figure>

```javascript
...
"price": {
    "price": 1149.99,
    "currency": "USD",
    "price_min": 1149.99
    "price_max": 1399.00
},
...
```

<table><thead><tr><th width="241">Clave (precio)</th><th width="327">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>price</code>(opcional)</td><td>El precio actual del producto sin descuentos.</td><td>flotante</td></tr><tr><td><code>price_strikethrough</code>(opcional)</td><td>El precio tachado es un precio anterior, un precio de paquete o un precio de lista.</td><td>flotante</td></tr><tr><td><code>currency</code></td><td>El código de tres letras ISO 4217 de la moneda.</td><td>cadena</td></tr><tr><td><code>price_min</code>(opcional)</td><td>El precio mínimo del producto en caso de precio por rango.</td><td>flotante</td></tr><tr><td><code>price_max</code>(opcional)</td><td>El precio máximo del producto en caso de precio por rango.</td><td>flotante</td></tr></tbody></table>

### Calificación

<figure><img src="/files/2c91a2e6bf4a15bfcfaafb216392d3b80b6fdba1" alt="" width="362"><figcaption></figcaption></figure>

```javascript
...
"rating": {
    "count": 428,
    "rating": 4.6
},
...
```

| Clave (calificación) | Descripción                            | Tipo     |
| -------------------- | -------------------------------------- | -------- |
| `rating`             | Calificación promedio del producto.    | flotante |
| `count`              | Número de calificaciones del producto. | entero   |

### Vendedor

Datos no mostrados visualmente.

<table><thead><tr><th>Clave (vendedor)</th><th width="327">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>name</code></td><td>Nombre del vendedor.</td><td>cadena</td></tr><tr><td><code>id</code></td><td>ID del vendedor.</td><td>cadena</td></tr></tbody></table>

### Variantes

<figure><img src="/files/cc4ae86f2baed6fc08082cf4965d8a0b7599c98b" alt="" width="244"><figcaption></figcaption></figure>

```json
...
"variants": [
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Gold-M1-Chip-8GB-RAM-256GB-storage/550880792?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/a9857413-b9fa-4c8d-9f81-7ea4c93889a1.410fd3cb7fe36102bbe2d3dca32a8075.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "Gold",
        "product_id": "550880792"
    },
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Silver-M1-Chip-8GB-RAM-256GB-storage/715596133?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/056c08d5-2d68-44f2-beb0-dd8a47e2f8e8.2a2a210657937c3c11b37df5be8fa4ad.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "Silver",
        "product_id": "715596133"
    },
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Space-Gray-M1-Chip-8GB-RAM-256GB-storage/609040889?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/af1d4133-6de9-4bdc-b1c6-1ca8bd0af7a0.c0eb74c31b2cb05df4ed11124d0e255b.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "Space Gray",
        "product_id": "609040889"
    }
],
...
```

<table><thead><tr><th width="248">Clave (variantes)</th><th width="342">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>url</code></td><td>URL de la variación del producto.</td><td>cadena</td></tr><tr><td><code>title</code></td><td>El título de la variación del producto.</td><td>cadena</td></tr><tr><td><code>product_id</code></td><td>El ID de la variación del producto.</td><td>cadena</td></tr><tr><td><code>image</code></td><td>La imagen de la variación del producto.</td><td>cadena</td></tr></tbody></table>

### Cumplimiento

<figure><img src="/files/b2478e2cf3745f45d62be0db73a803416f010c48" alt="" width="395"><figcaption></figcaption></figure>

```json
 ...
"fulfillment": {
    "pickup": true,
    "delivery": true,
    "shipping": true,
    "free_shipping": false
}
...
```

<table><thead><tr><th>Clave (cumplimiento)</th><th width="315">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>pickup</code></td><td>Indica si el producto está disponible para recogida en tienda.</td><td>booleano</td></tr><tr><td><code>delivery</code></td><td><p>Indica si el producto está disponible para entrega desde la tienda.</p><p>La entrega proviene de tu tienda local, si está disponible.</p></td><td>booleano</td></tr><tr><td><code>shipping</code></td><td>Indica si el producto está disponible para envío a domicilio.</td><td>booleano</td></tr><tr><td><code>free_shipping</code></td><td>Indica si el envío es gratuito.</td><td>booleano</td></tr></tbody></table>

### Facetas

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXeRlJ-6IDkaftEvHHQTmA8RsJq9YJ3hNQAcyOMvm4RtMZpLLE7iRdLPwgI3_PXJ4xU33QFfefh2OC8Xt0nDr5uQKxDqhHe_FUupBBIE916dAlKH_4oCQY3lmFSiEeTkUFcc8ma0h1LR13j0RkNykhdaHO5I?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

```json
... 
"facets": [
    {
        "type": "sort",
        "values": [
            {
                "name": "Best Match"
            },
            {
                "name": "Price Low"
            },
            {
                "name": "Price High"
            },
            {
                "name": "Best Seller"
            }
        ],
        "display_name": "Sort by"
    },
...
```

<table><thead><tr><th width="243">Clave (facetas)</th><th width="351">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>display_name</code></td><td>El nombre visible del facet (es decir, el nombre que ve el usuario).</td><td>cadena</td></tr><tr><td><code>type</code></td><td>El tipo del facet.</td><td>cadena</td></tr><tr><td><code>values</code></td><td>El arreglo de valores muestra los valores del facet dado.</td><td>arreglo</td></tr><tr><td><code>values.name</code></td><td>El nombre del valor del facet.</td><td>cadena</td></tr><tr><td><code>values.item_count</code> (opcional)</td><td>El número de elementos disponibles para el facet específico.</td><td>entero</td></tr></tbody></table>

### Ubicación

<figure><img src="/files/a102f12e04fd26dfa068573933eeb32a5a834517" alt="" width="384"><figcaption></figcaption></figure>

```json
...
"location": {
    "city": "Sacramento",
    "state": "CA",
    "store_id": "8915",
    "zip_code": "95829"
},
...
```

<table><thead><tr><th>Clave (ubicación)</th><th width="335">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>city</code></td><td>La ciudad en la que se ejecutó la solicitud.</td><td>cadena</td></tr><tr><td><code>state</code></td><td>El estado en el que se ejecutó la solicitud.</td><td>cadena</td></tr><tr><td><code>zip_code</code></td><td>El código postal en el que se ejecutó la solicitud.</td><td>cadena</td></tr><tr><td><code>store_id</code></td><td>El ID de la tienda en la que se ejecutó la solicitud.</td><td>cadena</td></tr></tbody></table>

### Detalles de la página

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXdDeZE3P2q2mpUFrQEV_fWb_KihYfxfjHkYY3NRRA9OL01lC83tilGKDepWHE62LEoG8Qp9rYX6PYHM44CfgQdoZDuev4f1P9jGloQ8Hido9Fy-QFS4k8A4nmCWBA6F59jhRN7ASrkAJWn0Heb0RuD1gAbs?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

```json
 ...
"page_details": {
    "page": 1,
    "total_results": 11524,
    "last_visible_page": 25
},
...
```

<table><thead><tr><th>Clave (detalles de la página)</th><th width="306">Descripción</th><th>Clave</th></tr></thead><tbody><tr><td><code>total_results</code></td><td>El número total de resultados de búsqueda que se muestran como disponibles.</td><td>entero</td></tr><tr><td><code>last_visible_page</code></td><td>Número de la última página de resultados de búsqueda.</td><td>entero</td></tr><tr><td><code>page</code></td><td>Número de página de la que se extrajeron los datos del producto</td><td>entero</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/api-targets/es/comercio-electronico/walmart/search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
