Amboss
Search…
Communities

Community Information

With this query you can get information for a community.

Authentication

This is a public endpoint. No authentication is needed to get this information.

Variables

Variable
Details
Field
COMMUNITY ID
Group ID you want the information from
getCommunity

Fields

1
{
2
getCommunity(id: COMMUNITY_ID) {
3
details {
4
background
5
border
6
name
7
pubId
8
}
9
is_member
10
member_count
11
member_list
12
}
13
}
Copied!

Communities Information

With this query you can get information for all communities.

Authentication

This is a public endpoint. No authentication is needed to get this information.

Variables

None

Fields

1
{
2
getAllCommunities {
3
is_member
4
member_count
5
member_list
6
details {
7
background
8
border
9
name
10
pubId
11
}
12
}
13
}
Copied!

Examples

All the fields above can be mixed and matched to request just the information that you need. Here are some common examples to fetch information.

Get Community Members

If you want to request all the public keys of nodes that are in a community you can get this information with the following query.
1
{
2
getCommunity(id: COMMUNITY_ID) {
3
member_list
4
}
5
}
Copied!

Get All Community Member Amounts

If you want to get all the community names and how many members are in each you can get this information with the following query.
1
{
2
getAllCommunities {
3
member_count
4
details {
5
name
6
}
7
}
8
}
Copied!
Last modified 3mo ago