# Web Dev API Multiple Tags read / write required

**URL:** <https://forum.inductiveautomation.com/t/web-dev-api-multiple-tags-read-write-required/87377>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [March 15, 2024, 5:43am UTC](https://forum.inductiveautomation.com/t/web-dev-api-multiple-tags-read-write-required/87377 "2024-03-15T05:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandrasekar\_s](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@chandrasekar\_s](https://forum.inductiveautomation.com/u/chandrasekar_s)\
**Post date:** [March 15, 2024, 5:43am UTC](https://forum.inductiveautomation.com/t/web-dev-api-multiple-tags-read-write-required/87377/1 "2024-03-15T05:43:12Z")

</div>

Hi all,

I'm trying to read the multiple tags to send through API using the web dev module. I can able to read a single tag and that to Json format another application.

If trying to read multiple tags I can't able to read and write those tags.

Please find the below script used in the web dev doget method.

def doGet(request, session):

```
tagValue1 = system.tag.readBlocking([request['data']['tagPath1']])
tagValue2 = system.tag.readBlocking([request['data']['tagPath2']])

return {'json':[{'tagValue1': tagValue1[0].value}, {'tagValue2': [tagValue2[0].value'}]

```

In the Post Body I gave the body below image reference.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/1/b1e77ba9e32be81ec2bf29f0f1eb9b325c807f17.png)

So Is that the correct method or suggest the changes?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 15, 2024, 12:11pm UTC](https://forum.inductiveautomation.com/t/web-dev-api-multiple-tags-read-write-required/87377/2 "2024-03-15T12:11:36Z")

</div>

```auto
tagValues = system.tag.readBlocking([request['data']['tagPath1'],[request['data']['tagPath2']])
return {'json':system.util.jsonEncode(tagValues)}

```

Would be the simplest way.
