Import your Genshin Impact pull history
Three steps on a Windows PC: open the history in the game, copy its link with a short script, paste the link here. The link can only read your pull history, and we don't keep it.
Open the pull history in the game
Start Genshin Impact on this PC, open Wish and then History. Wait until the list shows up.
Copy the link with PowerShell
Press Win + X and choose Terminal or Windows PowerShell. Paste the script below and press Enter. It finds the history link in the game's files and puts it in your clipboard.
# GachaFans: find the Genshin Impact wish history link (reads local files only) $log = Join-Path $env:USERPROFILE 'AppData\LocalLow\miHoYo\Genshin Impact\output_log.txt' if (-not (Test-Path -LiteralPath $log)) { Write-Host 'Game log not found. Start Genshin Impact on this PC first.'; return } $m = Select-String -LiteralPath $log -Pattern '(.:/.+GenshinImpact_Data)' | Select-Object -First 1 if (-not $m) { Write-Host 'Game folder not found in the log.'; return } $data = $m.Matches[0].Groups[1].Value if (-not (Test-Path -LiteralPath $data)) { Write-Host "The game folder from the log is gone: $data. Start the game, open the pull history, then run this again."; return } $cache = Get-ChildItem -LiteralPath (Join-Path $data 'webCaches') -Recurse -File -Filter 'data_2' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1 if (-not $cache) { Write-Host 'Cache not found. Open the pull history in the game, then run this again.'; return } $tmp = Join-Path $env:TEMP ([guid]::NewGuid().ToString()) Copy-Item -LiteralPath $cache.FullName -Destination $tmp $text = [IO.File]::ReadAllText($tmp) Remove-Item -LiteralPath $tmp $url = $text -split '1/0/' | Where-Object { $_ -match 'authkey=' } | ForEach-Object { [regex]::Match($_, 'https://[A-Za-z0-9\-._~:/?#\[\]@!$&''()*+,;=%]+').Value } | Where-Object { $_ -match 'authkey=' } | Select-Object -Last 1 if (-not $url) { Write-Host 'Link not found. Open the pull history in the game, then run this again.'; return } Set-Clipboard -Value $url Write-Host 'Done: the link is in your clipboard. Paste it on the GachaFans page.'Paste the link and load the history
The history is loaded 20 pulls at a time with short pauses, so a big account can take a minute or two.
What happens to your data
HoYoverse's history service doesn't let browsers read it directly, so each request goes through our server once and straight on to HoYoverse. We don't log the link and don't store it; the history itself is saved in your browser and, if you're signed in, in your account.
The script only reads these places:
%USERPROFILE%\AppData\LocalLow\miHoYo\Genshin Impact\output_log.txt<game folder>\GenshinImpact_Data\webCaches\…\data_2
It doesn't send anything over the network, change files or ask for passwords. The link it copies contains a temporary key (authkey) that the game itself creates for the history page: it can only read your pull history and expires on its own. We never ask for your password, login or cookies.
Got a file from another tracker? UIGF v4 files load on the tracker page with “Load a file”, and so do files exported from GachaFans.
On a Mac, phone or console
- Mac
- The script is written for Windows, so on a Mac it has nothing to read.
- Phones and consoles
- On phones and consoles the game doesn't show the history link, so there's nothing to copy. The history belongs to your account rather than the device: if the same account signs in on a Windows PC, open the history there and import it, and pulls made on the phone come along.