Can now specify search type and updated to reflect api changes