calling api of db for url-accessible field