Craft 3: get enabled sites of an entry I'm looking for a way to list all the enabled sites for a given entry. 
 I couldn't find some sort of getEnabledSites method that's similar to the available getSupportedSites.  The latter only returns the siteId and enabledByDefault properties.

Note that I'm doing this within the Element API plugin.
Totally untested but this should work

$enabledSiteIds = (new Query())
    -&gt;select('siteId')
    -&gt;from('{{%elements_sites}}')
    -&gt;where([
        'enabled' =&gt; true,
        'elementId' =&gt; $elementId
    ])
    -&gt;column();


You might want to join the elements and entries table in order to gain only elements where elements.enabled is true too (and check the expiry date), otherwise you'll receive disabled entries