FIVRA

FIVRA API v1

Открытое API для проектов ВОЛС и PON. Бесплатно, с лимитами.An open API for fiber and PON projects. Free, with fair limits.

Те же правила, что в продукте FIVRA: чтение любых исходных файлов, подготовка данных по селу, разбор рефлектограмм и приёмка исполнительной, расчёт бюджета PON. Без нейросетей — только проверяемые правила, одинаковый ответ на одинаковый файл.The same rules that run inside FIVRA: read any source file, prepare village data, parse OTDR reflectograms, check as-built archives, compute PON power budgets. No neural models — deterministic, checkable rules: the same file always gives the same answer.

0 ₽без карты и договораno card, no contract
300запросов в суткиrequests per day
SOR · MSORBellcore SR-4731, прибор любойBellcore SR-4731, any OTDR
JSON · GeoJSONответresponse

Что умеетWhat it does

Базовый адрес https://fivra.tech/platform/api/v1. Ключ — в заголовке Authorization: Bearer fvk_… или X-API-Key.Base URL https://fivra.tech/platform/api/v1. Send the key as Authorization: Bearer fvk_… or X-API-Key.

Подготовка данныхData preparation

POST /sources/read
Любой файл (PDF, DWG/DXF, XLS/XLSX, DOC, KMZ, фото со сканом) → текст с местом в файле.Any file (PDF, DWG/DXF, XLS/XLSX, DOC, KMZ, scans) → text with its place in the file.

POST /sources/prepare
Папка села (файлы или ZIP) → дома, абоненты, опоры, узлы, проверки, чего не хватает. Можно GeoJSON.A village folder (files or ZIP) → houses, households, poles, nodes, checks, what is missing. GeoJSON on request.

РефлектограммыReflectograms (OTDR)

POST /reflectograms/parse
SOR / MSOR → события, кривая, длина волны, импульс, учёт подводящего кабеля.SOR / MSOR → events, trace, wavelength, pulse width, launch-cord offset.

POST /reflectograms/check
Архив исполнительной → замечания приёмки по каждому измерению.As-built archive → acceptance findings for every measurement.

СтроительствоConstruction

POST /construction/pon-budget
Бюджет мощности PON по участкам и делителям: потери, запас, годится или нет.PON power budget by sections and splitters: loss, margin, pass/fail.

POST /construction/fault-locate
Расстояние с рефлектометра → точка на трассе и ближайшие опоры.OTDR distance → point on the route and nearest poles.

Бюджет PONPON budget

curl -s https://fivra.tech/platform/api/v1/construction/pon-budget \
  -H "Authorization: Bearer $FIVRA_KEY" -H "Content-Type: application/json" \
  -d '{"sections":[{"length_m":2000,"splices":4,"connectors":2},{"length_m":500,"splices":2}],
       "splitters":[8,8],"wavelength_nm":1310,"budget_class":"B+"}'
# → {"total_loss_db":23.48,"margin_db":3.02,"verdict":"PASS","subscribers_per_port":64,...}

Разбор рефлектограммыParse a reflectogram

curl -s https://fivra.tech/platform/api/v1/reflectograms/parse \
  -H "Authorization: Bearer $FIVRA_KEY" -F "file=@trace.sor" -F "points=1000"
# → {"measurements":[{"wavelength_nm":1310,"pulse_ns":30,"launch_cord_m":0,
#      "end_m":1250.4,"total_loss_db":0.7,"instrument":{...},"checksum":"MATCH",
#      "events":[{"distance_m":412.3,"type":"non-reflective","loss_db":0.06,"reflectance_db":null},
#                ...,{"type":"end",...}],
#      "trace":{"x_m_y_db":[[0.0,-12.24],...]}}]}

Приёмка архива исполнительнойCheck an as-built archive

curl -s https://fivra.tech/platform/api/v1/reflectograms/check \
  -H "Authorization: Bearer $FIVRA_KEY" -F "files=@as-built.zip"
# → {"summary":{"measurements":48,"clean":41,"errors":5,"warnings":2,
#      "codes":{"ERROR MISSING_WAVELENGTH":1,...},"not_read":[]},
#    "findings":[{"level":"ERROR","code":"MISSING_WAVELENGTH","message":"...",...}]}

Подготовка данных по селуPrepare village data

curl -s https://fivra.tech/platform/api/v1/sources/prepare \
  -H "Authorization: Bearer $FIVRA_KEY" -F "files=@village.zip" -F "output=geojson"
# → {"files":[{"name":"...","kind":"address_plan",...}],
#    "settlements":[{"name":"...","households_planned":124,"households_located":124,
#      "houses":[...],"poles":[...],"nodes":[...],"checks":[...],"missing":[...]}],
#    "questions":[...],"geojson":{"type":"FeatureCollection","features":[...]}}

Прочитать любой файлRead any file

curl -s https://fivra.tech/platform/api/v1/sources/read \
  -H "Authorization: Bearer $FIVRA_KEY" -F "file=@schedule.xls"
# → {"file":"schedule.xls","sha256":"...","pieces":[{"where":"...","text":"..."}],"chars":1830}

Найти место поврежденияLocate a fault

curl -s https://fivra.tech/platform/api/v1/construction/fault-locate \
  -H "Authorization: Bearer $FIVRA_KEY" -H "Content-Type: application/json" \
  -d '{"route":[{"lat":55.0,"lon":56.0},{"lat":55.0,"lon":56.01}],"optical_m":300,
       "poles":[{"name":"P5","lat":55.0,"lon":56.004}]}'

Полная схема — openapi.json. Ключи полей — на английском и не меняются в пределах v1; тексты замечаний (message) пока на русском, опирайтесь на code.Full schema: openapi.json. Field names are English and stable within v1. Human-readable message texts are in Russian for now — rely on the machine-readable code.

Бесплатный тарифFree tier

Нужно больше — напишите, поднимем лимиты для пилота.Need more? Write to us and we will raise the limits for a pilot.

ЧтоWhatЛимитLimit
Запросов в часRequests per hour60
Запросов в суткиRequests per day300
Тяжёлых в сутки (sources/prepare, reflectograms/check)Heavy per day (sources/prepare, reflectograms/check)20
Размер файла / архиваFile / archive size25 MB / 100 MB
Файлов в запросеFiles per request200

Каждый ответ несёт заголовки X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. При превышении — 429 и Retry-After. Остаток — GET /usage.Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you get 429 with Retry-After. Check usage with GET /usage.

Получить ключGet a free key

Ключ показывается один раз — сохраните его. Почта нужна только чтобы связаться при сбое или злоупотреблении.The key is shown once — save it. We use the e-mail only to reach you about outages or abuse.

Честно о границахHonest limits

API — инструмент инженера, не замена проекта. Бюджет PON — проектная оценка по типовым нормам (ITU-T G.984.2, G.671), приёмка ведётся по измеренным потерям. Подготовка данных показывает, чего не хватает, а не придумывает недостающее: каждая цифра в ответе — с местом в исходном файле. Распознавание с ИИ и проектирование сети — в самом продукте FIVRA.The API is an engineer's tool, not a substitute for a design. The PON budget is a design estimate on typical norms (ITU-T G.984.2, G.671); acceptance uses measured losses. Data preparation reports what is missing instead of inventing it: every number points back to its place in a source file. AI recognition and network design live in the FIVRA product itself.