[API] Get Character ID from Name-Realm?

Is there any way to get a Character ID from the API?

Currently in the web interface, you can search for a character’s name and get a list of characters, then click the one you wish to see.

eg: https://www.warcraftlogs.com/rankings/character/1111111/latest

Is there any way of getting the 1111111 character id via the API?

You can use rankings/character_name/ instead of rankings/character.

what’s the syntax?