{
  "openapi": "3.1.0",
  "info": {
    "title": "Neuroseti.ru Open Data & AI API (RF)",
    "version": "1.4.0",
    "description": "Единый JSON API и MCP-шлюз для РФ: реестр 63+ LLM и медиа-моделей с ценами в рублях, поиск по 43 965+ постам ИИ-Telegram, курсы/ставка/пени/БИК ЦБ РФ, календарь РФ, ОКВЭД-2, ФНС по ИНН (МСП/спецрежимы), МКБ-10, 35 987 лекарств ГРЛС, лицензии Росздравнадзора, товарные знаки Роспатента, маркировка Честный ЗНАК и ТН ВЭД, живые СРО НОСТРОЙ/НОПРИЗ, недвижимость/ипотека и индекс IT/ИИ-рынка труда РФ. 300 запросов/сутки бесплатно по ключу nsr_...",
    "contact": {
      "name": "Нейросети.ру",
      "url": "https://neuroseti.ru/open-api"
    }
  },
  "servers": [
    {
      "url": "https://api.neuroseti.ru",
      "description": "Production API Gateway (recommended)"
    },
    {
      "url": "https://neuroseti.ru/api",
      "description": "Primary domain mirror"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "nsr_...",
        "description": "Единый ключ Нейросети.ру (получить бесплатно на https://neuroseti.ru/account, 300 запросов/сутки)."
      }
    }
  },
  "paths": {
    "/v1/data/models": {
      "get": {
        "operationId": "listModels",
        "summary": "Реестр цен, контекста и доступности 60+ LLM и медиа-моделей для РФ",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "llm",
                "image",
                "video",
                "audio"
              ]
            }
          },
          {
            "name": "vendor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_input_rub",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "economy",
                "enterprise"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON список моделей с ценами в RUB/USD"
          }
        }
      }
    },
    "/v1/data/models/recommend": {
      "get": {
        "operationId": "recommendModels",
        "summary": "Подбор лучшей LLM под задачу и бюджет",
        "parameters": [
          {
            "name": "task",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "text",
                "design",
                "analytics",
                "support"
              ]
            }
          },
          {
            "name": "budget",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "mid",
                "high"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Рекомендованные модели с оценкой стоимости"
          }
        }
      }
    },
    "/v1/data/tg/search": {
      "get": {
        "operationId": "searchTelegramAiPosts",
        "summary": "Полнотекстовый поиск по 43 965+ постам русскоязычных ИИ- и IT-каналов Telegram без рекламы erid",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 30
            }
          },
          {
            "name": "exclude_ads",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Найденные посты с ссылками на первоисточник"
          }
        }
      }
    },
    "/v1/data/tg/trends": {
      "get": {
        "operationId": "getTelegramAiTrends",
        "summary": "Динамика упоминаний моделей и тем в ИИ-Telegram",
        "parameters": [
          {
            "name": "entity",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "claude,openai,deepseek"
            }
          },
          {
            "name": "window",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "30d"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Тренды и помесячная динамика"
          }
        }
      }
    },
    "/v1/data/tg/ads": {
      "get": {
        "operationId": "getTelegramAdRadar",
        "summary": "Рекламный радар Telegram (erid, 24ч посевы, рекламодатели)",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 30
            }
          },
          {
            "name": "deleted_only",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Снимки рекламных посевов и домены рекламодателей"
          }
        }
      }
    },
    "/v1/data/ru/cbr/rates": {
      "get": {
        "operationId": "getCbrRates",
        "summary": "Официальные курсы валют ЦБ РФ на дату (JSON поверх XML CP1251)",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Курсы валют ЦБ РФ"
          }
        }
      }
    },
    "/v1/data/ru/cbr/key-rate": {
      "get": {
        "operationId": "getCbrKeyRate",
        "summary": "Ключевая ставка ЦБ РФ на любую дату (2013-2026)",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Значение ключевой ставки ЦБ РФ"
          }
        }
      }
    },
    "/v1/data/ru/finance/penalty": {
      "get": {
        "operationId": "calcCbrPenalty",
        "summary": "Расчет процентов по ст. 395 ГК РФ и пени 1/300 или 1/150 ключевой ставки ЦБ",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "art395",
                "1_300",
                "1_150"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Детализация расчета по периодам изменения ставки"
          }
        }
      }
    },
    "/v1/data/ru/cbr/bic/{bic}": {
      "get": {
        "operationId": "lookupBic",
        "summary": "Справочник БИК банков РФ (ED807 ЦБ, 1 359 банков)",
        "parameters": [
          {
            "name": "bic",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Реквизиты банка и корсчет"
          }
        }
      }
    },
    "/v1/data/ru/calendar/add-workdays": {
      "get": {
        "operationId": "addRuWorkdays",
        "summary": "Сдвиг даты на N рабочих дней по производственному календарю РФ (2020-2027)",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Итоговая рабочая дата"
          }
        }
      }
    },
    "/v1/data/ru/okved/search": {
      "get": {
        "operationId": "searchOkved",
        "summary": "Поиск и расшифровка 2 770 кодов ОКВЭД-2",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Список кодов ОКВЭД-2"
          }
        }
      }
    },
    "/v1/data/ru/company/{inn}": {
      "get": {
        "operationId": "getCompanyByInn",
        "summary": "Карточка компании или ИП по ИНН (открытые наборы ФНС: МСП, спецрежим, численность)",
        "parameters": [
          {
            "name": "inn",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Карточка организации ФНС"
          }
        }
      }
    },
    "/v1/data/med/icd10/search": {
      "get": {
        "operationId": "searchIcd10",
        "summary": "Поиск диагнозов МКБ-10 (НСИ Минздрава РФ, 15 038 кодов)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Коды МКБ-10"
          }
        }
      }
    },
    "/v1/data/med/drugs/search": {
      "get": {
        "operationId": "searchMedDrugs",
        "summary": "Поиск лекарств ГРЛС Минздрава РФ (35 987 действующих препаратов, МНН, ЖНВЛП)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mnn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "znvlp",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Список лекарственных средств ГРЛС"
          }
        }
      }
    },
    "/v1/data/med/licenses": {
      "get": {
        "operationId": "searchMedLicenses",
        "summary": "Проверка лицензий Росздравнадзора (23 966 лицензий)",
        "parameters": [
          {
            "name": "inn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Медицинские, фармацевтические и технические лицензии"
          }
        }
      }
    },
    "/v1/data/ip/trademarks/search": {
      "get": {
        "operationId": "searchTrademarks",
        "summary": "Поиск товарных знаков РФ (Роспатент, 30 278 записей)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "actual_only",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Товарные знаки и ссылки на ФИПС"
          }
        }
      }
    },
    "/v1/data/ecom/markirovka/check": {
      "get": {
        "operationId": "checkMarkirovka",
        "summary": "Проверка обязательной маркировки Честный ЗНАК (волны 1-3 легпрома, обувь, косметика, БАД, игрушки) и ТР ТС",
        "parameters": [
          {
            "name": "tnved",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Статус маркировки, ПП РФ, требования ТР ТС и чеклист WB/Ozon"
          }
        }
      }
    },
    "/v1/data/ecom/tnved/search": {
      "get": {
        "operationId": "searchTnved",
        "summary": "Подбор кода ТН ВЭД ЕАЭС для товаров легпрома и маркетплейсов",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Подходящие коды ТН ВЭД и статус маркировки"
          }
        }
      }
    },
    "/v1/data/construction/contractor/{inn}": {
      "get": {
        "operationId": "checkContractorByInn",
        "summary": "Комплексная проверка строительного/проектного подрядчика и УК по ИНН (СРО НОСТРОЙ/НОПРИЗ + ФНС + РНП + УК)",
        "parameters": [
          {
            "name": "inn",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Карточка подрядчика и оценка риска"
          }
        }
      }
    },
    "/v1/data/real-estate/mortgage-calc": {
      "get": {
        "operationId": "calcMortgageRf",
        "summary": "Ипотечный калькулятор РФ с привязкой к ключевой ставке ЦБ и льготным программам",
        "parameters": [
          {
            "name": "price",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "down_payment",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 0
            }
          },
          {
            "name": "years",
            "in": "query",
            "schema": {
              "type": "number",
              "default": 20
            }
          },
          {
            "name": "rate",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "annuity",
                "differentiated"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Расчет платежа, переплаты и бенчмарков программ"
          }
        }
      }
    },
    "/v1/data/real-estate/projects": {
      "get": {
        "operationId": "searchRealEstateProjects",
        "summary": "Поиск ЖК и проблемных новостроек ЕИСЖС (наш.дом.рф)",
        "parameters": [
          {
            "name": "region",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "only_problem",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Список объектов ЕИСЖС"
          }
        }
      }
    },
    "/v1/data/market/salaries": {
      "get": {
        "operationId": "getRuMarketSalaries",
        "summary": "Медианные зарплаты IT и ИИ-специалистов в РФ (Москва и регионы, Junior/Middle/Senior)",
        "parameters": [
          {
            "name": "role",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Вилки зарплат и тренды спроса"
          }
        }
      }
    },
    "/v1/data/market/freelance-vs-api": {
      "get": {
        "operationId": "getFreelanceVsApi",
        "summary": "Сравнение среднего чека задачи на фрилансе РФ (Kwork/FL) со стоимостью решения через LLM API",
        "parameters": [
          {
            "name": "task",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Сравнение чека фриланса и цены API в рублях"
          }
        }
      }
    },
    "/v1/data/mcp/search": {
      "get": {
        "operationId": "searchRfMcpDirectory",
        "summary": "Каталог проверенных MCP-серверов, работающих в РФ (1С, Битрикс24, Яндекс, Telegram, WB/Ozon)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rf_ok",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Список MCP-серверов для РФ"
          }
        }
      }
    },
    "/v1/data/errors/search": {
      "get": {
        "operationId": "diagnoseLlmError",
        "summary": "Справочник ошибок LLM API (401/402/403/429/timeout) с готовым решением",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Инструкции по исправлению ошибки"
          }
        }
      }
    }
  }
}