I use axios for API request to some url, and I get back string of whole website. Now I want to fetch specific dom element, i.e.
Try reading the api doc and find out If the api supports JSON/XML response. It will be much easier to grab value you want. Otherwise(If it only returnes raw html), you’ll have to parse html and grab the value you want unless api supports returning a single element.
I did it with jQuery
If you are using jQuery also for your ajax call you could try something like was suggested in this stack overflow question.