Is there a way to return asset data along with entry data? I'm using the Element API plugin to return data from an entry that also contains an image asset. Is there a way to combine the two so I can get the asset URL alongside the entry fields? 

Attached below is an approximation of my line of thinking.

        'elementType' =&gt; 'Entry',
        'criteria' =&gt; ['section' =&gt; 'wax'],

        'transformer' =&gt; function(EntryModel $entry) {
            return [
                'excerpt' =&gt; $entry-&gt;excerpt,
                'heroImage' =&gt; $asset-&gt;heroImage.url // Something like this?
            ];
Yes - you can access it exactly the same way you do in the templates; you just need to use PHP syntax (e.g. -&gt; for accessing sub-properties rather than .).

'transformer' =&gt; function(EntryModel $entry) {
    // Begin defining the response data for this entry
    $data = [
        'excerpt' =&gt; $entry-&gt;excerpt,
    ];

    // Get the first asset in a "heroImage" Assets field (if there is one)
    $heroImage = $entry-&gt;heroImage-&gt;first();

    if ($heroImage) {
        $data['heroImage'] = $heroImage-&gt;url;
    }

    return $data;
})