{"id":25590675,"url":"https://github.com/eros/ergast-node","last_synced_at":"2026-05-17T04:31:47.104Z","repository":{"id":152616844,"uuid":"625315170","full_name":"Eros/Ergast-Node","owner":"Eros","description":"Async Node.js wrapper for Ergast API","archived":false,"fork":false,"pushed_at":"2024-01-10T14:57:35.000Z","size":80,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T15:16:55.707Z","etag":null,"topics":["ergast","ergast-api","f1","node","nodejs","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/Eros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2023-04-08T18:22:32.000Z","updated_at":"2023-04-09T21:20:43.000Z","dependencies_parsed_at":"2023-07-24T14:35:47.764Z","dependency_job_id":"b2cf4b04-0d92-4559-97e7-dcf61e88fa31","html_url":"https://github.com/Eros/Ergast-Node","commit_stats":null,"previous_names":["eros/ergast-ts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eros%2FErgast-Node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eros%2FErgast-Node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eros%2FErgast-Node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eros%2FErgast-Node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eros","download_url":"https://codeload.github.com/Eros/Ergast-Node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239986432,"owners_count":19729617,"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":["ergast","ergast-api","f1","node","nodejs","typescript"],"created_at":"2025-02-21T09:22:52.768Z","updated_at":"2025-11-11T04:02:46.513Z","avatar_url":"https://github.com/Eros.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ergast Node\n\nSmall Async NodeJS wrapper for the Ergast API which provides data for the Formula 1 racing series.\nSee https://ergast.com/mrd/ for more information on their documentation.\n\n# Install\n\n`npm install @rapidthenerd/ergast-ts`\n\n[Npm link](https://www.npmjs.com/package/@rapidthenerd/ergast-ts?activeTab=readme)\n\n# Setup\n\n`npm install axios`\n\n`npm intsall -D @types/node-cache`\n\n\u003e Minimum supported Node.js version is v14\n\n# Usage\n\n```typescript\nimport {ErgastNode} from \"./ergastNode\";\n\nclass Example {\n    \n    private readonly ergast: ErgastNode = new ErgastNode();\n    \n    public exampleCircuit() {\n        this.ergast.circuit.getForCurrentYear(3);\n        this.ergast.circuit.getFor(2000, 3);\n    }\n    \n    public exampleConstructor() {\n        this.ergast.constructor.getForTeam('red_bull');\n    }\n    \n    public exampleDriver() {\n        this.ergast.driver.getByLastName('Tsunoda');\n        this.ergast.driver.getByDriverNumber(33);\n    }\n    \n    public exampleFinishingStatus() {\n        this.ergast.finishingStatus.getFor(2000, 3);\n        this.ergast.finishingStatus.getForCurrentYear(3);\n    }\n    \n    public exampleLaps() {\n        this.ergast.laps.getFor(2000, 2, 1);\n        this.ergast.laps.getForCurrentYear(2, 1);\n    }\n    \n    public examplePitstops() {\n        this.ergast.pitStops.getFor(2000, 2, 1);\n    }\n    \n    public exampleQualifying() {\n        this.ergast.qualifying.getFor(2000, 2);\n    }\n    \n    public exampleSeasons() {\n        this.ergast.seasons.getForYear(2000);\n        this.ergast.seasons.getForCurrentYear();\n    }\n    \n    public exampleStandings() {\n        this.ergast.standings.getFor(2000);\n        this.ergast.standings.getForCurrentYear();\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feros%2Fergast-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feros%2Fergast-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feros%2Fergast-node/lists"}