{"id":21721840,"url":"https://github.com/bgpkit/bgpkit-parser-api-demo","last_synced_at":"2026-05-03T23:32:36.609Z","repository":{"id":106927624,"uuid":"431720738","full_name":"bgpkit/bgpkit-parser-api-demo","owner":"bgpkit","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-18T21:00:23.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T22:13:11.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/bgpkit.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}},"created_at":"2021-11-25T05:07:31.000Z","updated_at":"2021-12-16T21:19:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"034b05fd-9698-497d-928b-d2eab4e40e08","html_url":"https://github.com/bgpkit/bgpkit-parser-api-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bgpkit/bgpkit-parser-api-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgpkit%2Fbgpkit-parser-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgpkit%2Fbgpkit-parser-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgpkit%2Fbgpkit-parser-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgpkit%2Fbgpkit-parser-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgpkit","download_url":"https://codeload.github.com/bgpkit/bgpkit-parser-api-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgpkit%2Fbgpkit-parser-api-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"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":[],"created_at":"2024-11-26T02:19:14.313Z","updated_at":"2026-05-03T23:32:36.593Z","avatar_url":"https://github.com/bgpkit.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BGPKIT Parser REST API Demo\n\n## Queries\n\nEnd point: `http://localhost:8080/parser`\n\nParameters:\n- `file`: required. path to the file to parse.\n- `max`: optional. maximum number of messages to return. default 100.\n- `asn`: optional. filter by origin asn.\n- `prefix`: optional. filter by origin prefix.\n- `msg_type`: optional. filter by message type, values can be \"a\" or \"w\".\n\n## Run from Docker\n\n`docker run --rm -p 8080:8080 bgpkit/bgpkit-parser-api-demo:latest`\n\n## Example\n\nParse an update file and filter by ASN 15169:\n``` \n➜  ~ curl --silent \"http://localhost:8080/parse?file=https://spaces.bgpkit.org/parser/update-example.gz\" |jq \n{\n  \"data\": [\n    {\n      \"aggr_asn\": null,\n      \"aggr_ip\": null,\n      \"as_path\": \"20912 15169\",\n      \"atomic\": \"NAG\",\n      \"communities\": [\n        \"20912:65016\"\n      ],\n      \"elem_type\": \"ANNOUNCE\",\n      \"local_pref\": 0,\n      \"med\": 0,\n      \"next_hop\": \"212.66.96.126\",\n      \"origin\": \"IGP\",\n      \"origin_asns\": [\n        15169\n      ],\n      \"peer_asn\": 20912,\n      \"peer_ip\": \"212.66.96.126\",\n      \"prefix\": \"142.251.21.0/24\",\n      \"timestamp\": 1633046897.08933\n    },\n    {\n      \"aggr_asn\": null,\n      \"aggr_ip\": null,\n      \"as_path\": \"3561 3910 3356 15169\",\n      \"atomic\": \"NAG\",\n      \"communities\": null,\n      \"elem_type\": \"ANNOUNCE\",\n      \"local_pref\": 0,\n      \"med\": 0,\n      \"next_hop\": \"206.24.210.80\",\n      \"origin\": \"IGP\",\n      \"origin_asns\": [\n        15169\n      ],\n      \"peer_asn\": 3561,\n      \"peer_ip\": \"206.24.210.80\",\n      \"prefix\": \"35.217.0.0/18\",\n      \"timestamp\": 1633047093.521516\n    }\n  ],\n  \"error\": null\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgpkit%2Fbgpkit-parser-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgpkit%2Fbgpkit-parser-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgpkit%2Fbgpkit-parser-api-demo/lists"}