added code for get related words api call