Skip to main content

Generate CashApp QR Code

Generate QR codes and payment information for CashApp usernames.

Endpoint

GET /api/cashapp

Query Parameters

username
string
required
CashApp username (without the $ symbol)
format
string
default:"json"
Response format. Options: json, png

Example Request

cURL (JSON)
curl -X GET "https://rocks.rive.wtf/api/cashapp?username=mrbeast" \
  -H "Authorization: Bearer YOUR_API_KEY"
cURL (PNG)
curl -X GET "https://rocks.rive.wtf/api/cashapp?username=mrbeast&format=png" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o mrbeast-qr.png
JavaScript
const response = await fetch('https://rocks.rive.wtf/api/cashapp?username=mrbeast', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const data = await response.json();
console.log(data);
Python
import requests

headers = {'Authorization': 'Bearer YOUR_API_KEY'}
params = {'username': 'mrbeast'}

response = requests.get(
    'https://rocks.rive.wtf/api/cashapp',
    headers=headers,
    params=params
)

print(response.json())

Response Example (JSON)

{
  "url": "https://cash.app/$mrbeast"
}

Response Format

When format=png is specified, the endpoint returns a PNG image of the QR code directly.
The returned URL is the CashApp payment link that can be used to send payments to the specified user.