{"id":22297822,"url":"https://github.com/joshglazebrook/ripestat","last_synced_at":"2026-05-17T18:04:03.152Z","repository":{"id":66040919,"uuid":"96847814","full_name":"JoshGlazebrook/ripestat","owner":"JoshGlazebrook","description":"A fully featured RIPEStat Data API Client","archived":false,"fork":false,"pushed_at":"2017-07-24T03:50:28.000Z","size":371,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-19T19:51:18.436Z","etag":null,"topics":["afrinic","apnic","arin","asn","bgp","javascript","lacnic","network","prefix","ripe","ripestat","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoshGlazebrook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-11T03:42:50.000Z","updated_at":"2024-08-06T09:51:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"53dc7991-7aa8-4ccd-b260-7c46c8340968","html_url":"https://github.com/JoshGlazebrook/ripestat","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"21c0c054453e0bd919dd0995f38ed936f268dcba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JoshGlazebrook/ripestat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshGlazebrook%2Fripestat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshGlazebrook%2Fripestat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshGlazebrook%2Fripestat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshGlazebrook%2Fripestat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoshGlazebrook","download_url":"https://codeload.github.com/JoshGlazebrook/ripestat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoshGlazebrook%2Fripestat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263882260,"owners_count":23524459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["afrinic","apnic","arin","asn","bgp","javascript","lacnic","network","prefix","ripe","ripestat","typescript"],"created_at":"2024-12-03T17:51:31.374Z","updated_at":"2026-05-17T18:03:58.113Z","avatar_url":"https://github.com/JoshGlazebrook.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ripestat  [![Build Status](https://travis-ci.org/JoshGlazebrook/ripestat.svg?branch=master)](https://travis-ci.org/JoshGlazebrook/ripestat)\nA fully featured RIPEStat Data API Client for JavaScript (node.js and browser).\n\n## Highlights\n- Built in TypeScript (definitions for everything!)\n- Documentation for every api method (as of July 2017)\n- Documentation for *almost* every api response property\n- All RIPEStat API endpoints are covered\n- All methods return promises (await/async ready)\n- Live API Tests (with mock data for comparison)\n\n## Notes\n- Tested with node.js (v6+)\n- Tested with webpack v2\n\n## Installing\n\n```javascript\nyarn add ripestat\n```\n```javascript\nnpm install ripestat --save\n```\n\n## Usage\n\n```javascript\n// TypeScript/ES6\nimport { RIPEClient, RipeClientOptions } from 'ripeclient';\n\n// Older JavaScript\nvar RIPEClient = require('ripestat').RIPEClient;\n\n\nconst client = new RIPEClient();\n\n// All client methods return a promise.\nclient.asOverview({\n  resource: 'AS3333'\n})\n.then(result =\u003e {\n  console.log(result.data);\n\n  /**\n  {\n    \"resource\": \"3333\",\n    \"holder\": \"RIPE-NCC-AS Reseaux IP Europeens Network Coordination Centre (RIPE NCC), NL\",\n    \"query_starttime\": \"2017-07-23T00:00:00\",\n    \"announced\": true,\n    \"query_endtime\": \"2017-07-23T00:00:00\",\n    \"type\": \"as\",\n    \"block\": {\n      \"resource\": \"3209-3353\",\n      \"name\": \"IANA 16-bit Autonomous System (AS) Numbers Registry\",\n      \"desc\": \"Assigned by RIPE NCC\"\n    }\n}\n  **/\n});\n```\n\n## Usage (await/async)\n\n```javascript\nasync function getOverview() {\n  // All client methods return a promise.\n  const result = await client.asOverview({\n    resource: 'AS3333'\n  });\n\n  console.log(result.data);\n\n  /**\n  {\n    \"resource\": \"3333\",\n    \"holder\": \"RIPE-NCC-AS Reseaux IP Europeens Network Coordination Centre (RIPE NCC), NL\",\n    \"query_starttime\": \"2017-07-23T00:00:00\",\n    \"announced\": true,\n    \"query_endtime\": \"2017-07-23T00:00:00\",\n    \"type\": \"as\",\n    \"block\": {\n      \"resource\": \"3209-3353\",\n      \"name\": \"IANA 16-bit Autonomous System (AS) Numbers Registry\",\n      \"desc\": \"Assigned by RIPE NCC\"\n    }\n  }\n  **/\n}\n```\n## RIPEClient Options\n```javascript\n/**\n * Options for creating a RIPEClient.\n */\ninterface RIPEClientOptions {\n  /**\n   * If provided, this agent will be used when making https requests.\n   */\n  agent?: https.Agent;\n\n  /**\n   * The length of time (in milliseconds) to wait for a response.\n   */\n  timeout?: number;\n\n  /**\n   * The sourceapp string to pass to all API calls (RIPE Stat asks you to include this if you use more than 1000 queries per day).\n   * This is passed in the sourceapp query parameter.\n   */\n  sourceapp?: string;\n}\n```\n\n**Example:**\n```javascript\nconst client = new RIPEClient({\n  timeout: 60000,\n  sourceapp: 'my app'\n});\n```\n\n## API Documenation\n\nFor details on every API endpoint available please reference [https://stat.ripe.net/docs/data_api](https://stat.ripe.net/docs/data_api)\n\n\n## Globally Available Option Params\n- meta - See: [https://stat.ripe.net/docs/data_api#MetaRequest](https://stat.ripe.net/docs/data_api#MetaRequest)\n\n## Bug Reporting\nPlease feel free to open any issues if you find any problems with the Client or even the documentation.\n\n## Tests\nTests for this module are currently a work in progress. Mock data vs. live data diff comparison is as-is, but will be improved in the future.\n\n## License\n\nThis work is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshglazebrook%2Fripestat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshglazebrook%2Fripestat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshglazebrook%2Fripestat/lists"}