api-ninjas-com QR Code API

The QRCode API generates custom QR codes for any content. It supports custom colors, size, and several image formats.

Operations 1

GET /v1/qrcode Generate QR Code #

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/api-ninjas-com:api-ninjas-com-qr-code-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

api-ninjas-com-qr-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas QR Code API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: QR Code
  description: The QRCode API generates custom QR codes for any content. It supports custom colors, size, and several image formats.
paths:
  /v1/qrcode:
    get:
      summary: Generate QR Code
      description: Generates a QR Code image for the specified data.
      operationId: generateQRCode
      parameters:
      - $ref: '#/components/parameters/data'
      - $ref: '#/components/parameters/QrCodeOpenapi_format'
      - $ref: '#/components/parameters/size'
      - $ref: '#/components/parameters/fg_color'
      - $ref: '#/components/parameters/bg_color'
      responses:
        '200':
          $ref: '#/components/responses/QRCodeResponse'
        '400':
          $ref: '#/components/responses/QrCodeOpenapi_BadRequest'
        '401':
          $ref: '#/components/responses/QrCodeOpenapi_Unauthorized'
        '500':
          $ref: '#/components/responses/QrCodeOpenapi_InternalServerError'
      security:
      - ApiKeyAuth: []
      tags:
      - QR Code
components:
  parameters:
    QrCodeOpenapi_format:
      in: query
      name: format
      description: 'Image format to return. Must be one of the following: png, jpg, jpeg, eps, svg.'
      required: true
      schema:
        type: string
        enum:
        - png
        - jpg
        - jpeg
        - eps
        - svg
    size:
      in: query
      name: size
      description: Size of the QR code image to generate. The output will be a square image with (size x size) dimensions. The default size is 250.
      required: false
      schema:
        type: integer
        default: 250
    data:
      in: query
      name: data
      description: Data to encode in the QR code.
      required: true
      schema:
        type: string
    bg_color:
      in: query
      name: bg_color
      description: Background color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is ffffff (white).
      required: false
      schema:
        type: string
        default: ffffff
        pattern: ^[0-9a-fA-F]{6}$
    fg_color:
      in: query
      name: fg_color
      description: Foreground color of the QR code. Must be a 6-digit hex color (e.g. 00ff00 for green). Default is 000000 (black).
      required: false
      schema:
        type: string
        default: '000000'
        pattern: ^[0-9a-fA-F]{6}$
  responses:
    QrCodeOpenapi_BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    QrCodeOpenapi_Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    QrCodeOpenapi_InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    QRCodeResponse:
      description: QR Code Image Response
      content:
        image/png:
          schema:
            type: string
            format: binary
        image/jpg:
          schema:
            type: string
            format: binary
        image/jpeg:
          schema:
            type: string
            format: binary
        application/postscript:
          schema:
            type: string
            format: binary
        image/svg+xml:
          schema:
            type: string
            format: binary
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api