# How to read tag parameters in python script?

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-tag-parameters-in-python-script/53613>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 1, 2021, 11:18am UTC](https://forum.inductiveautomation.com/t/how-to-read-tag-parameters-in-python-script/53613 "2021-12-01T11:18:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzbh1234](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tzbh1234](https://forum.inductiveautomation.com/u/tzbh1234)\
**Post date:** [December 1, 2021, 11:18am UTC](https://forum.inductiveautomation.com/t/how-to-read-tag-parameters-in-python-script/53613/1 "2021-12-01T11:18:53Z")

</div>

Hi,  
I want to print a list of tags in specific path and the first parameter in each tag.  
I can read the name of each tag and want to ask how to get the first parameter?  
All tags have first parameter.  
This is the code of the name.

```python
tags = system.tag.browseTags(parentPath="projectName/CM/Transmitters")
for t in tags:
	print(t.name)
	

```

Thanks

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 1, 2021, 11:51am UTC](https://forum.inductiveautomation.com/t/how-to-read-tag-parameters-in-python-script/53613/2 "2021-12-01T11:51:27Z")

</div>

> [@tzbh1234](#):
>
> ```auto
> tags = system.tag.browseTags(parentPath="projectName/CM/Transmitters")
> for t in tags:
> print(t.name)
> 
> ```

[https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration](https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration)  
the if is required as not all tags have parameters

```auto
	tags = system.tag.browseTags(parentPath="projectName/CM/Transmitters")
	for t in tags:
		print(t.name)
		tagConfig = system.tag.getConfiguration(t.name,False)[0]
		if 'parameters' in tagConfig :
			print(tagConfig['parameters'])

```

---

<div class="post-metadata">

**Author:** ![tzbh1234](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tzbh1234](https://forum.inductiveautomation.com/u/tzbh1234)\
**Post date:** [December 6, 2021, 12:14pm UTC](https://forum.inductiveautomation.com/t/how-to-read-tag-parameters-in-python-script/53613/3 "2021-12-06T12:14:30Z")

</div>

Thank you 🙂
