Account setupTo access these endpoints, you will need:
- An approved developer account.
- To authenticate using the keys and tokens from a developer App that is located within a Project.
Authentication
You can authenticate this endpoint with either OAuth 1.0a User Context, [OAuth 2.0 App-Only](https://developer.x.com(/resources/fundamentals/authentication#app-only-authentication-and-oauth-2-0-bearer-token), or OAuth 2.0 Authorization Code with PKCE.Making a request
You can call the Search Communities endpoint as shown below:Community fields
You can fetch additional data associated with a community by specifying Community Fields. The following Community Fields are available:| Field value | Type | Description | |
|---|---|---|---|
| created_at | date (ISO 8601) | Creation time of the Community. | |
| id | string | The unique identifier of the Community. | |
| name | string | The name of the Community. | |
| description | string | The text of the Community’s description, if provided. | |
| access | string | The access level of the Community. Can be one of: * Public* Closed | |
| join_policy | string | The join policy for the Community. Can be one of: * Open* RestrictedJoinRequestsDisabled* RestrictedJoinRequestsRequireAdminApproval* RestrictedJoinRequestsRequireModeratorApproval* SuperFollowRequired | |
| member_count | integer | The number of members that have joined the Community. |