Is there some way to get the next hop via the API for a single IP address (e.g. 1.2.3.4) and not its subnet (e.g. 1.2.3.0/24)?
I can get the nexthop for a subnet via the API, but not for a single IP address. Fetching the entire routing table of more than 3000 entries is not feasible.
you can take a look at queries.
http://wiki.mikrotik.com/wiki/API#Queries
if that is not suitable - a whole list it is.