get comment over API?

Hello,

How get comment (from /ip route, /ip firewall filter, …) over API???

Thanks :slight_smile:

print and getall shows comments

/ip/firewall/filter/print

!re
=.id=*B
=chain=unused-hs-chain
=action=passthrough
=bytes=0
=packets=0
=invalid=false
=dynamic=false
=disabled=true
=comment=place hotspot rules here

If you want only comments, then

/ip/firewall/filter/print
=.proplist=.id,comment

!re
=.id=*B
=comment=place hotspot rules here

Thank You,

I had any script, but then did not work :frowning:
Later, I found this information:

*What’s new in 3.28:
) api - value of ‘comment’ property was only returned from ‘system’ package programs;

I had 3.26 version… :slight_smile: