> 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/video-and-social-media/youtube/autocomplete.md).

# Autocompletado

Recupera sugerencias de palabras clave de autocompletado de YouTube para cualquier término de búsqueda, con idioma y ubicación configurables.

Con la `youtube_autocomplete` fuente, puedes obtener sugerencias de palabras clave relacionadas para cualquier término de búsqueda. Para encontrar videos para una sugerencia, pásala como valor de consulta para `youtube_search`. Cada fuente se llama por separado: autocomplete devuelve las sugerencias, search devuelve los videos del término que elijas.

### Ejemplos de solicitud

Los siguientes ejemplos muestran cómo recuperar sugerencias de términos de búsqueda para una consulta dada.

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

```shell
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "youtube_autocomplete",
        "query": "how to make",
        "language": "en",
        "location": "US"
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint

# Structure payload.
payload = {
    "source": "youtube_autocomplete",
    "query": "how to make",
    "language": "en",
    "location": "US"
}

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

# Print 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: "youtube_autocomplete",
    query: "how to make",
    language: "en",
    location: "US"
};

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="PHP" %}

```php
<?php

$params = array(
    'source' => 'youtube_autocomplete',
    'query' => 'how to make',
    'language' => 'en',
    'location' => 'US'
);

$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"

	// Define the payload
	payload := map[string]interface{}{
		"source":   "youtube_autocomplete",
		"query":    "how to make",
		"language": "en",
		"location": "US",
	}

	jsonValue, err := json.Marshal(payload)
	if err != nil {
		fmt.Println("Error marshalling JSON:", err)
		return
	}

	client := &http.Client{}
	request, err := http.NewRequest("POST", "https://realtime.oxylabs.io/v1/queries", bytes.NewBuffer(jsonValue))
	if err != nil {
		fmt.Println("Error creating request:", err)
		return
	}

	request.SetBasicAuth(Username, Password)
	request.Header.Set("Content-Type", "application/json")

	response, err := client.Do(request)
	if err != nil {
		fmt.Println("Error making request:", err)
		return
	}
	defer response.Body.Close()

	responseText, err := ioutil.ReadAll(response.Body)
	if err != nil {
		fmt.Println("Error reading response:", err)
		return
	}

	fmt.Println(string(responseText))
}
```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Net.Http;
using System.Net.Http.Json;
using System.Text;
using System.Threading.Tasks;

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

            var parameters = new
            {
                source = "youtube_autocomplete",
                query = "how to make",
                language = "en",
                location = "US"
            };

            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(Encoding.UTF8.GetBytes(authenticationString));
            requestMessage.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);

            try
            {
                var response = await client.SendAsync(requestMessage);
                response.EnsureSuccessStatusCode();

                var contents = await response.Content.ReadAsStringAsync();
                Console.WriteLine(contents);
            }
            catch (HttpRequestException e)
            {
                Console.WriteLine($"Request error: {e.Message}");
            }
        }
    }
}
```

{% 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() {
        // Construct JSON payload
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "youtube_autocomplete");
        jsonObject.put("query", "how to make");
        jsonObject.put("language", "en");
        jsonObject.put("location", "US");

        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": "youtube_autocomplete",
    "query": "how to make",
    "language": "en",
    "location": "US"
}
```

{% endtab %}
{% endtabs %}

Usamos el método de integración síncrona [**Realtime**](/products/es/web-scraper-api/integration-methods/realtime.md) en nuestros ejemplos. Si deseas usar [**Proxy Endpoint**](/products/es/web-scraper-api/integration-methods/proxy-endpoint.md) o la 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) .

### Ejemplo de salida

```json
{
    "results": [
        {
            "content": "window.google.ac.h([\"how to make\",[[\"how to make a paper airplane\",0,[512,433,131]],[\"how to make slime\",0,[512,433]],[\"how to make a paper dart\",0,[512]],[\"how to make french toast\",0,[512,433]],[\"how to make a bow out of ribbon\",0,[512]],[\"how to make pancakes\",0,[512,433]],[\"how to make paper stars\",0,[512]],[\"how to make slime without glue and activator\",0,[512,433]],[\"how to make paper nails\",0,[512]],[\"how to make an omelette\",0,[512,433]],[\"how to make scrambled eggs\",0,[512,433]],[\"how to make fried rice\",0,[512]],[\"how to make a roblox game\",0,[512,433]],[\"how to make a youtube channel\",0,[512,433]]],{\"j\":\"5\",\"k\":1}])",
            "created_at": "2026-09-17 13:03:21",
            "updated_at": "2026-09-17 13:03:23",
            "page": 1,
            "url": "https://suggestqueries-clients6.youtube.com/complete/search?ds=yt&hl=en-lt&gl=US&client=youtube&gs_ri=youtube&sugexp=uqap13nms10n_e1,ytpso.bo.me%3D1,ytpsoso.bo.me%3D1,ytpso.bo.bro.mi%3D51488868,ytpsoso.bo.bro.mi%3D51488868,ytpso.bo.bro.vsw%3D1.0,ytpso.bo.bro.lsw%3D0.0,ytpsoso.bo.bro.vsw%3D1.0,ytpsoso.bo.bro.lsw%3D0.0&h=180&w=320&ytvs=1&gs_id=5&q=how%20to%20make",
            "job_id": "7506336999448568833",
            "is_render_forced": false,
            "status_code": 200,
            "type": "raw"
        }
    ]
}
```

### Valores de los parámetros de solicitud

<table><thead><tr><th width="227">Parámetro</th><th width="289.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>Establece el scraper.</td><td><code>youtube_autocomplete</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>query</code></strong></mark></td><td>El término de búsqueda para el que se deben devolver sugerencias de palabras clave.</td><td>–</td></tr><tr><td><code>location</code></td><td>Ubicación de búsqueda (código de país de 2 letras).</td><td><code>US</code></td></tr><tr><td><code>language</code></td><td>Código de idioma de búsqueda.</td><td><code>en</code></td></tr><tr><td><code>callback_url</code></td><td>URL de tu endpoint de callback. <a href="/products/es/web-scraper-api/integration-methods/push-pull.md"><strong>Más información</strong></a></td><td>–</td></tr></tbody></table>

– parámetro obligatorio

### Localización

Para los valores disponibles de `location` y `language` los parámetros, consulta las tablas siguientes.

<details>

<summary>Ubicaciones disponibles para <code>youtube_autocomplete</code></summary>

| Valor del parámetro | País                                          |
| ------------------- | --------------------------------------------- |
| af                  | Afganistán                                    |
| al                  | Albania                                       |
| dz                  | Argelia                                       |
| as                  | Samoa Americana                               |
| ad                  | Andorra                                       |
| ao                  | Angola                                        |
| ai                  | Anguila                                       |
| aq                  | Antártida                                     |
| ag                  | Antigua y Barbuda                             |
| ar                  | Argentina                                     |
| am                  | Armenia                                       |
| aw                  | Aruba                                         |
| au                  | Australia                                     |
| at                  | Austria                                       |
| az                  | Azerbaiyán                                    |
| bs                  | Bahamas                                       |
| bh                  | Baréin                                        |
| bd                  | Bangladés                                     |
| bb                  | Barbados                                      |
| by                  | Bielorrusia                                   |
| be                  | Bélgica                                       |
| bz                  | Belice                                        |
| bj                  | Benín                                         |
| bm                  | Bermudas                                      |
| bt                  | Bután                                         |
| bo                  | Bolivia                                       |
| ba                  | Bosnia y Herzegovina                          |
| bw                  | Botsuana                                      |
| bv                  | Isla Bouvet                                   |
| br                  | Brasil                                        |
| io                  | Territorio Británico del Océano Índico        |
| bn                  | Brunéi Darussalam                             |
| bg                  | Bulgaria                                      |
| bf                  | Burkina Faso                                  |
| bi                  | Burundi                                       |
| kh                  | Camboya                                       |
| cm                  | Camerún                                       |
| ca                  | Canadá                                        |
| cv                  | Cabo Verde                                    |
| ky                  | Islas Caimán                                  |
| cf                  | República Centroafricana                      |
| td                  | Chad                                          |
| cl                  | Chile                                         |
| cn                  | China                                         |
| cx                  | Isla de Navidad                               |
| cc                  | Islas Cocos (Keeling)                         |
| co                  | Colombia                                      |
| km                  | Comoras                                       |
| cg                  | Congo                                         |
| cd                  | Congo, República Democrática del              |
| ck                  | Islas Cook                                    |
| cr                  | Costa Rica                                    |
| ci                  | Costa de Marfil                               |
| hr                  | Croacia                                       |
| cu                  | Cuba                                          |
| cy                  | Chipre                                        |
| cz                  | República Checa                               |
| dk                  | Dinamarca                                     |
| dj                  | Yibuti                                        |
| dm                  | Dominica                                      |
| do                  | República Dominicana                          |
| ec                  | Ecuador                                       |
| eg                  | Egipto                                        |
| sv                  | El Salvador                                   |
| gq                  | Guinea Ecuatorial                             |
| er                  | Eritrea                                       |
| ee                  | Estonia                                       |
| et                  | Etiopía                                       |
| fk                  | Islas Malvinas (Falkland)                     |
| fo                  | Islas Feroe                                   |
| fj                  | Fiyi                                          |
| fi                  | Finlandia                                     |
| fr                  | Francia                                       |
| gf                  | Guayana Francesa                              |
| pf                  | Polinesia Francesa                            |
| tf                  | Territorios Australes Franceses               |
| ga                  | Gabón                                         |
| gm                  | Gambia                                        |
| ge                  | Georgia                                       |
| de                  | Alemania                                      |
| gh                  | Ghana                                         |
| gi                  | Gibraltar                                     |
| gr                  | Grecia                                        |
| gl                  | Groenlandia                                   |
| gd                  | Granada                                       |
| gp                  | Guadalupe                                     |
| gu                  | Guam                                          |
| gt                  | Guatemala                                     |
| gn                  | Guinea                                        |
| gw                  | Guinea-Bisáu                                  |
| gy                  | Guyana                                        |
| ht                  | Haití                                         |
| hm                  | Isla Heard e Islas McDonald                   |
| va                  | Santa Sede (Estado de la Ciudad del Vaticano) |
| hn                  | Honduras                                      |
| hk                  | Hong Kong                                     |
| hu                  | Hungría                                       |
| is                  | Islandia                                      |
| in                  | India                                         |
| id                  | Indonesia                                     |
| ir                  | Irán, República Islámica de                   |
| iq                  | Irak                                          |
| ie                  | Irlanda                                       |
| il                  | Israel                                        |
| it                  | Italia                                        |
| jm                  | Jamaica                                       |
| jp                  | Japón                                         |
| jo                  | Jordania                                      |
| kz                  | Kazajistán                                    |
| ke                  | Kenia                                         |
| ki                  | Kiribati                                      |
| kp                  | Corea del Norte                               |
| kr                  | Corea del Sur                                 |
| kw                  | Kuwait                                        |
| kg                  | Kirguistán                                    |
| la                  | República Democrática Popular Lao             |
| lv                  | Letonia                                       |
| lb                  | Líbano                                        |
| ls                  | Lesoto                                        |
| lr                  | Liberia                                       |
| ly                  | Libia                                         |
| li                  | Liechtenstein                                 |
| lt                  | Lituania                                      |
| lu                  | Luxemburgo                                    |
| mo                  | Macao                                         |
| mk                  | Macedonia del Norte                           |
| mg                  | Madagascar                                    |
| mw                  | Malaui                                        |
| my                  | Malasia                                       |
| mv                  | Maldivas                                      |
| ml                  | Malí                                          |
| mt                  | Malta                                         |
| mh                  | Islas Marshall                                |
| mq                  | Martinica                                     |
| mr                  | Mauritania                                    |
| mu                  | Mauricio                                      |
| yt                  | Mayotte                                       |
| mx                  | México                                        |
| fm                  | Micronesia, Estados Federados de              |
| md                  | Moldavia, República de                        |
| mc                  | Mónaco                                        |
| mn                  | Mongolia                                      |
| ms                  | Montserrat                                    |
| ma                  | Marruecos                                     |
| mz                  | Mozambique                                    |
| mm                  | Myanmar                                       |
| na                  | Namibia                                       |
| nr                  | Nauru                                         |
| np                  | Nepal                                         |
| nl                  | Países Bajos                                  |
| nc                  | Nueva Caledonia                               |
| nz                  | Nueva Zelanda                                 |
| ni                  | Nicaragua                                     |
| ne                  | Níger                                         |
| ng                  | Nigeria                                       |
| nu                  | Niue                                          |
| nf                  | Isla Norfolk                                  |
| mp                  | Islas Marianas del Norte                      |
| no                  | Noruega                                       |
| om                  | Omán                                          |
| pk                  | Pakistán                                      |
| pw                  | Palaos                                        |
| ps                  | Territorio Palestino Ocupado                  |
| pa                  | Panamá                                        |
| pg                  | Papúa Nueva Guinea                            |
| py                  | Paraguay                                      |
| pe                  | Perú                                          |
| ph                  | Filipinas                                     |
| pn                  | Pitcairn                                      |
| pl                  | Polonia                                       |
| pt                  | Portugal                                      |
| pr                  | Puerto Rico                                   |
| qa                  | Catar                                         |
| re                  | Reunión                                       |
| ro                  | Rumanía                                       |
| ru                  | Federación Rusa                               |
| rw                  | Ruanda                                        |
| sh                  | Santa Elena                                   |
| kn                  | San Cristóbal y Nieves                        |
| lc                  | Santa Lucía                                   |
| pm                  | San Pedro y Miquelón                          |
| vc                  | San Vicente y las Granadinas                  |
| ws                  | Samoa                                         |
| sm                  | San Marino                                    |
| st                  | Santo Tomé y Príncipe                         |
| sa                  | Arabia Saudita                                |
| sn                  | Senegal                                       |
| rs                  | Serbia y Montenegro                           |
| sc                  | Seychelles                                    |
| sl                  | Sierra Leona                                  |
| sg                  | Singapur                                      |
| sk                  | Eslovaquia                                    |
| si                  | Eslovenia                                     |
| sb                  | Islas Salomón                                 |
| so                  | Somalia                                       |
| za                  | Sudáfrica                                     |
| gs                  | Georgia del Sur y las Islas Sandwich del Sur  |
| es                  | España                                        |
| lk                  | Sri Lanka                                     |
| sd                  | Sudán                                         |
| sr                  | Surinam                                       |
| sj                  | Svalbard y Jan Mayen                          |
| sz                  | Suazilandia                                   |
| se                  | Suecia                                        |
| ch                  | Suiza                                         |
| sy                  | República Árabe Siria                         |
| tw                  | Taiwán                                        |
| tj                  | Tayikistán                                    |
| tz                  | Tanzania, República Unida de                  |
| th                  | Tailandia                                     |
| tl                  | Timor-Leste                                   |
| tg                  | Togo                                          |
| tk                  | Tokelau                                       |
| to                  | Tonga                                         |
| tt                  | Trinidad y Tobago                             |
| tn                  | Túnez                                         |
| tr                  | Turquía                                       |
| tm                  | Turkmenistán                                  |
| tc                  | Islas Turcas y Caicos                         |
| tv                  | Tuvalu                                        |
| ug                  | Uganda                                        |
| ua                  | Ucrania                                       |
| ae                  | Emiratos Árabes Unidos                        |
| uk                  | Reino Unido                                   |
| gb                  | Reino Unido                                   |
| us                  | Estados Unidos                                |
| um                  | Islas Ultramarinas Menores de Estados Unidos  |
| uy                  | Uruguay                                       |
| uz                  | Uzbekistán                                    |
| vu                  | Vanuatu                                       |
| ve                  | Venezuela                                     |
| vn                  | Vietnam                                       |
| vg                  | Islas Vírgenes Británicas                     |
| vi                  | Islas Vírgenes de EE. UU.                     |
| wf                  | Wallis y Futuna                               |
| eh                  | Sáhara Occidental                             |
| ye                  | Yemen                                         |
| zm                  | Zambia                                        |
| zw                  | Zimbabue                                      |
| gg                  | Guernsey                                      |
| je                  | Jersey                                        |
| im                  | Isla de Man                                   |
| me                  | Montenegro                                    |

</details>

<details>

<summary>Idiomas disponibles para <code>youtube_autocomplete</code></summary>

| Valor del parámetro | Idioma                    |
| ------------------- | ------------------------- |
| ach                 | Luo                       |
| af                  | Afrikáans                 |
| ak                  | Akan                      |
| am                  | amárico                   |
| ar                  | árabe                     |
| az                  | azerbaiyano               |
| be                  | bielorruso                |
| bem                 | bemba                     |
| bg                  | búlgaro                   |
| bh                  | bihari                    |
| bn                  | bengalí                   |
| br                  | bretón                    |
| bs                  | bosnio                    |
| bt                  | butanés                   |
| ca                  | catalán                   |
| chr                 | cherokee                  |
| ckb                 | kurdo (soraní)            |
| co                  | corsa                     |
| crs                 | criollo seychellense      |
| cs                  | checo                     |
| cy                  | galés                     |
| da                  | danés                     |
| de                  | alemán                    |
| ee                  | ewe                       |
| el                  | griego                    |
| en                  | inglés                    |
| eo                  | esperanto                 |
| es                  | español                   |
| es-419              | español (latinoamericano) |
| et                  | estonio                   |
| eu                  | euskera                   |
| fa                  | persa                     |
| fi                  | finés                     |
| fo                  | feroés                    |
| fr                  | francés                   |
| fy                  | frisio                    |
| ga                  | irlandés                  |
| gaa                 | ga                        |
| gd                  | gaélico escocés           |
| gl                  | gallego                   |
| gn                  | guaraní                   |
| gu                  | gujaratí                  |
| ha                  | hausa                     |
| haw                 | hawaiano                  |
| he                  | hebreo                    |
| hi                  | hindi                     |
| hr                  | croata                    |
| ht                  | criollo haitiano          |
| hu                  | húngaro                   |
| hy                  | armenio                   |
| ia                  | interlingua               |
| id                  | indonesio                 |
| ig                  | igbo                      |
| is                  | islandés                  |
| it                  | italiano                  |
| iw                  | hebreo                    |
| ja                  | japonés                   |
| jw                  | javanés                   |
| ka                  | georgiano                 |
| kg                  | kongo                     |
| kk                  | kazajo                    |
| kl                  | groenlandés               |
| km                  | camboyano                 |
| kn                  | canarés                   |
| ko                  | coreano                   |
| kri                 | krio (Sierra Leona)       |
| ku                  | kurdo                     |
| ky                  | kirguís                   |
| la                  | latín                     |
| lg                  | luganda                   |
| ln                  | lingala                   |
| lo                  | laosiano                  |
| loz                 | lozi                      |
| lt                  | lituano                   |
| lua                 | tshiluba                  |
| lv                  | letón                     |
| mfe                 | criollo mauriciano        |
| mg                  | malgache                  |
| mi                  | maorí                     |
| mk                  | macedonio                 |
| ml                  | malabar                   |
| mn                  | mongol                    |
| mo                  | moldavo                   |
| mr                  | maratí                    |
| ms                  | malayo                    |
| mt                  | maltés                    |
| mv                  | Maldivas                  |
| my                  | Myanmar                   |
| ne                  | nepalí                    |
| nl                  | neerlandés                |
| nn                  | noruego (nynorsk)         |
| no                  | noruego                   |
| nso                 | sotho del norte           |
| ny                  | chichewa                  |
| nyn                 | runyakitara               |
| oc                  | occitano                  |
| om                  | oromo                     |
| or                  | oriya                     |
| pa                  | punyabí                   |
| pcm                 | pidgin nigeriano          |
| pl                  | polaco                    |
| ps                  | pastún                    |
| pt                  | portugués                 |
| pt-br               | portugués (Brasil)        |
| pt-pt               | portugués (Portugal)      |
| qu                  | quechua                   |
| rm                  | romanche                  |
| rn                  | kirundi                   |
| ro                  | rumano                    |
| ru                  | ruso                      |
| rw                  | kinyarwanda               |
| sd                  | sindhi                    |
| sh                  | serbocroata               |
| si                  | cingalés                  |
| sk                  | eslovaco                  |
| sl                  | esloveno                  |
| sn                  | shona                     |
| so                  | somalí                    |
| sq                  | albanés                   |
| sr                  | serbio                    |
| sr-me               | montenegrino              |
| st                  | sesotho                   |
| su                  | sundanés                  |
| sv                  | sueco                     |
| sw                  | suajili                   |
| ta                  | tamil                     |
| te                  | telugu                    |
| tg                  | tayiko                    |
| th                  | tailandés                 |
| ti                  | tigrinya                  |
| tk                  | turcomano                 |
| tl                  | filipino                  |
| tn                  | Setsuana                  |
| to                  | Tonga                     |
| tr                  | turco                     |
| tt                  | tártaro                   |
| tum                 | tumbuka                   |
| tw                  | twi                       |
| ug                  | uigur                     |
| uk                  | ucraniano                 |
| ur                  | urdu                      |
| uz                  | uzbeko                    |
| vi                  | vietnamita                |
| vu                  | Vanuatu                   |
| wo                  | wolof                     |
| ws                  | Samoa                     |
| xh                  | xhosa                     |
| yi                  | yidis                     |
| yo                  | yoruba                    |
| zh-cn               | chino (simplificado)      |
| zh-tw               | chino (tradicional)       |
| zu                  | zulú                      |

</details>


---

# 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/video-and-social-media/youtube/autocomplete.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.
