Obtaining SEO metadata for a specific entry under Sprout SEO 3 Under Sprout SEO 2 I am able to obtain the SEO metadata for a specific entry as follows:

{% do craft.sproutSeo.meta({
    id: entry.id,
    title: entry.title,
    description: entry.body|striptags|slice(0, 160)
}) %}
{{ craft.sproutSeo.getOptimizedMeta().basic.title }}
{{ craft.sproutSeo.getOptimizedMeta().basic.description }}


Here I am using the entry's title and body fields as fallback SEO metadata if none is specified on the entry. This is all documented for Sprout SEO 2.

How do I achieve this under Sprout SEO 3? The closest I can get is as follows:

{% do craft.sproutSeo.meta({
    id: entry.id
}) %}
{% sproutseo 'optimize' %}
{{ metadata.meta.search.title }}
{{ metadata.meta.search.description }}


Although this requires disabling automatic metadata rendering, which I require elsewhere, and enabling the custom metadata variable. It also omits the fallback SEO metadata as this now overrides the entry's metadata.
I didn't understand Ben's answer, and I just needed to output an entry's SEO meta title with a fallback to the entry title in a for loop. Maybe this will help someone in a similar situation:

{% for entry in entries %}
    {% if entry.sproutSeoElementMetadata.title %}
        {% set title = entry.sproutSeoElementMetadata.title %}
    {% else %}
        {% set title = entry.title %}
    {% endif %}
    &lt;li&gt;&lt;a href="{{ entry.url }}"&gt;{{ title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}




Just like entry.sproutSeoElementMetadata.title will grab the meta title of that entry, you can do the same with description: entry.sproutSeoElementMetadata.description

The meta image is a bit more complicated though:

{# get meta image's asset id #}
{% set imageId = entry.sproutSeoElementMetadata.ogImage %}

{# get the actual asset image by its id #}
{% set image = craft.assets.id(imageId).first %}

{# output the image's url #}
{{ image.url }}