We demonstrate that in three space dimensions, the scattering behaviour of semilinear wave equations with quintic-type nonlinearities uniquely determines the nonlinearity. The nonlinearity is permitted to depend on both space and time.