Skip to content
Documentation sections

Quickstart

Three steps: get a key, call the endpoint, use the result. The call beside this text is a link budget; any calculator works the same way.

Three steps

  1. Get an API key. A free key on your dashboard covers 5 calls a month. Pro ($9 a month) covers 100 and API ($19 a month) 10,000; see pricing. A program can get its user a key without a paste: see the device grant.
  2. Call the endpoint. POST to /api/py/v1/calculate with a slug and its inputs, and your key in the X-API-Key header.
  3. Use the result. Read values by output key, check warnings and errors, and keep provenance if you need to say how a figure was computed.

Keep the key out of your code

The examples read the key from RFTOOLS_API_KEY. The Python library also reads the key that rftools login saved, so a script never holds it.

Shell
export RFTOOLS_API_KEY=rfc_…
# or, with the Python library installed:
rftools login

Inputs and units

Each calculator takes its inputs in the units its page shows, by the keys its reference lists, with their ranges and defaults. Send every input: most are required, and a call without one is refused (400) and costs nothing; one a calculator can do without takes the default its reference shows. The provenance lists every input the values were computed from.

Next