Skip to content

Fetch parameters and credit usage ​

On Web Scraping API you can enable JS rendering, Super mode, or a country exit with request parameters. Each combination uses a different credit cost.


Common fetch parameters ​

https://api.joyproxy.com/v1/fetch accepts the following controls as GET query parameters or POST JSON fields:

ParameterTypeDefaultDescription
urlStringRequiredTarget page URL (URL-encode it on GET).
tokenStringRequiredYour Scraping API Token.
renderBooleanfalseEnable cloud headless JavaScript rendering. Use this for SPAs or pages that load data dynamically.
superBooleanfalseEnable Super residential/mobile exits. Routes through real home broadband or mobile networks for high-risk sites.
geoCodeStringRandomExit country as an ISO 2-letter code (for example us, jp, de).
customHeadersObject/JSONNoneCustom HTTP headers forwarded to the target (Cookie, User-Agent, and similar; JSON).
sessionIdStringNoneSticky session ID. The same sessionId reuses the same exit IP for about 10 minutes.
regionalGeoCodeStringNoneContinent targeting: eu (Europe), na (North America), as (Asia), sa (South America), af (Africa), oc (Oceania).
waitUntilStringNoneRender wait condition: load, domcontentloaded, networkidle0, networkidle2.
waitSelectorStringNoneWait until this CSS selector appears before returning HTML.
customWaitIntegerNoneExtra wait after page load, in milliseconds (for example 2000).

Credit costs (success only) ​

JoyProxy charges only when the fetch succeeds. Failed requests are not charged.

1. When Credits are deducted ​

Credits are deducted only when the API returns HTTP 2xx and the body contains valid content. Target 5xx, timeouts, connection blocks, and API 400 / 401 / 429 / 502 responses are not charged.

2. Credit cost table ​

Mode and parametersCredits on successTypical use
Standard (datacenter)1 creditOrdinary HTML pages, static APIs, sites without heavy protection (datacenter exit).
JavaScript rendering (render=true)5 creditsVue / React / Angular SPAs that need JS execution.
Residential / mobile (super=true)10 creditsHigh-trust residential/mobile exits for high-risk sites.
Super + render (super=true and render=true)25 creditsResidential/mobile exit plus full cloud headless JS rendering.

Credit details in response headers ​

After a successful fetch, the response includes:

  • X-JoyProxy-Fetch-Credits-Used: Credits consumed by this request (for example 5).
  • X-JoyProxy-Fetch-Credits-Remaining: Credits remaining after the deduction.

Start with standard mode (1 credit). Turn on render=true only when the page is blank or dynamic data did not load.