Be extremely careful. Downloading random .dll files from the internet is a primary way to get malware. If you must replace it manually:
Place the file in the main directory where the AVP.exe is located. Restart your PC. Why does this happen? Most steam_api.dll issues in AVP 3 occur because of:
In rare cases, a crash during a cloud save sync can corrupt the API link.