getting html content to be sent
remove api-name from exisiting
removed query specified and fixed get posts api call