So I am using the API V2 to pull the properties data for making a profit/expense spreadsheet and want to separate the home the user is living in from the ones they rent out to others when I run the API request all the data is correct except the "used_by.id" it leaves the spot blank, I believe this is because "data.properties[key].used_by.id;" can be multiple people when the spouse is also living there.
looking at the API docs I cant find how to get one or both players ID pulled.
As stated I mainly want this so I can distinguish what property the user lives in so that I only count the upkeep and rent of this property as expense (me in this case but would like to make it easy for someone else to be able to use)
data.properties[key].used_by.id;
data.properties[key].used_by.name;
both return blank