import osfrom profound import Profoundclient = Profound(api_key=os.environ["PROFOUND_API_KEY"])categories = client.organizations.categories.list()# Print every category your key can see.for c in categories: print(f"{c.id} {c.name}")# Or: find one by name.TARGET = "<your-category-name>"match = next((c for c in categories if c.name == TARGET), None)if match: print(f"\nFound Category '{TARGET}': {match.id}")
import osfrom profound import Profoundclient = Profound(api_key=os.environ["PROFOUND_API_KEY"])categories = client.organizations.categories.list()# Print every category your key can see.for c in categories: print(f"{c.id} {c.name}")# Or: find one by name.TARGET = "<your-category-name>"match = next((c for c in categories if c.name == TARGET), None)if match: print(f"\nFound Category '{TARGET}': {match.id}")
import osfrom profound import Profoundclient = Profound(api_key=os.environ["PROFOUND_API_KEY"])categories = client.organizations.categories.list()# Print every category your key can see.for c in categories: print(f"{c.id} {c.name}")# Or: find one by name.TARGET = "<your-category-name>"match = next((c for c in categories if c.name == TARGET), None)if match: print(f"\nFound Category '{TARGET}': {match.id}")