What is your starting point?
The ID for faved_by_id is the user’s ID, same as any other place the user’s ID applies. If you already know their user ID, there is no further work for you to do.
I do not see an endpoint to directly get a user’s ID if you only know their username. You can get a user’s ID by finding any non-anonymous
upload,
comment,
forum post, or
gallery, by username - the user ID is part of these responses.
If you know the user has favorites, you can search for
faved_by:username
instead of faved_by_id: