{"id":47875933,"url":"https://github.com/vittodevit/fibercop-data-api","last_synced_at":"2026-04-04T01:14:15.175Z","repository":{"id":338832041,"uuid":"1158860914","full_name":"vittodevit/fibercop-data-api","owner":"vittodevit","description":"Unofficial mirror API for FiberCop's latest CRO/CNO data. Provides endpoints to access raw data, download CSV, get compact lists for map display, retrieve detailed records by ID, and view dataset statistics.","archived":false,"fork":false,"pushed_at":"2026-02-16T16:57:57.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-17T00:18:36.595Z","etag":null,"topics":["csv","docker","fastapi","python"],"latest_commit_sha":null,"homepage":"https://fbdapi.vitto.dev/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vittodevit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T02:23:04.000Z","updated_at":"2026-02-16T17:43:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vittodevit/fibercop-data-api","commit_stats":null,"previous_names":["vittodevit/fibercop-data-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vittodevit/fibercop-data-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittodevit%2Ffibercop-data-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittodevit%2Ffibercop-data-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittodevit%2Ffibercop-data-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittodevit%2Ffibercop-data-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vittodevit","download_url":"https://codeload.github.com/vittodevit/fibercop-data-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vittodevit%2Ffibercop-data-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31383916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","docker","fastapi","python"],"created_at":"2026-04-04T01:14:13.199Z","updated_at":"2026-04-04T01:14:15.165Z","avatar_url":"https://github.com/vittodevit.png","language":"Python","readme":"# FiberCop Data API\nUnofficial mirror API for FiberCop's latest CRO/CNO data. Provides endpoints to access raw data, download CSV, get compact lists for map display, retrieve detailed records by ID, and view dataset statistics.\n\n*Public API at*: https://fbdapi.vitto.dev/\n*Documentation*: https://fbdapi.vitto.dev/docs\n\n## Some technical info\n\n**Stack**: FastAPI + Uvicorn (async Python), Docker\n\n**Architecture**:\n- **fetcher.py**: Daily scheduled job (APScheduler) downloads FiberCop's ZIP, extracts CSV with 90k+ CRO/CNO records\n- **cache.py**: Thread-safe singleton cache with pre-computed views (listmap for maps, details dict for O(1) ID lookups, stats aggregations)\n- **main.py**: FastAPI with 7 endpoints - `/raw`, `/list` (objects), `/listmap` (arrays for map perf), `/download` (CSV), `/details/{id}`, `/stats`, `/health`\n\n**Some optimizations**:\n- Integer-based IDs (not UUIDs or already existing fields) for faster lookup\n- Array-of-arrays format `[[id,lat,lon,type],...]` minimizes JSON payload\n- ETag + 24h cache headers on all responses\n- Disk-persisted CSV survives container restart\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvittodevit%2Ffibercop-data-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvittodevit%2Ffibercop-data-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvittodevit%2Ffibercop-data-api/lists"}