# Get Community

Users can retrieve information about the community, such as the community name, description, and member count, without actually becoming a member of the community. This provides a way for users to explore their community options and find the communities that are most relevant and engaging to them.

To fetch a community's data without joining, users can simply call the `getCommunity` method within the SDK and provide the relevant parameter, such as the community ID. The retrieved result is returned as a live object of a post. For more information on live objects, please refer to [Live Objects/Collections](/~/changes/5GVz91dkzloMulIORPZq/amity-sdk/core-concepts/live-objects-collections.md).

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/05d62202ded153e283c5ec376937eeba#file-get-a-community-swift>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/4a094c77a6102c77430650fdd78aea7e#file-amitycommunityget-kt>" %}
{% endtab %}

{% tab title="JavaScript" %}
{% embed url="<https://gist.github.com/amythee/230f3d6d4f179c4fe0f87cad3f7a8447#file-communityforid-js>" %}
{% endtab %}

{% tab title="TypeScript" %}
Version 6

{% embed url="<https://gist.github.com/amythee/6553b70a51076ef0eddd465fa2da96dc#file-getcommunity-ts>" %}

Beta(v0.0.1)

{% embed url="<https://gist.github.com/amythee/baaf85a7761be5f5b785b12fbdae5bd1#file-livecommunity-ts>" %}
{% endtab %}

{% tab title="Flutter" %}
In order to get live update from any changes or bind with `StreamBuilder` widget, you can alternatively use `AmityCommunity.listen`

{% embed url="<https://gist.github.com/amythee/66260e02d79d4892a6fe5d7af0d3c1be#file-amitycommunityview-dart>" %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/~/changes/5GVz91dkzloMulIORPZq/amity-sdk/social/communities/get-community.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
