{"uid":"cap_pXTwvCgR-Wrmfrs1HfmNF","slug":"apify-prepaid-token-purchase-c94225fd","name":"Apify Prepaid Token Purchase","description":"Apify is the largest and most trusted marketplace of tools for web scraping, crawling, data extraction, and automation. Use these tools, called Actors, to extract structured data from social media, e-commerce sites, search engines, maps, travel sites, or any other website. Turn the open web into a real-time data source for your research, lead generation, and monitoring.","url":"https://agi.apify.com/protocols/x402/prepaid-tokens","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"string","pattern":"^\\d+(\\.\\d{1,2})?$","description":"Prepaid amount in USD (e.g. \"5\" or \"1.50\"). Minimum $1."},"currency":{"enum":["usd"],"type":"string","description":"Payment currency. Only \"usd\" is supported."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["example"],"properties":{"example":{"type":"object","required":["token","remainingBalanceUsd","expiresAt"],"properties":{"token":{"type":"string","description":"Apify API token; use as Authorization: Bearer <token>."},"expiresAt":{"type":"string","format":"date-time"},"remainingBalanceUsd":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dWhdYEJulCtKVfuJlgjyG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase a prepaid Apify API token by paying USD via x402, returning a time-limited Bearer token with a specified USD balance for use with Apify Actors.","exampleAgentPrompt":"I need to run some Apify web scraping Actors — can you buy me $5 of prepaid Apify API access in USD so I get a bearer token to use?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: a Bearer token string to use as `Authorization: Bearer <token>` in Apify API calls, the remaining USD balance on the token, and an ISO 8601 expiry datetime indicating when the token becomes invalid.","failureModes":["Payment not received or insufficient — token not issued","Amount below minimum $1 threshold — request rejected","Invalid currency specified (only 'usd' supported) — validation error","x402 payment protocol failure — no token returned","Token expiry reached before use — token invalid on subsequent calls"],"whenToPreferThis":"Use this endpoint when an AI agent needs programmatic, pay-per-use access to the Apify platform for web scraping, crawling, or data extraction Actors, and wants to fund that access via the x402 micropayment protocol rather than using a pre-existing Apify account API key. Ideal for ephemeral, one-off scraping tasks where a pre-funded account is unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:38:32.658Z","isFirstParty":false}