Examples

Code examples

The same six examples in six languages, ready to copy: set your key and run.

What each page shows

From the first request to handling every answer.

  1. Your first call

    Sends the hosted sample certificate (fictitious data) and prints the JSON answer.

  2. A local file in base64

    Reads an image from your machine and sends it in base64, with no public URL needed.

  3. An image outside our standard

    With resizeImage: true, an image outside our size standard is resized on our side for 1 credit more, instead of refused.

  4. The fast engine

    Asks for the fast engine: it is tried first, at its own price, and the standard engines answer when it cannot. The answer names the engine that answered and what it cost.

  5. Errors and retries

    Handles every answer and retries with the same requestId: for 15 minutes, a repeat of a finished request gets the same answer at no charge, and a repeat of one still running gets a 409, to wait.

  6. Prices

    Reads the price of an extraction in credits, per engine and for resizeImage. No key needed.

Ready to start?

Create your account, get free credits and run the first example with your key.