Перейти к содержимому
ecdsa.com

API

This specification

GEThttps://ecdsa.com/api/v1/openapi.json

The OpenAPI 3.1 document of this API, generated from the same operation definitions the server runs. The same document for every caller: cached by the CDN for an hour, not rate limited.

API-ключ
Не учитывается: ответ одинаков для всех
Лимит запросов
Нет: ответ отдаётся из кеша CDN

Запрос

Эта операция не принимает входных данных.

Ответы

200OpenAPI 3.1 document.

ПолеТипОбязательноеОписание
openapistringда

The OpenAPI version, "3.1.0".

infoobjectда
  • могут быть и другие поля
info.titlestringда
info.versionstringда
pathsobjectда
  • поля с любыми именами
СтатусЗначениеКоды
404Not found.
405Method not allowed.
500Internal server error.

Каждый ответ с ошибкой содержит JSON-объект ошибки; что означает каждый код и что с ним делать, сказано в таблице ошибок.

Пример

The OpenAPI document

curl
curl -sS 'https://ecdsa.com/api/v1/openapi.json'
JavaScript (fetch)
const response = await fetch("https://ecdsa.com/api/v1/openapi.json");
console.log(response.status, await response.json());
Python (httpx)
import httpx

response = httpx.get("https://ecdsa.com/api/v1/openapi.json", timeout=30.0)
print(response.status_code, response.json())

Ответ 200 занимает 109 КБ JSON — слишком много, чтобы показать его здесь: откройте его.

Ответ API на этот пример, полученный для этой страницы 20 октября 2026 г.; относительное время и количество дней в нём отсчитываются от этого дня.

Коды ошибок

КодСтатусЗначение
not_found404No operation exists at this path.
method_not_allowed405The path exists but does not accept this HTTP method; see the Allow header.
internal_error500Unexpected server error.

Схемы

Error

The error envelope of every non-2xx response.

ПолеТипОбязательноеОписание
errorobjectда
error.codestringда

Machine-readable error code. Each response lists the codes it can carry; new codes may be added within v1, so treat an unknown code by its HTTP status.

error.messagestringда

Human-readable explanation (English).

error.requestIdstringнет

The X-Request-Id of this request — quote it when reporting a problem. Sent since v1.1.

error.detailobjectнет

Structured context for the error, such as the offending field; omitted when there is none.

  • поля с любыми именами
error.docsstringнет

Where the error codes are explained. Sent since v1.1.

  • формат uri

Все операции перечислены в справочнике API.