# QuickAds public software-plan CLI

Read the approved public software-plan snapshot with **Python 3.8 or later**.
The script uses only Python's standard library. It reads public plan facts;
accounts, content generation, managed creative services and checkout are outside
its scope.

## Download, review, then run

Download the [Python script](https://app.quickads.ai/downloads/quickads-offers-cli.py),
or save it with:

```sh
curl --fail --show-error --output quickads-offers-cli.py https://app.quickads.ai/downloads/quickads-offers-cli.py
```

Open the saved file in a text editor and review it before running any command.
Then use:

```sh
python3 quickads-offers-cli.py --help
python3 quickads-offers-cli.py list
python3 quickads-offers-cli.py search 'video' --limit 2
python3 quickads-offers-cli.py get prime
```

`list` and `search` accept `--limit 1`, `2`, `3` or `4`; the default is 4.
This caps the results, without pagination. Search text must be nonblank and at
most 200 Unicode code points before trimming. Plan IDs use 1–64 lowercase
letters, digits or hyphens. Use IDs returned by the list or search commands.

## Results and limits

Successful stdout is JSON containing `notice` and `data`. Records include
`checkedAt` and `sourceUrls`: cite those sources and treat the date as the source
check, not the request time. Free plans are labeled free. Paid-plan amounts are dated published monthly USD
list-price references, not live availability, account entitlements, actual billing
cadence or a binding quote. Confirm current pricing and terms with QuickAds.

The fixed API is [https://app.quickads.ai/api/public-offers](https://app.quickads.ai/api/public-offers).
The CLI sends anonymous GET requests to `/v1/offers` and `/v1/offers/{id}`.
It verifies HTTPS, rejects redirects and uses no QuickAds token or cookies.
Standard system proxy transport may be inherited. It does not write files,
open a browser or perform account or paid actions.

Responses are capped at 64 KiB. Socket I/O times out after five seconds; a
15-second streaming deadline is checked between reads. These are not an
absolute DNS resolver deadline.

Request failures print JSON to stderr. Documented API errors retain their
`error.code`, `error.message` and `httpStatus`. For HTTP 429, a valid
`Retry-After` of 1–60 seconds is exposed as `retryAfterSeconds`. Wait that long
before choosing to rerun the command: **the CLI never retries automatically**.
Malformed or oversized responses are rejected. Exit codes are 0 for success,
1 for request/response failure and 2 for invalid command arguments.

API reference: [OpenAPI](https://app.quickads.ai/api/public-offers/openapi.json).
Service policy: [API policy](https://app.quickads.ai/api-policy.md).

## Node client

A separate [Node read client and CLI](https://app.quickads.ai/node-cli.md) is
distributed as a first-party self-hosted tarball. It requires direct HTTPS
access. For environments that require a supported proxy, keep using this
Python CLI.
