# QRCode BarCode API > HTTP API and MCP server that generates QR codes (text, URL, phone number, WiFi network, vCard contact) and bar codes (Code 128, Code 39, Code 93, EAN, Two of Five, Codabar, PDF417, Data Matrix, Aztec) as images or PDF, and decodes QR codes and bar codes from an image or a PDF. 20 free requests per day per IP address; more with a prepaid request package paid with x402 (USDC on Base) or a RapidAPI plan. Base URL: `https://qrbar-code.intami.pl`. Generators take a JSON body and return the image in the format of the `Accept` header (`image/png` by default; `image/jpeg`, `image/gif`, `image/webp`, `image/tiff`, `image/bmp`, `application/pdf`; append `;base64` for base64 text), status `201`. `/decode` takes the raw image or PDF as the body (set `Content-Type`, `application/pdf` for a PDF) and returns a JSON array of the decoded codes. Without an API key every client IP has 20 free requests per day (REST and MCP together); over it the API answers `402` with the packages on sale. A package (no daily limit, no expiry) is bought with an x402 payment at `POST /x402/packages/{id}` or with a browser wallet at `/wallet.html`; the answer contains an API key (starting with `qr_`) to send in the `X-API-Key` header. Generating a code uses one request, decoding with a package key one request for every decoded code (at least one). ## Endpoints - `POST /generate/qr/text` - QR code of a text, e.g. `curl -H 'Accept: image/png' https://qrbar-code.intami.pl/generate/qr/text --data '{"text":"Hello","size":256}' --output qr.png`. - `POST /generate/qr/url`, `/generate/qr/tel`, `/generate/qr/wifi`, `/generate/qr/vcard` - QR code of a URL (`{"url":"https://example.com"}`), a phone number (`{"tel":"+48123456789"}`), a WiFi network (`{"sid":"MyWiFi","security":"WPA","password":"secret"}`) or a contact card (`{"firstName":"Jan","lastName":"Kowalski","emails":[{"type":"work","value":"jan@example.com"}]}`). - `POST /generate/bar/{type}` - bar code; type is `code128`, `code39`, `code93`, `ean` (12 or 13 digits), `twooffive`, `codabar`, `pdf417`, `datamatrix` or `aztec`, e.g. `curl -H 'Accept: image/png' https://qrbar-code.intami.pl/generate/bar/ean --data '{"data":"123456789012","width":300,"height":100}' --output bar.png`. - `POST /decode` - decode QR codes and bar codes (EAN, UPC, Code 128, Code 39, Code 93, ITF, Codabar, Data Matrix, Aztec; not PDF417) from an image (png, jpeg, gif, webp, tiff, bmp) or a PDF, e.g. `curl -H 'Content-Type: image/png' https://qrbar-code.intami.pl/decode --data-binary @image.png`. - `GET /x402/packages` - request packages on sale; `POST /x402/packages/{id}` buys one with x402 (`402` with the payment requirements, then retry with the `PAYMENT-SIGNATURE` header). - MCP server: `https://qrbar-code.intami.pl/mcp` (streamable HTTP), tools `generate_qr_code`, `generate_bar_code`, `decode_codes` and `buy_package`; the API key goes in the `X-API-Key` header or the `api_key` tool argument. Limits: request bodies up to 10 MB, generated images up to 4096 px, PDFs up to 10 pages, decoded images up to 4096 x 4096 pixels, 120 requests per minute per IP address (`429`). ## Docs - [Full description for LLMs](https://qrbar-code.intami.pl/llms-full.txt): every endpoint with parameters, responses, payment flow, MCP and limits. - [OpenAPI 3 specification](https://qrbar-code.intami.pl/open-api.yaml): machine-readable description of the REST endpoints. - [Home page](https://qrbar-code.intami.pl/index.html): human documentation with examples. ## Optional - [Wallet page](https://qrbar-code.intami.pl/wallet.html): buy a request package with a browser wallet (USDC on Base). - [Bar code types](https://qrbar-code.intami.pl/public/bar-codes.html): examples of the supported bar code types. - [RapidAPI plans](https://rapidapi.com/intami-intami-default/api/barcode-and-qrcode-decoder-generator/pricing): the same API as a RapidAPI subscription.