Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 75
  • 202 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-request

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pay-for-http-request in Claude Code

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

A

No 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 →

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.

pay-for-http-request Install

Add to stack

Loading.