pay-for-http-request
Skill by stripe
Makes HTTP requests to payment-gated APIs using the purl command line tool, which handles x402 payments on EVM and Solana networks. Built for assistants that need to pay per request when an API returns HTTP 402.
Install pay-for-http-request
Built from the published package, never by AI.
git clone --depth 1 https://github.com/stripe/purl /tmp/purl && mkdir -p ~/.claude/skills && cp -r /tmp/purl/skills/pay-for-http-request ~/.claude/skills/pay-for-http-requestRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/stripe/purl /tmp/purl && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/purl/skills/pay-for-http-request ~/.gemini/antigravity-cli/skills/pay-for-http-requestAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install pay-for-http-request in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The pay-for-http-request skill lets an assistant call payment-gated APIs through purl, a curl-like command line tool. When an API returns HTTP 402 Payment Required and supports the x402 protocol, purl negotiates and executes the payment automatically on EVM and Solana networks. It also supports HTTP options such as custom headers, POST data, JSON bodies, redirects, timeouts, and output formats.
The skill is aimed at paid per-request access to tool calls, premium data feeds, paywalled content, and on-demand compute or storage. The source says to use curl for regular requests that need no payment, and not for APIs that use credit cards or billing-based API keys. Users need a wallet with funds on the target network, and the target API must support x402.
Written from the project's SKILL.md and checked against it.
What it can do
- Automatic x402 paymentsMakes HTTP requests that pay automatically when an API returns HTTP 402.
- Payment limits and previewUses --max-amount, --confirm, --network, and --dry-run to control or preview payments.
- Payment inspectionThe inspect command shows payment requirements without executing a payment.
- Wallet managementThe wallet command lists, adds, shows, verifies, uses, and removes wallets.
- Balance checkThe balance command checks wallet balance, optionally on a given network.
- Network listingThe networks command lists supported networks and shows details for one.
- Output formattingWrites output as auto, text, json, or yaml, and can save it to a file.
- HTTP request optionsSupports custom methods, headers, redirects, timeouts, POST data, and JSON bodies.
What you need
- A wallet with funds on the desired network
- An API that supports the x402 payment protocol
Try asking
- Use purl --dry-run to preview what this x402 API would charge me.
- Fetch the premium data feed with purl and cap the payment at 10000 atomic units.
- Check my purl wallet balance on Base.
Good to know
- Only works with APIs that support the x402 payment protocol.
- The source says --private-key is less secure than using a wallet.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pay-for-http-request/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pay-for-http-request
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
pay-for-http-request: common questions
Which networks does purl support?
The source lists EVM networks including ethereum, base, avalanche, polygon, arbitrum, and optimism, plus solana and solana-devnet.
How can I limit how much purl pays?
Use the --max-amount option in atomic units, or set the PURL_MAX_AMOUNT environment variable. The --confirm option requires confirmation before paying.
When should I use curl instead of this skill?
The source says to use curl for regular HTTP requests that do not require payment.
How do I install pay-for-http-request?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pay-for-http-request free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pay-for-http-request safe to use?
It scores 75 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pay-for-http-request?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
