Best way to pull tags with Python & Infusionsoft wrapper

Hi,

I am new to this API stuff and wondering what the best way to query a list of contacts with a specific tag. I am using Python and the Infusionsoft Python Wrapper.

From what I read, it looks like I would need to query the ContactGroupAssign table. Is the field I should query from that table the ContactGroup field? And what would the value be? The Tag ID or the Tag Name?

Thank you for your help

I doubt the Python SDK is up to date, but you can use the ContactGroupAssign table to get the contact ids for a given tag id.

I think it is easier to just use the REST API to get the same data. https://developer.infusionsoft.com/docs/rest/#!/Tags/listContactsForTagIdUsingGET

Thanks Brad!

1 Like