The API can match by name as well as ID I think, perhaps suggest this as an alternative for $id?