VictoriaMetrics Import API

Data ingestion endpoints

Operations 5

POST /api/v1/import Import data in JSON line format #
POST /api/v1/import/native Import data in native binary format #
POST /api/v1/import/csv Import CSV-formatted metrics #
POST /api/v1/import/prometheus Import data in Prometheus text exposition format #
POST /write InfluxDB line protocol ingestion #

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/victoriametrics-import-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

victoriametrics-import-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VictoriaMetrics HTTP Admin Import API
  version: '1'
  description: 'VictoriaMetrics is a fast open-source time-series database. It exposes a

    Prometheus-compatible HTTP query API plus a wide range of ingestion and

    export endpoints (JSON, CSV, Prometheus text exposition, native binary,

    InfluxDB Line Protocol, DataDog v1/v2, Graphite, OpenTSDB, federation).

    Authentication is optional and typically delegated to vmauth or fronted

    by mTLS.

    '
  contact:
    name: VictoriaMetrics Documentation
    url: https://docs.victoriametrics.com/
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://{host}:{port}
  description: VictoriaMetrics single-node instance
  variables:
    host:
      default: localhost
    port:
      default: '8428'
security: []
tags:
- name: Import
  description: Data ingestion endpoints
paths:
  /api/v1/import:
    post:
      tags:
      - Import
      summary: Import data in JSON line format
      operationId: importJson
      requestBody:
        content:
          application/x-ndjson:
            schema:
              type: string
      responses:
        '204':
          description: Imported
  /api/v1/import/native:
    post:
      tags:
      - Import
      summary: Import data in native binary format
      operationId: importNative
      responses:
        '204':
          description: Imported
  /api/v1/import/csv:
    post:
      tags:
      - Import
      summary: Import CSV-formatted metrics
      operationId: importCsv
      responses:
        '204':
          description: Imported
  /api/v1/import/prometheus:
    post:
      tags:
      - Import
      summary: Import data in Prometheus text exposition format
      operationId: importPrometheus
      responses:
        '204':
          description: Imported
  /write:
    post:
      tags:
      - Import
      summary: InfluxDB line protocol ingestion
      operationId: influxWrite
      responses:
        '204':
          description: Written
components:
  securitySchemes:
    basic:
      type: http
      scheme: basic
      description: Optional HTTP Basic auth when fronted by vmauth