# Get Story Targets

## Get Story Target

The '`getStoryTarget()`' function in the social.plus SDK enables real-time observation of StoryTarget based on specified targets. This function returns a **LiveObject** of StoryTarget, enabling users to receive updates and check whether the target possesses unseen stories. For example, you can call this method if you'd like to implement an unseen story ring for your story feed.

This function requires two parameters: targetType, targetId.

Here's an explanation of the function parameters:

* `targetType`: Represents the type of target, currently supporting 'community.'
* `targetId`: Corresponds to the ID of the designated target.

{% tabs %}
{% tab title="iOS" %}
{% embed url="https://gist.github.com/amythee/707d88bdf72bdcecd678efe124cb3fe3" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="https://gist.github.com/amythee/0dc63e0767c38a1721ce473330f226fc" %}
{% endtab %}

{% tab title="TS" %}
{% embed url="https://gist.github.com/amythee/2cab1c6c55442d118f95a26066634599" %}
{% endtab %}
{% endtabs %}

## Get Story Targets

In addition to the `getStoryTarget()`function, the social.plus SDK provides '`getStoryTargets()`' function to enable retrieval of multiple StoryTargets. This function takes an input as an array of `targets` and returns a **LiveCollection** of StoryTargets, enabling users to observe updates of multiple StoryTargets.

Here's an explanation of the function parameter:

* `targets`: Represents an array of pairs of `targetType` and `targetId`

{% hint style="info" %}
The function can accept a maximum of 10 pairs of targets in the array.
{% endhint %}

{% tabs %}
{% tab title="iOS" %}
{% embed url="https://gist.github.com/amythee/46d6faa2a09b72326175bb80c5f0ce37" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="https://gist.github.com/amythee/3e23017fc1457f07e7204808285af69e" %}
{% endtab %}

{% tab title="TS" %}
{% embed url="https://gist.github.com/amythee/2cab1c6c55442d118f95a26066634599" %}
{% endtab %}
{% endtabs %}
