Mini guides
  • 05 Dec 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Mini guides

  • Dark
    Light

This mini guides collection focuses on common Preset API use cases.

Before you start, make sure to generate your Preset API key for authentication. You can find detailed API key management and relevant endpoint information in the Preset API documentation.

Take a Fresh Chart Screenshot

Scenario

You want to programatically get an image of a Chart as up-to-date as possible - i.e., not from cache.

Steps

  1. Make a POST call to the Preset Refresh Chart endpoint.
    Note: This might take up to a few minutes, so please wait at least 5 minutes before going to the next step.
  2. After the chart is refreshed, make a GET call to the Get Chart Screenshot endpoint.
  3. This will return a screenshot of the most up to date chart.

Was this article helpful?

What's Next