Mintlify Index
Buscar conocimientos técnicos
Busca en Mintlify Index documentación técnica y resultados web clasificados.
POST
/
v1
/
search
Buscar conocimientos técnicos
curl --request POST \
--url https://leaves.mintlify.com/api/universal-search/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Almacenamiento en caché y revalidación en Next.js 16",
"numResults": 5,
"text": {
"maxCharacters": 4000
},
"includeDomains": [
"nextjs.org"
]
}
'import requests
url = "https://leaves.mintlify.com/api/universal-search/v1/search"
payload = {
"query": "Almacenamiento en caché y revalidación en Next.js 16",
"numResults": 5,
"text": { "maxCharacters": 4000 },
"includeDomains": ["nextjs.org"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'Almacenamiento en caché y revalidación en Next.js 16',
numResults: 5,
text: {maxCharacters: 4000},
includeDomains: ['nextjs.org']
})
};
fetch('https://leaves.mintlify.com/api/universal-search/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leaves.mintlify.com/api/universal-search/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Almacenamiento en caché y revalidación en Next.js 16',
'numResults' => 5,
'text' => [
'maxCharacters' => 4000
],
'includeDomains' => [
'nextjs.org'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://leaves.mintlify.com/api/universal-search/v1/search"
payload := strings.NewReader("{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://leaves.mintlify.com/api/universal-search/v1/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://leaves.mintlify.com/api/universal-search/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"requestId": "3d8ed0aa-c21c-4a18-b995-207aa6315ea8",
"results": [
{
"id": "nextjs:/docs/app/getting-started/caching-and-revalidating",
"url": "https://nextjs.org/docs/app/getting-started/caching-and-revalidating",
"title": "Almacenamiento en caché y revalidación",
"text": "El almacenamiento en caché es una técnica para guardar el resultado de la obtención de datos y otros cálculos.",
"truncated": false,
"totalCharacters": 92,
"score": 0.91,
"source": "mintlify",
"siteName": "nextjs",
"breadcrumbs": [
"Enrutador de aplicaciones",
"Primeros pasos"
],
"publishedDate": null
}
]
}{
"error": "Cuerpo de solicitud no válido"
}{
"error": "No autorizado"
}{
"error": "La dirección IP no está permitida para esta clave de API"
}{
"error": "Límite de uso superado. Vuelve a intentarlo más tarde"
}{
"error": "<string>"
}Autorizaciones
Clave de API de Mintlify Index con el prefijo mint_us_.
Cuerpo
application/json
Consulta de búsqueda.
Minimum string length:
1Número máximo de resultados que se devolverán.
Rango requerido:
1 <= x <= 20Controla el contenido de los resultados. Establécelo en true para incluir contenido coincidente, en false para omitirlo o proporciona maxCharacters para incluir contenido truncado. Si se omite, el valor predeterminado es false.
Dominios que se incluirán en los resultados de búsqueda.
Minimum array length:
1Minimum string length:
1Dominios que se excluirán de los resultados de búsqueda.
Minimum array length:
1Minimum string length:
1⌘I
Buscar conocimientos técnicos
curl --request POST \
--url https://leaves.mintlify.com/api/universal-search/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Almacenamiento en caché y revalidación en Next.js 16",
"numResults": 5,
"text": {
"maxCharacters": 4000
},
"includeDomains": [
"nextjs.org"
]
}
'import requests
url = "https://leaves.mintlify.com/api/universal-search/v1/search"
payload = {
"query": "Almacenamiento en caché y revalidación en Next.js 16",
"numResults": 5,
"text": { "maxCharacters": 4000 },
"includeDomains": ["nextjs.org"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: 'Almacenamiento en caché y revalidación en Next.js 16',
numResults: 5,
text: {maxCharacters: 4000},
includeDomains: ['nextjs.org']
})
};
fetch('https://leaves.mintlify.com/api/universal-search/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://leaves.mintlify.com/api/universal-search/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'Almacenamiento en caché y revalidación en Next.js 16',
'numResults' => 5,
'text' => [
'maxCharacters' => 4000
],
'includeDomains' => [
'nextjs.org'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://leaves.mintlify.com/api/universal-search/v1/search"
payload := strings.NewReader("{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://leaves.mintlify.com/api/universal-search/v1/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://leaves.mintlify.com/api/universal-search/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"Almacenamiento en caché y revalidación en Next.js 16\",\n \"numResults\": 5,\n \"text\": {\n \"maxCharacters\": 4000\n },\n \"includeDomains\": [\n \"nextjs.org\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"requestId": "3d8ed0aa-c21c-4a18-b995-207aa6315ea8",
"results": [
{
"id": "nextjs:/docs/app/getting-started/caching-and-revalidating",
"url": "https://nextjs.org/docs/app/getting-started/caching-and-revalidating",
"title": "Almacenamiento en caché y revalidación",
"text": "El almacenamiento en caché es una técnica para guardar el resultado de la obtención de datos y otros cálculos.",
"truncated": false,
"totalCharacters": 92,
"score": 0.91,
"source": "mintlify",
"siteName": "nextjs",
"breadcrumbs": [
"Enrutador de aplicaciones",
"Primeros pasos"
],
"publishedDate": null
}
]
}{
"error": "Cuerpo de solicitud no válido"
}{
"error": "No autorizado"
}{
"error": "La dirección IP no está permitida para esta clave de API"
}{
"error": "Límite de uso superado. Vuelve a intentarlo más tarde"
}{
"error": "<string>"
}