# ChatGPT

El `chatgpt` la fuente está diseñada para enviar prompts y recuperar respuestas conversacionales de ChatGPT. Devuelve tanto el texto completo de la respuesta de ChatGPT como sus metadatos estructurados.

## Ejemplos de solicitudes

Los siguientes ejemplos de código muestran cómo enviar un prompt y recuperar una respuesta de ChatGPT con resultados parseados.

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

```bash
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "chatgpt",
        "prompt": "best supplements for better sleep",
        "parse": true,
        "search": true,
        "geo_location": "United States"
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint


# Estructurar la carga.
payload = {
    'source': 'chatgpt',
    'prompt': 'best supplements for better sleep',
    'parse': True,
    'search': True,
    'geo_location': "United States"
}


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

# Imprimir la respuesta formateada en stdout.
pprint(response.json())
```

{% endtab %}

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

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

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "chatgpt",
    prompt: "best supplements for better sleep",
    parse: true,
    search: true,
    geo_location: "United States"
};

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
https://realtime.oxylabs.io/v1/queries?source=chatgpt&prompt=best%20supplements%20for%20better%20sleep&parse=true&search=true&geo_location=United%20States&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'chatgpt',
    'prompt' => 'best supplements for better sleep',
    'parse' => true,
    'search' => true,
    'geo_location' => "United States"
);

$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": "chatgpt",
        	"prompt": "best supplements for better sleep",
        	"parse":  true,
        	"search": true,
        	"geo_location": "United States"
    	}

	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 = "chatgpt",
                prompt = "best supplements for better sleep",
                parse = true,
                search = true,
                geo_location = "United States"
            };

            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.JSONArray;
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", "chatgpt");
        jsonObject.put("prompt", "best supplements for better sleep");
        jsonObject.put("parse", true);
        jsonObject.put("search", true);
        jsonObject.put("geo_location", "United States");

        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": "chatgpt",
        "prompt": "best supplements for better sleep",
        "parse": true,
        "search": true,
        "geo_location": "United States"
}
```

{% endtab %}
{% endtabs %}

Nuestros ejemplos usan el método de integración síncrono [**Realtime**](https://developers.oxylabs.io/documentation/es/soluciones-de-scraping/web-scraper-api/integration-methods/realtime) Si desea usar [**Proxy Endpoint**](https://developers.oxylabs.io/documentation/es/soluciones-de-scraping/web-scraper-api/integration-methods/proxy-endpoint) o asincrónico [**Push-Pull**](https://developers.oxylabs.io/documentation/es/soluciones-de-scraping/web-scraper-api/integration-methods/push-pull) para la integración, consulte la [**página de métodos de integración**](https://developers.oxylabs.io/documentation/es/soluciones-de-scraping/web-scraper-api/integration-methods) página.

{% hint style="warning" %}
B**atch requests** no están actualmente **admitidos** para la `chatgpt` fuente.&#x20;
{% endhint %}

## Valores de los parámetros de la solicitud

Configuración básica y opciones de personalización para scrapear ChatGPT.

<table><thead><tr><th width="222">Parámetro</th><th width="350.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>chatgpt</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>prompt</code></strong></mark></td><td>El prompt o la pregunta que se enviará a ChatGPT. Debe tener menos de 4000 símbolos.</td><td>-</td></tr><tr><td><code>search</code></td><td>Activa que ChatGPT realice una búsqueda web para el prompt haciendo clic en el botón asociado de la interfaz.</td><td><code>true</code></td></tr><tr><td><code>render</code></td><td>El renderizado de JavaScript se aplica por defecto para <code>chatgpt</code>. <a href="../features/js-rendering-and-browser-control/javascript-rendering"><strong>Más información</strong></a><strong>.</strong></td><td>-</td></tr><tr><td><code>parse</code></td><td>Devuelve datos parseados cuando se establece en <code>true</code>.</td><td><code>false</code></td></tr><tr><td><code>geo_location</code></td><td>Especifique un país desde el cual enviar el prompt. <a href="../features/localization/proxy-location"><strong>Más información</strong></a>.</td><td>-</td></tr><tr><td><code>callback_url</code></td><td>URL a su endpoint de callback. <a href="../../integration-methods/push-pull#callback"><strong>Más información</strong></a>.</td><td>-</td></tr></tbody></table>

&#x20;    \- parámetro obligatorio

## Datos estructurados

Web Scraper API es capaz de extraer ya sea un objeto HTML o JSON que contiene la salida de ChatGPT, ofreciendo datos estructurados sobre varios elementos de la página de resultados.

<details>

<summary><code>chatgpt</code> salida estructurada</summary>

```json
{
    "results": [
        {
            "content": {
                "prompt": "best supplements for better sleep",
                "llm_model": "gpt-4o",
                "markdown_json": [
                    {
                        "type": "blank_line"
                    },
                    {
                        "raw": "          Improving sleep through supplements can be helpful, but it’s always good to pair them with healthy sleep habits. Here are some of the best supplements that are commonly used to promote better sleep:",
                        "type": "block_code",
                        "style": "indent"
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "1. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Melatonin",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A hormone naturally produced by the body to regulate sleep-wake cycles.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Melatonin supplements can help if you're dealing with sleep disruptions, like jet lag or shift work. It signals your body that it's time to sleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Generally, 0.5 to 3 mg about 30–60 minutes before bed is effective.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "2. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Magnesium",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": An essential mineral involved in hundreds of processes in the body, including muscle function and relaxation.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Magnesium can help promote relaxation and reduce stress, which can make it easier to fall asleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Around 200–400 mg per day. Magnesium glycinate is a highly absorbable form, and it’s gentle on the stomach.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "3. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "L-Theanine",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": An amino acid found in tea leaves, particularly green tea.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": L-Theanine promotes relaxation and can reduce anxiety, which may help you unwind and improve sleep quality.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 100–200 mg, about 30 minutes before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "4. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Valerian Root",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A herbal supplement that’s been used for centuries as a natural remedy for sleep and anxiety.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Valerian root may increase levels of GABA (a neurotransmitter that has calming effects) in the brain, helping to promote sleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 300–600 mg 30 minutes to 2 hours before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "5. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "CBD (Cannabidiol)",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A non-psychoactive compound derived from hemp plants.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": CBD may reduce anxiety and stress, promote relaxation, and support overall sleep quality. It does not cause a \"high.\"",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Typically, 25–50 mg of CBD oil or capsules is a good starting point.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "6. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "GABA (Gamma-Aminobutyric Acid)",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A neurotransmitter that plays a key role in inhibiting neural activity and promoting relaxation.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": GABA supplements may support a calm and relaxed state, making it easier to fall asleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 100–500 mg, about 30–60 minutes before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "7. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Chamomile",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A well-known herbal remedy, usually consumed as a tea, but also available in supplement form.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Chamomile has mild sedative properties that can help calm the mind and body.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 200–400 mg, typically taken before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "8. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "5-HTP (5-Hydroxytryptophan)",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": A precursor to serotonin, a neurotransmitter involved in mood regulation and sleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 5-HTP can help regulate sleep patterns and improve mood, as serotonin is converted to melatonin in the brain.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 50–100 mg, taken before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "9. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Ashwagandha",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": An adaptogenic herb commonly used in Ayurvedic medicine.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Ashwagandha helps to reduce stress, anxiety, and cortisol levels, which may improve sleep quality.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 300–600 mg, typically taken in the evening.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "10. ",
                                "type": "text"
                            },
                            {
                                "type": "strong",
                                "children": [
                                    {
                                        "raw": "Tryptophan",
                                        "type": "text"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "What it is",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": An amino acid found in foods like turkey and dairy, which is a precursor to serotonin and melatonin.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "How it helps",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Tryptophan supplementation may help boost serotonin and melatonin production, promoting better sleep.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Dosage",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": 500–1,000 mg about 30–60 minutes before bed.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "thematic_break"
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "heading",
                        "attrs": {
                            "level": 3
                        },
                        "style": "atx",
                        "children": [
                            {
                                "raw": "Consejos:",
                                "type": "text"
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    },
                    {
                        "type": "list",
                        "attrs": {
                            "depth": 0,
                            "ordered": false
                        },
                        "tight": true,
                        "bullet": "*",
                        "children": [
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Consistencia",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Los suplementos pueden funcionar mejor con uso regular, así que apunte a un uso consistente durante unas semanas para evaluar su efectividad.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Tiempo",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": El momento en que toma estos suplementos es clave. Por ejemplo, la melatonina se toma mejor 30–60 minutos antes de dormir, mientras que el magnesio es efectivo si se toma un poco antes por la noche.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                "type": "list_item",
                                "children": [
                                    {
                                        "type": "block_text",
                                        "children": [
                                            {
                                                "type": "strong",
                                                "children": [
                                                    {
                                                        "raw": "Factores de estilo de vida",
                                                        "type": "text"
                                                    }
                                                ]
                                            },
                                            {
                                                "raw": ": Los suplementos no reemplazan una buena higiene del sueño (por ejemplo, una habitación fresca y oscura, no pantallas antes de acostarse, etc.), pero pueden ser una adición útil.",
                                                "type": "text"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "paragraph",
                        "children": [
                            {
                                "raw": "¿Tiene un problema de sueño particular que esté tratando de abordar (como quedarse dormido, mantenerse dormido o la calidad del sueño)? ¡Eso podría ayudar a delimitar qué suplemento es mejor para usted!",
                                "type": "text"
                            }
                        ]
                    },
                    {
                        "type": "blank_line"
                    }
                ],
                "markdown_text": "\n              Improving sleep through supplements can be helpful, but it’s always good to pair them with healthy sleep habits. Here are some of the best supplements that are commonly used to promote better sleep:\n\n### 1. **Melatonin**\n\n* **What it is**: A hormone naturally produced by the body to regulate sleep-wake cycles.\n* **How it helps**: Melatonin supplements can help if you're dealing with sleep disruptions, like jet lag or shift work. It signals your body that it's time to sleep.\n* **Dosage**: Generally, 0.5 to 3 mg about 30–60 minutes before bed is effective.\n\n### 2. **Magnesium**\n\n* **What it is**: An essential mineral involved in hundreds of processes in the body, including muscle function and relaxation.\n* **How it helps**: Magnesium can help promote relaxation and reduce stress, which can make it easier to fall asleep.\n* **Dosage**: Around 200–400 mg per day. Magnesium glycinate is a highly absorbable form, and it’s gentle on the stomach.\n\n### 3. **L-Theanine**\n\n* **What it is**: An amino acid found in tea leaves, particularly green tea.\n* **How it helps**: L-Theanine promotes relaxation and can reduce anxiety, which may help you unwind and improve sleep quality.\n* **Dosage**: 100–200 mg, about 30 minutes before bed.\n\n### 4. **Valerian Root**\n\n* **What it is**: A herbal supplement that’s been used for centuries as a natural remedy for sleep and anxiety.\n* **How it helps**: Valerian root may increase levels of GABA (a neurotransmitter that has calming effects) in the brain, helping to promote sleep.\n* **Dosage**: 300–600 mg 30 minutes to 2 hours before bed.\n\n### 5. **CBD (Cannabidiol)**\n\n* **What it is**: A non-psychoactive compound derived from hemp plants.\n* **How it helps**: CBD may reduce anxiety and stress, promote relaxation, and support overall sleep quality. It does not cause a \"high.\"\n* **Dosage**: Typically, 25–50 mg of CBD oil or capsules is a good starting point.\n\n### 6. **GABA (Gamma-Aminobutyric Acid)**\n\n* **What it is**: A neurotransmitter that plays a key role in inhibiting neural activity and promoting relaxation.\n* **How it helps**: GABA supplements may support a calm and relaxed state, making it easier to fall asleep.\n* **Dosage**: 100–500 mg, about 30–60 minutes before bed.\n\n### 7. **Chamomile**\n\n* **What it is**: A well-known herbal remedy, usually consumed as a tea, but also available in supplement form.\n* **How it helps**: Chamomile has mild sedative properties that can help calm the mind and body.\n* **Dosage**: 200–400 mg, typically taken before bed.\n\n### 8. **5-HTP (5-Hydroxytryptophan)**\n\n* **What it is**: A precursor to serotonin, a neurotransmitter involved in mood regulation and sleep.\n* **How it helps**: 5-HTP can help regulate sleep patterns and improve mood, as serotonin is converted to melatonin in the brain.\n* **Dosage**: 50–100 mg, taken before bed.\n\n### 9. **Ashwagandha**\n\n* **What it is**: An adaptogenic herb commonly used in Ayurvedic medicine.\n* **How it helps**: Ashwagandha helps to reduce stress, anxiety, and cortisol levels, which may improve sleep quality.\n* **Dosage**: 300–600 mg, typically taken in the evening.\n\n### 10. **Tryptophan**\n\n* **What it is**: An amino acid found in foods like turkey and dairy, which is a precursor to serotonin and melatonin.\n* **How it helps**: Tryptophan supplementation may help boost serotonin and melatonin production, promoting better sleep.\n* **Dosage**: 500–1,000 mg about 30–60 minutes before bed.\n\n---\n\n### Tips:\n\n* **Consistency**: Supplements can work better with regular use, so aim for consistent use for a few weeks to gauge their effectiveness.\n* **Timing**: The timing of when you take these supplements is key. For instance, melatonin is best taken 30–60 minutes before sleep, while magnesium is effective if taken a bit earlier in the evening.\n* **Lifestyle Factors**: Supplements are not a replacement for good sleep hygiene (e.g., a cool, dark room, no screens before bed, etc.), but they can be a helpful addition.\n\nDo you have a particular sleep issue you're trying to address (like falling asleep, staying asleep, or sleep quality)? That might help narrow down which supplement is best for you!\n\n              ",
                "response_text": "\n          Improving sleep through supplements can be helpful, but it’s always good to pair them with healthy sleep habits. Here are some of the best supplements that are commonly used to promote better sleep:\n\n1. Melatonin\n\n\nWhat it is: A hormone naturally produced by the body to regulate sleep-wake cycles.\n\nHow it helps: Melatonin supplements can help if you're dealing with sleep disruptions, like jet lag or shift work. It signals your body that it's time to sleep.\n\nDosage: Generally, 0.5 to 3 mg about 30–60 minutes before bed is effective.\n\n\n\n2. Magnesium\n\n\nWhat it is: An essential mineral involved in hundreds of processes in the body, including muscle function and relaxation.\n\nHow it helps: Magnesium can help promote relaxation and reduce stress, which can make it easier to fall asleep.\n\nDosage: Around 200–400 mg per day. Magnesium glycinate is a highly absorbable form, and it’s gentle on the stomach.\n\n\n\n3. L-Theanine\n\n\nWhat it is: An amino acid found in tea leaves, particularly green tea.\n\nHow it helps: L-Theanine promotes relaxation and can reduce anxiety, which may help you unwind and improve sleep quality.\n\nDosage: 100–200 mg, about 30 minutes before bed.\n\n\n\n4. Valerian Root\n\n\nWhat it is: A herbal supplement that’s been used for centuries as a natural remedy for sleep and anxiety.\n\nHow it helps: Valerian root may increase levels of GABA (a neurotransmitter that has calming effects) in the brain, helping to promote sleep.\n\nDosage: 300–600 mg 30 minutes to 2 hours before bed.\n\n\n\n5. CBD (Cannabidiol)\n\n\nWhat it is: A non-psychoactive compound derived from hemp plants.\n\nHow it helps: CBD may reduce anxiety and stress, promote relaxation, and support overall sleep quality. It does not cause a \"high.\"\n\nDosage: Typically, 25–50 mg of CBD oil or capsules is a good starting point.\n\n\n\n6. GABA (Gamma-Aminobutyric Acid)\n\n\nWhat it is: A neurotransmitter that plays a key role in inhibiting neural activity and promoting relaxation.\n\nHow it helps: GABA supplements may support a calm and relaxed state, making it easier to fall asleep.\n\nDosage: 100–500 mg, about 30–60 minutes before bed.\n\n\n\n7. Chamomile\n\n\nWhat it is: A well-known herbal remedy, usually consumed as a tea, but also available in supplement form.\n\nHow it helps: Chamomile has mild sedative properties that can help calm the mind and body.\n\nDosage: 200–400 mg, typically taken before bed.\n\n\n\n8. 5-HTP (5-Hydroxytryptophan)\n\n\nWhat it is: A precursor to serotonin, a neurotransmitter involved in mood regulation and sleep.\n\nHow it helps: 5-HTP can help regulate sleep patterns and improve mood, as serotonin is converted to melatonin in the brain.\n\nDosage: 50–100 mg, taken before bed.\n\n\n\n9. Ashwagandha\n\n\nWhat it is: An adaptogenic herb commonly used in Ayurvedic medicine.\n\nHow it helps: Ashwagandha helps to reduce stress, anxiety, and cortisol levels, which may improve sleep quality.\n\nDosage: 300–600 mg, typically taken in the evening.\n\n\n\n10. Tryptophan\n\n\nWhat it is: An amino acid found in foods like turkey and dairy, which is a precursor to serotonin and melatonin.\n\nHow it helps: Tryptophan supplementation may help boost serotonin and melatonin production, promoting better sleep.\n\nDosage: 500–1,000 mg about 30–60 minutes before bed.\n\n\n\n\n\n\nTips:\n\n\nConsistency: Supplements can work better with regular use, so aim for consistent use for a few weeks to gauge their effectiveness.\n\nTiming: The timing of when you take these supplements is key. For instance, melatonin is best taken 30–60 minutes before sleep, while magnesium is effective if taken a bit earlier in the evening.\n\nLifestyle Factors: Supplements are not a replacement for good sleep hygiene (e.g., a cool, dark room, no screens before bed, etc.), but they can be a helpful addition.\n\n\n\nDo you have a particular sleep issue you're trying to address (like falling asleep, staying asleep, or sleep quality)? That might help narrow down which supplement is best for you!\n\n\n",
                "parse_status_code": 12000
            },
            "created_at": "2025-07-21 09:44:41",
            "updated_at": "2025-07-21 09:45:17",
            "page": 1,
            "url": "https://chatgpt.com/?hints=search",
            "job_id": "7352996936896485377",
            "is_render_forced": false,
            "status_code": 200,
            "parser_type": "chatgpt",
            "parser_preset": null,
            "_request": {
                "cookies": [],
                "headers": {
                    "Accept": "*/*",
                    "Referer": "https://chat.openai.com/",
                    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0",
                    "Sec-Fetch-Dest": "empty",
                    "Sec-Fetch-Mode": "cors",
                    "Sec-Fetch-Site": "cross-site",
                    "Accept-Encoding": "gzip, deflate, br",
                    "Accept-Language": "en-US,en;q=0.8"
                }
            },
            "_response": {
                "cookies": [
                    {
                        "key": "__cf_bm",
                        "path": "/",
                        "value": "8p_bO1S1FHojsABBQGDlZGjEV71zyZHR7MgnBeuYwtY-1753091085-1.0.1.1-V5pHHjoVcrJgK0z32boibyZVJhaoJixNqPPgDjCLQZx3XN8c7QPiZ7WtOHIjKxCuL7ikMp9gwclU.1MOAM_2XRf02EJt0HqyBZEGPSfdGZg",
                        "domain": ".chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": 1753092885,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "_cfuvid",
                        "path": "/",
                        "value": "pBe2gTUFEhqINJ64L9TjtoasbchypLHIoHJyu5QbGKU-1753091085801-0.0.1.1-604800000",
                        "domain": ".chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": -1,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "__Host-next-auth.csrf-token",
                        "path": "/",
                        "value": "b5d09ebb69a56f89056c5b85efe11830ba5ea0d63930b9a2521856b991ccfb21%7C9429a6a1e6e6f066d0ef9f5598c20cd44d944137415f21868cdf3a3d313e61fb",
                        "domain": "chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": -1,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "__Secure-next-auth.callback-url",
                        "path": "/",
                        "value": "https%3A%2F%2Fchatgpt.com",
                        "domain": "chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": -1,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "oai-did",
                        "path": "/",
                        "value": "8872fb51-5150-4124-94cc-c2b2c873d246",
                        "domain": ".chatgpt.com",
                        "secure": false,
                        "comment": "",
                        "expires": 1784195085,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "__cflb",
                        "path": "/",
                        "value": "0H28vzvP5FJafnkHxihEjGoKqQYKLzgWn6SrwLTizhZ",
                        "domain": "chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": 1753094685,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "cf_clearance",
                        "path": "/",
                        "value": "xuEaBnXwdEzDr3meJ4DVRoNa5ivEhPDp45igBtQPBGk-1753091089-1.2.1.1-oRl.I4.TRZvshWUEp8WB9eefELVoQ3mDqvWgOr0ygQi3OAH1Q9IlBF4SmCIMkHOFaXDnM6PqGgkMyEPXgVFmbX0DA9PIkboFDM8RTNn4J_71ZQh7Myt_6uI5XvW50Zw6.oTpur3dvssvFYybrJ91XIXLAR_Gp100upEez.7tUJ7ZHsD_lXyFU_f5FhWM.Ge_6t21dYPF5.YcsB8A7l.ZQHZ6AweZrAobTg.jmx77.VE",
                        "domain": ".chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": 1784627089,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "_dd_s",
                        "path": "/",
                        "value": "rum=0&expire=1753091989776&logs=1&id=85811739-0629-4bed-8737-dc9445dc71e1&created=1753091089776",
                        "domain": "chatgpt.com",
                        "secure": false,
                        "comment": "",
                        "expires": 1753091989,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    },
                    {
                        "key": "oai-sc",
                        "path": "/",
                        "value": "0gAAAAABofgwSO7ucm3ZwfjJxTYiQqdti8ySUpz67OKqDqGb7eNdKXZk5WkujZyDg_NbbqApn3uF9cTJsTB3m3VLscXV3lnQ2tzUy1gZTmxmreH7-SxYtUhu3p7LDvNrnM6jshusJHSY-3nl_EIbSyzpg-kxJMmhSOc2DhrI89B5D699Ub__hQ5ww_uv0JL702tfYUUmx5kfOYIYE9plbFHYELirLNRm0_9VRDEzuk1UnuQJRPG6VjSs",
                        "domain": ".chatgpt.com",
                        "secure": true,
                        "comment": "",
                        "expires": 1784627090,
                        "max-age": "",
                        "version": "",
                        "httponly": "",
                        "samesite": ""
                    }
                ],
                "headers": {
                    "date": "Mon, 21 Jul 2025 09:44:45 GMT",
                    "link": "<https://cdn.oaistatic.com/assets/root-gb2r8c6x.css>; rel=preload; as=style, <https://cdn.oaistatic.com/assets/conversation-small-k592qa8k.css>; rel=preload; as=style, <https://cdn.oaistatic.com/assets/iel47fc7grtlil6a.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/juy90og0wtbp77qa.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/ggkcjsw9vksljdkv.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/m95fj1rn1mzao4sq.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/kr05utw3008eg945.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/iqfr5i09hbhccmuh.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/ovm0ybgo1syx3f0p.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/moy4mvglnalfrz8q.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/ghw6xt5f1sk79ysd.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/mi6f694cnocn4dti.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/i3hpxg6e4b5a8als.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/f74pg4kr6zomyhee.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/cstszi108kecrn0g.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/gk89tpvmawimrwuu.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/h9h8cg16cegnz3eg.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/fx2veoq58hii55a2.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/bjoz78q9hyc7vmqq.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/i77ly04l6zopmhcd.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/j0lff2ng05zbgs7q.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/pfit7pq9kxfsrq6e.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/f75rbclk3h4jbj57.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/cyi8lup1ra5lipwu.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/flzh3nddyjgqbqe1.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/pc2givv05uuq8g6l.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/kpwvtz91dbad0va6.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/4jrxuiu87ry95xka.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/nrb3o16z9jokvloq.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/o0whyuqzq13y0i9n.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/h3gfcgsgetn4821r.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/ljnobu2haq5a6djh.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/nvfpw35mzunli75l.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/ngweha7spcb6a8xk.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/mv381zt3ezq17s3t.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/kqp43verg3d5fj5u.js>; rel=preload; as=script; crossorigin, <https://cdn.oaistatic.com/assets/cmlgyrhs6cwm661e.js>; rel=preload; as=script; crossorigin",
                    "cf-ray": "9629c2f56f6674c0-MIA",
                    "server": "cloudflare",
                    "report-to": "{\"group\":\"chatgpt-csp-new\", \"max_age\":10886400, \"endpoints\":[{\"url\":\"https://browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pub1f79f8ac903a5872ae5f53026d20a77c&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=version%3Achatgpt-csp-new\"}]}",
                    "content-type": "text/html; charset=utf-8",
                    "x-robots-tag": "nofollow",
                    "x-firefox-spdy": "h2",
                    "cf-cache-status": "DYNAMIC",
                    "referrer-policy": "strict-origin-when-cross-origin",
                    "content-encoding": "br",
                    "x-content-type-options": "nosniff",
                    "content-security-policy": "default-src 'self'; script-src 'nonce-ef96b386-b45a-45ba-a589-4f4eb45ef5ce' 'self' 'wasm-unsafe-eval' chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.js.stripe.com https://*.oaistatic.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/public-api https://chatgpt.com/voice https://js.stripe.com https://oaistatic.com https://realtime.chatgpt.com https://snc.apps.openai.com wss://*.chatgpt.com wss://*.chatgpt.com/; script-src-elem 'nonce-ef96b386-b45a-45ba-a589-4f4eb45ef5ce' 'self' 'sha256-eMuh8xiwcX72rRYNAGENurQBAcH7kLlAUQcoOri3BIo=' auth0.openai.com blob: challenges.cloudflare.com chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.js.stripe.com https://*.oaistatic.com https://apis.google.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/public-api https://chatgpt.com/voice https://connect.facebook.net https://docs.google.com https://js.live.net/v7.2/OneDrive.js https://js.stripe.com https://oaistatic.com https://pixel-config.reddit.com https://realtime.chatgpt.com https://snc.apps.openai.com https://www-onepick-opensocial.googleusercontent.com https://www.redditstatic.com wss://*.chatgpt.com wss://*.chatgpt.com/; img-src 'self' * blob: data: https: https://docs.google.com https://drive-thirdparty.googleusercontent.com https://ssl.gstatic.com; style-src 'self' 'unsafe-inline' blob: chatgpt.com/ces https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/public-api https://chatgpt.com/voice https://oaistatic.com https://realtime.chatgpt.com https://snc.apps.openai.com wss://*.chatgpt.com wss://*.chatgpt.com/; font-src 'self' data: https://*.oaistatic.com https://cdn.openai.com https://fonts.gstatic.com; connect-src 'self' *.blob.core.windows.net *.oaiusercontent.com api.mapbox.com browser-intake-datadoghq.com chatgpt.com/ces events.mapbox.com https://*.chatgpt.com https://*.chatgpt.com/ https://*.oaistatic.com https://api.atlassian.com https://api.onedrive.com https://api.stripe.com https://chat.openai.com https://chatgpt.com https://chatgpt.com/ https://chatgpt.com/backend-anon https://chatgpt.com/backend-api https://chatgpt.com/backend/se https://chatgpt.com/public-api https://chatgpt.com/voice https://content.googleapis.com https://docs.google.com https://events.statsigapi.net https://featuregates.org https://graph.microsoft.com https://integrations.livekit.io/enc/v1/models/model_32.kw https://livekit.io/integrations/enc/v1 https://oaistatic.com https://pixel-config.reddit.com https://realtime.chatgpt-staging.com https://realtime.chatgpt.com https://snc.apps.openai.com https://transceiver.api.openai.com https://transceiver.api.openai.org https://www.googleapis.com https://www.redditstatic.com statsigapi.net wss://*.chatgpt.com wss://*.chatgpt.com/ wss://*.webpubsub.azure.com; frame-src 'self' challenges.cloudflare.com https://*.js.stripe.com https://*.sharepoint.com https://content.googleapis.com https://docs.google.com https://hooks.stripe.com https://js.stripe.com https://onedrive.live.com https://web-sandbox.oaiusercontent.com js.stripe.com player.vimeo.com www.youtube.com; worker-src 'self' blob:; media-src 'self' *.oaiusercontent.com blob: https://cdn.openai.com https://persistent.oaistatic.com; frame-ancestors 'self' chrome-extension://iaiigpefkbhgjcmcmffmfkpmhemdhdnj; base-uri 'none'; report-to chatgpt-csp-new; report-uri https://browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pub1f79f8ac903a5872ae5f53026d20a77c&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=version%3Achatgpt-csp-new",
                    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
                    "cross-origin-opener-policy": "same-origin-allow-popups"
                }
            },
            "session_info": {
                "id": null,
                "expires_at": null,
                "remaining": null
            }
        }
    ],
    "job": {
        "parse": true,
        "prompt": "best supplements for better sleep",
        "search": true,
        "source": "chatgpt",
        "callback_url": "https://realtime.oxylabs.io:443/api/done",
        "geo_location": "United States",
        "id": "7352996936896485377",
        "status": "done",
        "created_at": "2025-07-21 09:44:41",
        "updated_at": "2025-07-21 09:45:17",
        "_links": [
            {
                "rel": "self",
                "href": "http://data.oxylabs.io/v1/queries/7352996936896485377",
                "method": "GET"
            },
            {
                "rel": "results",
                "href": "http://data.oxylabs.io/v1/queries/7352996936896485377/results",
                "method": "GET"
            },
            {
                "rel": "results-content",
                "href_list": [
                    "http://data.oxylabs.io/v1/queries/7352996936896485377/results/1/content"
                ],
                "method": "GET"
            },
            {
                "rel": "results-html",
                "href": "http://data.oxylabs.io/v1/queries/7352996936896485377/results?type=raw",
                "method": "GET"
            },
            {
                "rel": "results-content-html",
                "href_list": [
                    "http://data.oxylabs.io/v1/queries/7352996936896485377/results/1/content?type=raw"
                ],
                "method": "GET"
            },
            {
                "rel": "results-parsed",
                "href": "http://data.oxylabs.io/v1/queries/7352996936896485377/results?type=parsed",
                "method": "GET"
            },
            {
                "rel": "results-content-parsed",
                "href_list": [
                    "http://data.oxylabs.io/v1/queries/7352996936896485377/results/1/content?type=parsed"
                ],
                "method": "GET"
            }
        ]
    }
}
```

</details>

{% hint style="warning" %}
La composición de los elementos puede variar dependiendo de si la consulta se realizó desde un **escritorio** o **móvil** dispositivo.
{% endhint %}

## Diccionario de datos de salida

### Ejemplo HTML

<figure><img src="https://338917265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzrXw45naRpCZ0Ku9AjY1%2Fuploads%2FCDNqhfQLDTKXUfMPF8rS%2FScreenshot%202025-07-21%20at%2012.54.42.png?alt=media&#x26;token=e43dcae8-7615-4403-8ce6-1446a6acf4bb" alt=""><figcaption></figcaption></figure>

### Estructura JSON

La `chatgpt` salida estructurada incluye campos como `URL`, `página`, `resultados`, y más. La tabla a continuación presenta una lista detallada de cada elemento de ChatGPT que analizamos, incluyendo descripciones, tipos de datos y metadatos relevantes.

{% hint style="info" %}
El número de elementos y campos para un tipo de resultado específico puede variar según el prompt enviado.
{% endhint %}

<table data-full-width="false"><thead><tr><th width="289">Nombre clave</th><th width="337.3333333333333">Descripción</th><th>Tipo</th></tr></thead><tbody><tr><td><code>url</code></td><td>La URL de la conversación de ChatGPT.</td><td>string</td></tr><tr><td><code>página</code></td><td>Número de página.</td><td>integer</td></tr><tr><td><code>content</code></td><td>Un objeto que contiene los datos de la respuesta de ChatGPT parseados.</td><td>object</td></tr><tr><td><code>content.prompt</code></td><td>Prompt original enviado a ChatGPT.</td><td>string</td></tr><tr><td><code>content.llm_model</code></td><td>Modelo de ChatGPT utilizado (por ejemplo, "gpt-4-o", "gpt-3.5-turbo", etc.).</td><td>string</td></tr><tr><td><code>content.markdown_json</code></td><td>Markdown completo de la respuesta como JSON de ChatGPT.</td><td>array</td></tr><tr><td><code>content.markdown_text</code></td><td>Markdown completo de la respuesta de ChatGPT.</td><td>string</td></tr><tr><td><code>content.response_text</code></td><td>Texto completo de la respuesta de ChatGPT.</td><td>string</td></tr><tr><td><code>content.citations</code></td><td>Lista de enlaces de citas con URL y texto.</td><td>array</td></tr><tr><td><code>content.links</code></td><td>Lista de enlaces externos referenciados en la respuesta.</td><td>array</td></tr><tr><td><code>content.parse_status_code</code></td><td>Código de estado de la operación de parseo.</td><td>integer</td></tr><tr><td><code>created_at</code></td><td>Marca de tiempo cuando se creó el trabajo de scraping.</td><td>timestamp</td></tr><tr><td><code>updated_at</code></td><td>Marca de tiempo cuando se finalizó el trabajo de scraping.</td><td>timestamp</td></tr><tr><td><code>job_id</code></td><td>ID del trabajo asociado con el trabajo de scraping.</td><td>string</td></tr><tr><td><code>geo_location</code></td><td>Ubicación del proxy desde la cual se envió el prompt.</td><td>string</td></tr><tr><td><code>status_code</code></td><td>Código de estado del trabajo de scraping. Puedes ver los códigos de estado del scraper descritos <a href="../response-codes"><strong>aquí</strong></a>.</td><td>integer</td></tr><tr><td><code>parser_type</code></td><td>Tipo del parser usado para descomponer el contenido HTML.</td><td>string</td></tr></tbody></table>
