[Tutorial] Get Refreshtoken on Windows + Powershell + Python + Selenium (maybe add to Wiki) #1320
Replies: 6 comments 3 replies
-
|
Thank you for this guide on Windows. Thanks to all involved in getting this working again! |
Beta Was this translation helpful? Give feedback.
-
|
I have added this to https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/wiki/Kia-Europe-Login-Flow Thank you for providing this! |
Beta Was this translation helpful? Give feedback.
-
|
Does this method work for Hyundai U.K? |
Beta Was this translation helpful? Give feedback.
-
|
Hi,
I have, it won't accept my user name and password.
*Best Regards*
*Tim Smith *
- Technical Director
*Unit 46 Queens Court Trading Estate*
*Greets Green Road*
*West Bromwich*
*West Midlands*
*B70 9EQ*
*T*: 0121 557 3837 *F*: 0121 520 6226 *M*: 07747025415 *W*:
www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at
***@***.***
Gotronic Ltd is a company registered in England & Wales with company number
3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender
immediately and do not disclose the contents to anyone or make copies
thereof.
…On Fri, 26 Sept 2025, 17:54 Puma7, ***@***.***> wrote:
It should work, you can simply try
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZMAVSGZMXZYIMA5476K5433UVVTDAVCNFSM6AAAAACHCP4LFGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINJSGQ2DSMA>
.
You are receiving this because you commented.Message ID:
<Hyundai-Kia-Connect/kia_uvo/repo-discussions/1320/comments/14524490@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
When I run the script, I enter the same user name and password as my
Bluelink app, and it will not accept them.
*Best Regards*
*Tim Smith *
- Technical Director
*Unit 46 Queens Court Trading Estate*
*Greets Green Road*
*West Bromwich*
*West Midlands*
*B70 9EQ*
*T*: 0121 557 3837 *F*: 0121 520 6226 *M*: 07747025415 *W*:
www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at
***@***.***
Gotronic Ltd is a company registered in England & Wales with company number
3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender
immediately and do not disclose the contents to anyone or make copies
thereof.
…On Sun, 28 Sept 2025, 09:22 Puma7, ***@***.***> wrote:
you mean username and token, not the password?
Have you used your mail as user and: "Refresh Token ← use this as your
“password” in clients (e.g., Home Assistant)"
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZMAVSAIV7S5DHRL6JZAEZL3U6LETAVCNFSM6AAAAACHCP4LFGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINJTGI4TAMI>
.
You are receiving this because you commented.Message ID:
<Hyundai-Kia-Connect/kia_uvo/repo-discussions/1320/comments/14532901@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
I can login there but that is probba ly because I created another login
id with the same details as my bluelink.
*Best Regards*
*Tim Smith *
- Technical Director
*Unit 46 Queens Court Trading Estate*
*Greets Green Road*
*West Bromwich*
*West Midlands*
*B70 9EQ*
*T*: 0121 557 3837 *F*: 0121 520 6226 *M*: 07747025415 *W*:
www.gotronic.co.uk
For all accounts inquiries, please contact the accounts team at
***@***.***
Gotronic Ltd is a company registered in England & Wales with company number
3776064
Registered Office: As Above Vat No. 729 9424 92
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email by mistake, please notify the sender
immediately and do not disclose the contents to anyone or make copies
thereof.
…On Mon, 29 Sept 2025, 10:02 Puma7, ***@***.***> wrote:
ok, possibly the UK is using something else than "
https://idpconnect-eu.kia.com", but in the past it used the same url then
the rest of europe. Can you simply log in on this url or does it solso tell
you that your login is incorrect:
https://idpconnect-eu.kia.com/auth/api/v2/user/oauth2/authorize?ui_locales=de&scope=openid+profile+email+phone&response_type=code&client_id=peukiaidm-online-sales&redirect_uri=https%3A%2F%2Fwww.kia.com%2Fapi%2Fbin%2Foneid%2Flogin&state=aHR0cHM6Ly93d3cua2lhLmNvbS9kZS8
—
Reply to this email directly, view it on GitHub
<#1320 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZMAVSGVVUOMQAPMWNH6UDT3VDYSRAVCNFSM6AAAAACHCP4LFGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINJTHE4TQMA>
.
You are receiving this because you commented.Message ID:
<Hyundai-Kia-Connect/kia_uvo/repo-discussions/1320/comments/14539980@
github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Kia Europe — Get a Refresh Token on Windows (Python + Selenium)
Kia’s EU login flow now requires solving a Google reCAPTCHA. Because CAPTCHAs can’t be automated safely, most API clients (e.g., Home Assistant integrations) no longer accept your Kia password. Instead, you must log in once in a real browser and then use the resulting refresh token. This guide shows the simplest, working method on Windows using Python + Selenium.
Requirements
pyon Windows)No additional browser extensions are needed.
Quick Start (copy & paste)
Open PowerShell and run the following commands in order:
What happens next
A Chrome window opens with the correct mobile user agent required by Kia.
Log in to your Kia account and solve reCAPTCHA.
Once login succeeds, the script completes the OAuth flow and prints:
Use the refresh token in Home Assistant
Why we recommend this method
Invalid parameterserrors).Troubleshooting (focused on this method)
The Chrome window doesn’t open / driver error
Ensure Chrome is installed and up to date.
Some corporate environments block ChromeDriver downloads. Try on a home network or allow the download temporarily.
You can re-run:
I log in, but the script never prints tokens
Access denied / network errors
prd.eu-ccapi.kia.com:8080.Lost the refresh token or suspect compromise
Notes for maintainers
Beta Was this translation helpful? Give feedback.
All reactions