Copias HTML y capturas: métodos API
Descargue una copia HTML o una captura PNG del informe elegido. La referencia describe dos métodos, los identificadores y las respuestas de error.
En esta página
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/html
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/screenshot
Elija un método en el índice. Revise el método HTTP, la ruta, los permisos, los parámetros obligatorios y el cuerpo. Los bloques JSON con schema, properties y $ref describen el contrato; no se envían como cuerpo de una solicitud. Los ejemplos de solicitudes y los esquemas de respuesta están identificados por separado.
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/html
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid del informe o el literal last. El literal last solo se admite en este parámetro de ruta.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
Respuestas
200
Archivo HTML almacenado.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"Content-Disposition": {
"schema": {
"type": "string"
}
}
},
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
default
Sin una clave válida, las cabeceras de límites corresponden a intentos fallidos por IP. Tras la autenticación, corresponden a la clave o cuenta. Pueden faltar por un bloqueo previo o un contador no disponible. X-RateLimit-Reset es una marca de tiempo Unix en segundos; Retry-After en 429 es una espera en segundos.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/screenshot
Parámetros
Modelos de datos relacionados: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
Xid del informe o el literal last. El literal last solo se admite en este parámetro de ruta.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
device (query)
{
"schema": {
"type": "string",
"enum": [
"desktop",
"mobile"
],
"default": "desktop"
}
}
Respuestas
200
Captura de pantalla PNG almacenada.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"image/png": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
