NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Hidden API scraping: collecting the data a page fetches for itself

Most modern pages load their content from internal JSON endpoints, and calling those endpoints directly is often cleaner than parsing the finished HTML.

What the term means

Hidden API scraping is the practice of skipping the rendered page and requesting the same JSON the page's own JavaScript requests. A product grid, a search result list or a price table in a single page app is usually filled by a call such as /api/search?q=shoes&page=2. The endpoint is not documented for outsiders, which is why people call it hidden, but it is public in the sense that any browser visiting the page receives it.

The payoff is structure. Instead of writing CSS selectors that break when a designer renames a class, you read named fields: price, sku, stock. Responses are smaller than full HTML, so you move less data and parse faster.

Finding the endpoints

Open the browser developer tools, switch to the Network panel, filter by Fetch/XHR and reload the page. Scroll, change a filter or open page two, and watch which requests appear. The ones that return JSON with the values you see on screen are your candidates.

  • Copy the request as cURL and replay it in a terminal to see which headers actually matter.
  • Remove headers one by one until the call fails; what remains is the minimum you must send.
  • Look for parameters that control pagination, sort order and page size.
  • Check whether a session cookie or a short lived token is required.

Why these endpoints still meet bot checks

Site owners know their JSON routes are the easiest target, so they often guard them more strictly than the HTML. Common guards are a token minted by a challenge script, a clearance cookie issued after a Cloudflare check, request signing done in obfuscated JavaScript, or a reCAPTCHA v3 token attached to every search call. When the guard is a CAPTCHA token, the endpoint usually expects it in a header or a JSON field rather than in a form.

In that case the flow is: read the site key from the page, create a token task with GateSolver, poll for the answer, then add the token to the API call exactly where the page puts it. For a v3 widget, match the action name the page uses, because the score depends on it. Token tasks for v3 typically come back under 3 seconds, and a failed task costs nothing.

Replaying calls responsibly

Hidden endpoints are built for the site's own front end, so treat them gently. Keep request rates close to what a busy visitor would generate, cache responses you have already seen, and stop when the site answers with 429. Read the robots.txt file and the terms of the site. Collecting public prices, listings and rankings is the usual, accepted use; pulling personal data or account information is not.

When the HTML is the better source

Some sites render on the server and never expose JSON, and others encrypt or sign their API payloads so heavily that replaying them is fragile. Then a headless browser that renders the page and reads the DOM is the simpler route. Many teams mix both: a browser session to pass the first challenge and collect cookies, then plain HTTP calls to the JSON endpoint with those cookies for the bulk of the work.

Endpoints change without notice. Log the full response when a field goes missing, so you notice a schema change before it corrupts a day of data.

Common questions

Is a hidden API the same as a private API?

Not quite. A hidden endpoint is reachable by any visitor of the page, it is simply undocumented. A private API requires credentials that only the site owner hands out.

How do I know which headers a JSON endpoint needs?

Replay the request from the Network panel and remove headers one at a time. The set that keeps the call working is the minimum you must send.

Can a JSON endpoint require a CAPTCHA token?

Yes. Search and pricing endpoints often expect a reCAPTCHA or Turnstile token in a header or body field, which you can get from a token task.

Is hidden API scraping faster than parsing HTML?

Usually. JSON responses are smaller and already structured, so there is less to download and almost nothing to clean.

What happens when the site changes its endpoint?

Your calls start failing or returning different fields. Validate each response against the fields you expect and alert on mismatches.

Keep reading