PullDeck

Import your Genshin Impact wishs

Genshin generates a temporary, read-only URL whenever you open your Wish History. This guide pulls that URL out of the game's local web cache. Total time: about two minutes. No downloads, no account login outside the game.

Safety: the URL these steps produce is read-only, can only fetch pull history, and expires on its own. It cannot log in or change anything on your account, and PullDeck never stores it.

  1. 1.Open Wish History in the game

    Launch Genshin Impact on PC, open the Wishes screen, click the History button, and let the page fully load. This writes a fresh URL (with a 24-hour authkey) into the game's cache.

  2. 2.Open PowerShell

    Press Win + R, type powershell, and press Enter. No administrator rights needed.

  3. 3.Paste this script and press Enter

    It finds your game folder from the game's own log file, reads the web cache, extracts the newest wish-history URL, and copies it to your clipboard. It reads two files and changes nothing.

    $log = Get-Content "$env:USERPROFILE\AppData\LocalLow\miHoYo\Genshin Impact\output_log.txt" -Raw -ErrorAction SilentlyContinue
    if (-not $log) { Write-Host "Log not found - launch the game and open Wish History first."; return }
    $m = [regex]::Match($log, '([A-Za-z]:[\\/].*?)(GenshinImpact_Data|YuanShen_Data)')
    $gameDir = $m.Groups[1].Value + $m.Groups[2].Value
    $cacheDir = Get-ChildItem "$gameDir\webCaches" -Directory | Sort-Object Name -Descending | Select-Object -First 1
    $tmp = Join-Path $env:TEMP "pd_data_2"
    Copy-Item (Join-Path $cacheDir.FullName "Cache\Cache_Data\data_2") $tmp -Force
    $content = [System.IO.File]::ReadAllText($tmp)
    $urls = [regex]::Matches($content, 'https://[^\x00"]*?getGachaLog[^\x00"]*')
    if ($urls.Count -eq 0) { Write-Host "No wish URL found - open Wish History in game, then run this again."; return }
    Set-Clipboard $urls[$urls.Count - 1].Value
    Write-Host "Done! Your wish history URL is on the clipboard - paste it into PullDeck."
  4. 4.Import

    Go to the Import page, select Genshin Impact, paste (Ctrl + V), and click Import. You'll see per-banner progress as your wishes come in.

Troubleshooting

“Log not found”

The game writes output_log.txt on launch. Start the game, open Wish History, close nothing, and run the script again. Chinese client: the log lives under AppData\LocalLow\miHoYo\原神 instead.

“No wish URL found”

The cache only contains the URL after the History page has actually rendered. Open it in game, wait for entries to appear, then re-run.

Authkey expired during import

Authkeys last about 24 hours. Repeat steps 1–3 for a fresh URL.

Playing on mobile or console?

Log into the same account on any PC once and follow this guide there; your history is account-wide. PlayStation-only accounts must link a PC login first.