Walk distance between 2 location

Hi

is there an API call where i can feed in 2 pairs of longitude/latitude and the API return the walking distance between them?

thanks