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

Glossary

API endpoint: one address, one job

An API endpoint is a specific URL, combined with an HTTP method, at which an API accepts one kind of request and returns one kind of response.

Base URL, path and method

An endpoint has three parts. The base URL is shared by the whole API (https://gatesolver.com). The path names the operation or resource (/createTask). The method says what to do with it (POST). Together they identify one documented behavior. Two endpoints may share a path and differ only by method, as in REST designs where GET /orders lists and POST /orders creates.

The GateSolver endpoints

EndpointInputOutput
POST /createTaskclientKey, task objecterrorId, taskId
POST /getTaskResultclientKey, taskIdstatus, solution, cost
POST /getBalanceclientKeybalance
/in.php and /res.phpClassic form parameters, json=1 for JSON repliesTask ID, then the answer

The last row exists so older tools that speak the in.php format can switch by changing only the address. The API docs list every field.

Naming and versioning

Well designed endpoints are predictable. REST style APIs use plural nouns and nested paths (/v2/stores/14/products); RPC style APIs use verb phrases (/getTaskResult). Versioning shows up as a path prefix (/v1/), a header, or a date based version string. The point is the same: when the provider changes a contract in a breaking way, it does so at a new version and leaves the old endpoint working for a while.

As a caller, pin the version you tested and watch the provider's changelog. If an endpoint begins returning unexpected fields, your parser should ignore unknown fields rather than fail.

How endpoints are documented

Good documentation lists for each endpoint: method and path, authentication, request fields with types and which are required, an example request, an example response, and the possible errors. Many APIs also publish a machine readable description in the OpenAPI format, from which client code and test stubs can be generated. When an API offers no SDK package, that is all a client needs (see REST API for how styles differ); GateSolver ships no SDK, since three JSON endpoints are quick to call from any language.

Endpoints on the sites you automate

Websites have endpoints too, even when nobody documents them. The search box on a shop calls something like /api/search; a form posts to /contact/submit. Finding these in the Network panel (the same technique as hidden API scraping) tells you where a solved CAPTCHA token must go. A Turnstile protected login usually posts to the login endpoint with cf-turnstile-response in the body. The token from a Cloudflare Turnstile task, typically ready under 3 seconds, goes there.

Testing an endpoint by hand

Before writing code, call the endpoint with curl or an HTTP client app and confirm the response shape. For GateSolver, getBalance is the safest first call: it costs nothing and proves your key works. See API key for keeping that key out of shared command histories.

Common questions

Is an endpoint the same as a URL?

Almost. An endpoint is a URL combined with an HTTP method and the behavior documented for it.

Which endpoints does GateSolver have?

createTask, getTaskResult and getBalance for the JSON API, plus in.php and res.php for the classic format.

Why do APIs put a version in the path?

So breaking changes can ship at a new version while older clients keep using the previous one.

What is OpenAPI?

A machine readable format for describing endpoints, fields and responses, used to generate docs and client code.

How do I find the endpoint a website form posts to?

Submit the form with the browser Network panel open and look at the request it sends.

Keep reading