Document.query Selector from post? / integrate API

I would like to configure an api for the first post in the topic.
Can I specify a variable for a given item that can be changed later by api ?

for example, I want to make a post in this style:
I am from Germany.
My City is: X
Weather: (and there is actual weather in X city from api )

I would like to change the field and fetch auotmatic data from API.
How can I extract Weather / create selector document.query for this ?

Does anyone know anything?

So you want to change the weather in that post every day?

3 Likes

No. I just want it to write the current value in the post and stay that way.

Then why not just write the post that way to start?

Can you back up and describe what you are trying to do?

1 Like