If you need to export a list of monitored vendors, the UpGuard API provides an endpoint to do so. The endpoint provides the name of each vendor, its primary domain, any labels associated with the vendor and its current CSR score. This guide shows you how to leverage this endpoint to export your monitored vendors to CSV.

To access the UpGuard API, you will need to generate and access your API key. For more information on accessing your key, please refer to our guide on locating your API key in the article How to Bulk Import Vendors.

Building and Running the Export Script

Here we have provided a few sample scripts that generate a four-column CSV, with headers name, primary_domain, score, labels. If you don’t see your language of choice here, please contact UpGuard Support and we can provide more examples.

For more information on the endpoint we are using here, please visit List monitored vendors.



Note: The above command uses the jq command, which you may need to install on your machine.


# pip install upguard
import upguard

o = upguard.Account("your-api-key")

sep = ","
headers = ["name","primary_domain","score","labels"]

for v in o.vendors():
print(sep.join([v.name, v.primary_domain, str(v.overall_score), sep.join(v.labels)]))

Related Articles

Did this answer your question?