{"id":18689303,"url":"https://github.com/derstimmler/aokexporter","last_synced_at":"2026-05-15T20:01:55.110Z","repository":{"id":235024200,"uuid":"789929216","full_name":"DerStimmler/AokExporter","owner":"DerStimmler","description":"Exporter for data from the statutory health insurance company AOK","archived":false,"fork":false,"pushed_at":"2024-04-24T23:04:12.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T01:25:24.753Z","etag":null,"topics":["aok","cocona","console","csharp","data","dotnet","export","polly"],"latest_commit_sha":null,"homepage":"","language":"C#","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/DerStimmler.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":"2024-04-21T23:34:22.000Z","updated_at":"2025-02-10T16:55:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ced4aad8-f604-4dbe-9908-aaffa2f8418d","html_url":"https://github.com/DerStimmler/AokExporter","commit_stats":null,"previous_names":["derstimmler/aokexporter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/DerStimmler/AokExporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2FAokExporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2FAokExporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2FAokExporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2FAokExporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DerStimmler","download_url":"https://codeload.github.com/DerStimmler/AokExporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DerStimmler%2FAokExporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33077924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["aok","cocona","console","csharp","data","dotnet","export","polly"],"created_at":"2024-11-07T10:42:56.865Z","updated_at":"2026-05-15T20:01:55.082Z","avatar_url":"https://github.com/DerStimmler.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AOK Exporter\n\nExporter for data from the statutory health insurance company AOK\n\n## Usage\n\n### Export patient receipts (Patientenquittungen)\n\n1. [Log in](https://meine.aok.de/) to your AOK Account\n2. Execute the following code in your browsers DevTools to retrieve your access and refresh tokens from localStorage and create the required program options\n```js\nconsole.log(`-a ${JSON.parse(localStorage.getItem(\"spartacus⚿⚿auth\")).token.access_token} -r ${JSON.parse(localStorage.getItem(\"spartacus⚿⚿auth\")).token.refresh_token}`)\n```\n3. Execute the program with these options\n```powershell\n./AokExporter.exe -a ey.... -r ory_rt_...\n```\n4. Your export is available in your output directory (see option `--outputDirectory`). It follows this directory structure:\n```text\noutputDirectory/\n├─ serviceGroup1/\n│  ├─ serviceGroup1.json\n│  ├─ case1/\n│  │  ├─ case1.json\n│  ├─ case2/\n│  │  ├─ case2.json\n│  ├─ case3/\n│  │  ├─ case3.json\n├─ serviceGroup2/\n│  ├─ serviceGroup2.json\n│  ├─ case4/\n│  │  ├─ case4.json\n│  ├─ case5/\n│  │  ├─ case5.json\n├─ serviceGroup3/\n│  ├─ serviceGroup3.json\n│  ├─ case6/\n│  │  ├─ case6.json\n```\nE.g.:\n```text\noutputDirectory/\n├─ Ärztliche Leistungen/\n│  ├─ Ärztliche Leistungen.json\n│  ├─ Dr. med. Erika Mustermann/\n│  │  ├─ case1.json\n│  ├─ Dr. med. Max Mustermann/\n│  │  ├─ case2.json\n├─ Zahnärztliche Leistungen/\n│  ├─ Zahnärztliche Leistungen.json\n│  ├─ Dr. med. Max Meier/\n│  │  ├─ case4.json\n│  ├─ Dr. Hermann Maxe/\n│  │  ├─ case5.json\n├─ Hilfsmittel/\n│  ├─ Hilfsmittel.json\n│  ├─ Apotheke GmbH/\n│  │  ├─ case6.json\n```\n\n## Options\n\n| Option                   | Description                                                          | Required                      |\n|--------------------------|----------------------------------------------------------------------|-------------------------------|\n| `-a` `--accessToken`     | Sets the access token                                                | ✔                             |\n| `-r` `--refreshToken`    | Sets the refresh token                                               | ✔                             |\n| `-f` `--from`            | Sets the date from which data is collected (_Format:_ `yyyy-MM-dd`)  | _Default:_ min available date |\n| `-t` `--to`              | Sets the date until which data is collected (_Format:_ `yyyy-MM-dd`) | _Default:_ max available date |\n| `-o` `--outputDirectory` | Sets the output directory                                            | _Default:_ `./export`         |\n\n\n## Hints\n\n- You're access token is only valid for 5 min. so you have to be faster than that when copying your token and starting the program.\n- Don't navigate the website after copying the tokens because it's possible that a new refresh token gets generated and the old one gets stale.\n- Should your tokens not work refresh the page and retrieve the tokens again.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderstimmler%2Faokexporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderstimmler%2Faokexporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderstimmler%2Faokexporter/lists"}