api pathname