# Document.query Selector from post? / integrate API

**URL:** https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689
**Category:** Feature
**Created:** [May 2, 2019, 12:36pm UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689 "2019-05-02T12:36:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shaco](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shaco](https://meta.discourse.org/u/shaco)
#### Post date: [May 2, 2019, 12:36pm UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689/1 "2019-05-02T12:36:02Z")

</div>

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 ?

---

<div class="post-metadata">

### Author: ![shaco](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shaco](https://meta.discourse.org/u/shaco)
#### Post date: [May 2, 2019, 8:39pm UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689/2 "2019-05-02T20:39:16Z")

</div>

Does anyone know anything?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 2, 2019, 9:26pm UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689/3 "2019-05-02T21:26:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![shaco](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shaco](https://meta.discourse.org/u/shaco)
#### Post date: [May 3, 2019, 10:35am UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689/4 "2019-05-03T10:35:46Z")

</div>

> [@pfaffman](#):
>
> hat post every day?

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

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 3, 2019, 12:11pm UTC](https://meta.discourse.org/t/document-query-selector-from-post-integrate-api/116689/5 "2019-05-03T12:11:25Z")

</div>

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

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