# Deep

> SDK clients, manual generation, browser identity and transport details beyond the local HTTP API quick start.

[The HTTP quick start](https://nullgate.club/en/start) is enough for supported automatic flows. Use this section when you need SDK types, custom transport settings or control over each generated request.

## Choose an integration

| Task | Interface |
| --- | --- |
| Get cookies or protection data | Local [`POST /solve`](https://nullgate.club/en/solver) |
| Call the same local API through a typed client | `Solver` in Python/TypeScript, `solver` in Go |
| Fetch scripts and send each generated request yourself | Product APIs in the SDK |
| Generate Amazon FWCIM or classify images | Direct SDK or generation API; not part of `/solve` |
| Build a generation client without an SDK | [Generation HTTP API](https://nullgate.club/en/http) |

The local server owns target requests in `/solve`. With the manual SDK APIs, your application owns them. Do not mix their session formats.

## SDK clients

Install only the client for your language:

```sh
pip install git+https://github.com/nullgate-club/nullgate-sdk-py@main
```

```sh
npm install github:nullgate-club/nullgate-sdk-ts#main
```

```sh
GOPROXY=direct go get github.com/nullgate-club/nullgate-sdk-go/v2@main
```

The local API must already be running. These clients need no API key: Python uses `nullgate.solver.Solver`, async Python uses `nullgate.solver.aio.Solver`, TypeScript exports `Solver`, and Go provides the `solver` package.

Complete examples: [Python](https://github.com/nullgate-club/nullgate-sdk-py), [TypeScript](https://github.com/nullgate-club/nullgate-sdk-ts), [Go](https://nullgate.club/en/go-sdk).

Direct generation uses `Nullgate` in Python/TypeScript and the product clients in Go. It connects to `https://api.nullgate.club`, requires your API key and does not require the local server.

## Manual product flows

| Product | What you control |
| --- | --- |
| [Akamai](https://nullgate.club/en/akamai) | Sensor, Pixel and SBSD requests, inputs, actions and send times |
| [Amazon ACIC](https://nullgate.club/en/amazon-acic) | PoW/WAF rounds, verification, vouchers and continuation |
| [Amazon FWCIM](https://nullgate.club/en/amazon-fwcim) | Form observations and `metadata1` generation |
| [ThreatMetrix](https://nullgate.club/en/threatmetrix) | Target HTTP callbacks, profile lifetime and pagehide |
| [PingOne Protect](https://nullgate.club/en/pingone) | SDK configuration, tokens, signed inputs and device identity |
| [Classifier](https://nullgate.club/en/classifier) | Images, labels, queries and scores |

Keep one browser identity and cookie jar per visit. Follow each product's timing and lifecycle rules. [Sessions](https://nullgate.club/en/sessions) explains checkpoints, continuation and expiry for direct generation.

## Transport

For `/solve`, `transport.emulation` selects a wreq browser profile. Without it, the server selects a profile from `user_agent`. Explicit settings are optional:

```json
{
  "transport": {
    "emulation": "Chrome154",
    "headers_order": ["user-agent", "accept", "accept-language"],
    "tls_options": {"min_tls_version": "TLS_1_2"},
    "http2_options": {
      "initial_window_size": 1048576,
      "headers_pseudo_order": ["METHOD", "AUTHORITY", "SCHEME", "PATH"]
    }
  }
}
```

Add this object to your solve request. `headers_order` controls ordinary headers, not HTTP/2 pseudo headers. Unknown settings return an error.

`tls_options` and `http2_options` replace their corresponding preset configuration rather than merging individual fields. Omit them to keep the full browser preset. For an exact custom fingerprint, supply complete settings.

A JA4 hash cannot reconstruct a TLS ClientHello. Configure the browser profile, TLS, HTTP/2 and header order instead. Native settings are documented in [wreq](https://github.com/0x676e67/wreq).

## Diagnosing a failure

Local HTTP API errors include `stage`, which distinguishes validation, target transport and generation failures. Keep the `request_id` and avoid logging cookies, tokens or proxy credentials.

Direct generation error codes and HTTP limits are in [Errors](https://nullgate.club/en/errors) and the [generation reference](https://nullgate.club/en/http). A completed generation can be charged even if a later target request fails. Inspect the failed stage before deciding whether to solve again.
