Hi @Anonymous User
Im not sure what you mean by alternative titles. Perhaps this is the 'name' property as shown below? If the item is a feature service, it will print the layers and tables within the service.
groups = gis.groups.search()
for g in groups: # looping through groups
content = g.content()
print(content) # printing list of each group's content
for c in content:
print(c) # printing each group's content separately as an item, has type Feature Layer Collection
print(c.title)
print(c.name)
print(c.type)
## if it is a feature service, print the names of layers and tables
if c.type == "Feature Service":
for lyr in c.layers:
print(lyr.properties.name)
for tbl in c.tables:
print(tbl.properties.name)
You can access any item properties using the below. Just remember that these are the ITEM properties only, if you wanted the properties of a Feature Layer Collection, Feature Layer, Table, or WebMap for examples, you need to access the properties of these as their own objects.
from arcgis.gis import GIS
agol = GIS("home")
item = agol.content.get("AGOL_ITEM_ID")
for prpty in item:
print(prpty, item[prpty])
~ learn.finaldraftmapping.com