Weaviate Graph QL API

The Graph QL API from Weaviate — 2 operation(s) for graph ql.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /graphql Run a single GraphQL query · Weaviate Perform A GraphQL Query #
Ask an LLM
“How do I query Weaviate with a single GraphQL document?”
“Can I pass variables along with one GraphQL query?”
Tell an agent
Run this GraphQL query: {query}.
Execute GraphQL {query} with variables {variables}.
POST /graphql/batch Run several GraphQL queries in one request · Weaviate Perform Batched GraphQL Queries #
Ask an LLM
“Can I send multiple GraphQL queries in a single request?”
“Is there a batch endpoint for GraphQL queries?”
Tell an agent
Run this batch of GraphQL queries in one request.
Send several GraphQL queries together for efficiency.

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/weaviate:weaviate-graph-ql-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

weaviate-graph-ql-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Weaviate REST GraphQL API
  description: '# Introduction

    Weaviate is an open source, AI-native vector database that helps developers create intuitive and reliable AI-powered applications.'
  version: 1.38.0-dev
servers:
- url: http://localhost:8080
  description: Local Weaviate instance
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Graph QL
paths:
  /graphql:
    post:
      summary: Weaviate Perform A GraphQL Query
      description: Executes a single GraphQL query provided in the request body. Use this endpoint for all Weaviate data queries and exploration.
      tags:
      - Graph QL
      operationId: graphql.post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphQLQuery'
      responses:
        '200':
          description: Query executed successfully. The response body contains the query result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphQLResponse'
        '401':
          description: Unauthorized or invalid credentials.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An internal server error occurred during query execution. Check the ErrorResponse for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-microcks-operation:
        delay: 100
  /graphql/batch:
    post:
      summary: Weaviate Perform Batched GraphQL Queries
      description: Executes multiple GraphQL queries provided in the request body as an array. Allows performing several queries in a single network request for efficiency.
      tags:
      - Graph QL
      operationId: graphql.batch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphQLQueries'
      responses:
        '200':
          description: Batch request processed successfully. The response body contains an array of results corresponding to the input queries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GraphQLResponses'
        '401':
          description: Unauthorized or invalid credentials.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: The request syntax is correct, but the server couldn't process it due to semantic issues. Please check the values in your request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An internal server error occurred during batch query execution. Check the ErrorResponse for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-microcks-operation:
        delay: 100
components:
  schemas:
    JsonObject:
      type: object
      description: JSON object value.
    GraphQLResponses:
      type: array
      description: A list of GraphQL responses.
      items:
        $ref: '#/components/schemas/GraphQLResponse'
    GraphQLError:
      description: An error response caused by a GraphQL query.
      properties:
        locations:
          type: array
          items:
            type: object
            properties:
              column:
                type: integer
                format: int64
              line:
                type: integer
                format: int64
        message:
          type: string
        path:
          type: array
          items:
            type: string
    GraphQLQuery:
      type: object
      description: 'GraphQL query based on: http://facebook.github.io/graphql/.'
      properties:
        operationName:
          type: string
          description: The name of the operation if multiple exist in the query.
        query:
          type: string
          description: Query based on GraphQL syntax.
        variables:
          type: object
          description: Additional variables for the query.
    GraphQLQueries:
      type: array
      description: A list of GraphQL queries.
      items:
        $ref: '#/components/schemas/GraphQLQuery'
    GraphQLResponse:
      description: 'GraphQL based response: http://facebook.github.io/graphql/.'
      properties:
        data:
          type: object
          description: GraphQL data object.
          additionalProperties:
            $ref: '#/components/schemas/JsonObject'
        errors:
          type: array
          description: Array with errors.
          items:
            $ref: '#/components/schemas/GraphQLError'
    ErrorResponse:
      type: object
      description: An error response returned by Weaviate endpoints.
      properties:
        error:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OIDC/JWT bearer authentication