{"id":20134251,"url":"https://github.com/trickfilm400/primagas-api","last_synced_at":"2026-04-13T09:32:16.158Z","repository":{"id":119524591,"uuid":"469108401","full_name":"Trickfilm400/primagas-api","owner":"Trickfilm400","description":"NodeJS API for accessing data from primagas.de customer portal","archived":false,"fork":false,"pushed_at":"2026-02-22T10:43:04.000Z","size":99,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-19T02:47:01.272Z","etag":null,"topics":["api","gas","nodejs","nodejs-api","nodejs-modules","npm","npm-module","npm-package","npm-registry","primagas"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@trickfilm400/primagas-api","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/Trickfilm400.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,"zenodo":null}},"created_at":"2022-03-12T14:38:05.000Z","updated_at":"2026-02-22T10:43:08.000Z","dependencies_parsed_at":"2024-05-04T20:27:16.701Z","dependency_job_id":"ab598d5d-4e21-4bec-ad65-0852a1a55190","html_url":"https://github.com/Trickfilm400/primagas-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Trickfilm400/primagas-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trickfilm400%2Fprimagas-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trickfilm400%2Fprimagas-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trickfilm400%2Fprimagas-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trickfilm400%2Fprimagas-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trickfilm400","download_url":"https://codeload.github.com/Trickfilm400/primagas-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trickfilm400%2Fprimagas-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","gas","nodejs","nodejs-api","nodejs-modules","npm","npm-module","npm-package","npm-registry","primagas"],"created_at":"2024-11-13T21:08:17.350Z","updated_at":"2026-04-13T09:32:16.135Z","avatar_url":"https://github.com/Trickfilm400.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# primagas-api\n\nThis NPM package provides a full nodejs-api for the Primagas-Website to fetch data of your account, your gas tank and more.\n\n~~Note: As of July 2023, there is a new customer portal, which is a complete rewrite of the old one. This script will currently not work with the new one and the old one is offline.~~\n\nSome information about the new portal:\n- OAuth2 Authorization URL: `https://depgprodaadb2c.b2clogin.com/depgprodaadb2c.onmicrosoft.com/b2c_1a_signinorsignup/oauth2/v2.0/authorize`\n- OAuth2 Token URL: `https://depgprodaadb2c.b2clogin.com/depgprodaadb2c.onmicrosoft.com/b2c_1a_signinorsignup/oauth2/v2.0/token`\n- OAuth2 Client ID: `15f4b687-8555-413c-bafd-acb38cff6837`\n- OAuth2 redirect URL: `https://kunden.primagas.de/api/auth/callback/azureadb2c`\n- OAuth2 flow uses PKCE with SHA256\n- API Endpoint for tank data: `https://api.shvenergy.com/assets-api/v1/business-units/DE-PG/accounts/\u003ccustomer-number\u003e/delivery-points/\u003ccustomer-number\u003e_T_1/assets/\u003ccustomer-number\u003e_T_1/readings?$filter=`\n\n\nThis NPM package provides a full nodejs-api for the Primagas-Website to fetch data of your account, our gas tank...\n\n**Note:** Currently, not all API functions are implemented which are available of the [shvenergy-api](https://github.com/Trickfilm400/shvenergy-api)\n\n## Usage\n\n- Install NPM package from GitHub.\n- Functions return a Promise\n- For detailed information about the function return values, view the Typescript interface files in `/src/interfaces`\n\n## Example\n\n```typescript\nimport PrimaGasClient from \"@trickfilm400/primagas-api\";\n\nconst client = new PrimaGasClient\u003c\"timestamp\"\u003e(\"\u003cUSERNAME\u003e\", \"\u003cPASSWORD\u003e\", \"\u003cCUSTOMER-NUMBER\u003e\", \"timestamp\");\n\nclient.tankDaten().then(console.log, console.error);\n// client.rechnungsDaten().then(console.log, console.error);\n// client.stammDaten().then(console.log, console.error);\n```\n\n\u0026copy; 2022-2024 Trickfilm400\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickfilm400%2Fprimagas-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrickfilm400%2Fprimagas-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickfilm400%2Fprimagas-api/lists"}