Listar sitios web
GET
/sites- Permiso
sites:read- Herramienta MCP
list_sites
Websites this key can read A website key lists its one website; a workspace key every website it covers.
Las descripciones vienen del documento OpenAPI y están en inglés.
Parámetros
Sin parámetros.
Respuesta
200 · application/json
| Campo | Detalles |
|---|---|
sites | list of object · required |
sites[].id | string · required; Website id |
sites[].name | string · required; Website name |
sites[].url | address (URL) · required; Home page address |
sites[].platform | wordpress | astro | shopify | other | unknown · required; What the website runs on |
sites[].link | address (URL) · required; The website in the app |
Errores
| Estado | Significado |
|---|---|
401 | Missing, unknown or revoked key. Codes: missing_key, invalid_key. |
403 | The key lacks the scope, covers another website, or its owner lost access. Codes: missing_scope, other_site, owner_left, no_owner, forbidden. |
429 | Too many requests this hour for this key. Codes: rate_limited. |
Petición de ejemplo
curl \
-H "Authorization: Bearer mr_ws_…" \
"https://app.monoranks.com/api/v1/sites"const res = await fetch("https://app.monoranks.com/api/v1/sites", {
headers: { Authorization: "Bearer mr_ws_…" },
});
if (!res.ok) throw new Error((await res.json()).error.message);
const data = await res.json();import requests
res = requests.get(
"https://app.monoranks.com/api/v1/sites",
headers={"Authorization": "Bearer mr_ws_…"},
)
res.raise_for_status()
data = res.json()<?php
$ch = curl_init("https://app.monoranks.com/api/v1/sites");
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer mr_ws_…"],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);import axios from "axios";
const { data } = await axios.get("https://app.monoranks.com/api/v1/sites", { headers: { Authorization: "Bearer mr_ws_…" } });Respuesta de ejemplo
{
"sites": [
{
"id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13",
"name": "Acme Bikes",
"url": "https://acmebikes.com/",
"platform": "wordpress",
"link": "https://app.monoranks.com/sites/3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13/overview"
}
]
}{
"error": {
"code": "missing_key",
"message": "Send the key as Authorization: Bearer mr_site_…"
}
}{
"error": {
"code": "missing_scope",
"message": "This key does not have the scope this call needs."
}
}{
"error": {
"code": "rate_limited",
"message": "More than 1200 requests this hour for this key."
}
}El servidor MCP hace lo mismo con la herramienta list_sites.