Actions9
Community → Get Many
AI-generatedSummary
Retrieve multiple communities from InvenioRDM with optional filters including featured status, language, pagination, and sort order.
Inputs
- resource (required) — Resource type to query; must be set to 'community' for this operation.
- operation (required) — Operation to perform; set to 'getMany' to fetch multiple communities.
- communitySlug (required) — Optional filters and sorting options including search query, featured status, language, page number, and sort order.
- returnAll — If true, return all matching results; otherwise limit to 'limit' value.
- limit — Maximum number of results to return when returnAll is false (default 50, max 1000).
- additionalFields — Optional filters and sorting; includes query string, sort order, page number, and language filter.
Output shape
array of community record objects
If returnAll is false, results are limited to the specified 'limit'; otherwise, all matching hits are returned. Filtering by 'featured' status and language is also supported.
Examples
Example 1: Retrieve up to 30 newest communities
resource=community, operation=getMany, limit=30, sort=newest
Example 2: Search communities containing 'climate' and return all matches
resource=community, operation=getMany, additionalFields={q:'climate', featured:true, returnAll:true}
Example 3: Get first page of communities sorted by best match with English language filter
resource=community, operation=getMany, additionalFields={sort:'bestmatch', language:'eng', page:1}