Apache Solr Collections API

The Solr Collections API provides REST endpoints for managing SolrCloud collections, shards, replicas, and aliases. It supports collection creation, deletion, modification, shard splitting, replica management, collection backup/restore, alias management, and cross-datacenter replication (CDCR) configuration.

Operations 2

GET /solr/admin/collections Invoke a Collections / Cluster API action (v1) #
POST /api/collections/{collection}/balance-shard-unique Distribute a property evenly across nodes for a collection #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apache-solr-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apache-solr-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache Solr HTTP Collections API
  version: 9.x
  description: 'A best-effort OpenAPI 3.1 description of selected endpoints from the Apache

    Solr HTTP API, including the Collections (Cluster/Node Management), Schema,

    and v2 cluster APIs. Solr''s full APIs are exposed as v1 (action-style query

    parameters under `/solr/admin/*`) and v2 (resource-style paths under

    `/api/*`). Authentication is optional but BasicAuth is supported when the

    Solr `BasicAuthPlugin` is enabled.'
  contact:
    name: Apache Solr
    url: https://solr.apache.org/
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://{host}:{port}
  description: Default Solr server
  variables:
    host:
      default: localhost
    port:
      default: '8983'
tags:
- name: Collections
  description: Manage SolrCloud collections, replicas, and nodes
paths:
  /solr/admin/collections:
    get:
      tags:
      - Collections
      summary: Invoke a Collections / Cluster API action (v1)
      operationId: collectionsAction
      parameters:
      - name: action
        in: query
        required: true
        description: Action name (e.g. CLUSTERSTATUS, CLUSTERPROP, BALANCESHARDUNIQUE, REPLACENODE, DELETENODE, ADDROLE, REMOVEROLE, OVERSEERSTATUS)
        schema:
          type: string
          enum:
          - CLUSTERSTATUS
          - CLUSTERPROP
          - BALANCESHARDUNIQUE
          - REPLACENODE
          - DELETENODE
          - ADDROLE
          - REMOVEROLE
          - OVERSEERSTATUS
      - name: collection
        in: query
        required: false
        schema:
          type: string
      - name: shard
        in: query
        required: false
        schema:
          type: string
      - name: name
        in: query
        required: false
        schema:
          type: string
      - name: val
        in: query
        required: false
        schema:
          type: string
      - name: node
        in: query
        required: false
        schema:
          type: string
      - name: sourceNode
        in: query
        required: false
        schema:
          type: string
      - name: targetNode
        in: query
        required: false
        schema:
          type: string
      - name: role
        in: query
        required: false
        schema:
          type: string
      - name: async
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Action response
          content:
            application/json:
              schema:
                type: object
  /api/collections/{collection}/balance-shard-unique:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Collections
      summary: Distribute a property evenly across nodes for a collection
      operationId: balanceShardUnique
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - property
              properties:
                property:
                  type: string
                onlyactivenodes:
                  type: boolean
                shardUnique:
                  type: boolean
      responses:
        '200':
          description: Balance accepted
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Enabled when Solr's BasicAuthPlugin is configured