How to go about "Visiting website" via API like in chatgpt ui?

Hi all, hope all is well.
So i’m building an app that revolves around generating relevant keywords for multiple companies for SEO purposes.

Previously I prompting chatgpt to visit the website along with my prompt to generate keywords. This was useful because if the keywords weren’t to my liking I could feed it more urls to visit and also specify which keywords I didn’t want.

How would I go about doing something like this via API?
Scouring the forums i’ve found that embeddings would be a potential solution however I have multiple company websites I want it to “visit”- I don’t know if creating embeddings for each website would be viable.

Any input from you all will be greatly appreciated.