Skip to main content

site.get_visitors

Overview

  • Returns all visitors at the possessed character's current site with cached portraits.

Metadata

FieldValue
DisplayGet Site Visitors
Categorysite
AccessPublic
ScopeB2Authority
Tags
Aliases

Parameters

  • This command takes no parameters.

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
site_idstringyesSite id
visitorsarrayyesVisitors at the current site
visitors[].entity_identityIdyesVisitor entity id
visitors[].first_namestringyesFirst name
visitors[].last_namestringyesLast name
visitors[].household_identityIdnoVisitor's household id
visitors[].genderstringnoGender enum name
visitors[].age_groupstringnoAge group enum name
visitors[].gender_textstringnoLocalized gender
visitors[].age_group_textstringnoLocalized age group
visitors[].current_sitestringnoCurrent site name
visitors[].portrait_urlstringnoCached portrait URL
visitors[].is_marriedboolnoWhether married
visitors[].spouse_identityIdnoSpouse entity id (if married)
visitors[].has_careerboolyesHas any career
visitors[].employableboolyesEligible for new employment
visitors[].job_namestringnoLocalized job name
visitors[].job_rankintnoJob rank
visitors[].job_rank_namestringnoLocalized job rank name
visitors[].relationship_labelstringnoRelationship label toward the possessed character

Usage

await inzoi.cli.execute('site.get_visitors');