Get Started with the FLEXtrack API

Upon subscribing to the FLEXtrack API, you should be issued a Username and Public API Key from the FLEXtrack team.

Please contact [email protected] if you have not, or submit feedback through the speech-bubble icon in the bottom-left of the FLEXtrack website.

Note: Trial users will be only be able to request data between 1-14 January of the current year.


Using the LCPDelta Python package

With the LCPDelta Python package, you can interact with our FLEXtrack API as per the following general example:

import lcp_delta.flextrack as flextrack

flextrack_api_helper = flextrack.APIHelper(<USERNAME>, <PUBLIC_KEY>)
response = flextrack_api_helper.get_exporter_data(<EXPORTER_PARAMETERS>)
import lcp_delta.flextrack as flextrack
import asyncio

async def main():
  flextrack_api_helper = flextrack.APIHelper(<USERNAME>, <PUBLIC_KEY>)
  response = await flextrack_api_helper.get_exporter_data_async(<EXPORTER_PARAMETERS>)

asyncio.run(main())

The values in the example are as follows:

  • USERNAME: Your Enact API username.
  • PUBLIC_KEY: Your Enact API public key.
  • EXPORTER_PARAMETERS: The method parameters that specify and refine your data search.

For details on the specific parameters, please refer to our API Reference where we include an example from our Python package.



Using Custom Code

If you are using your own custom code to interact with the Enact API directly, you can follow the pattern detailed in the below general examples:

var httpClient = new HttpClient();

httpClient.BaseAddress = new Uri(@"https://enact-staticchartapi.azurewebsites.net");
httpClient.DefaultRequestHeaders.Add("Authorization", $"Bearer <BEARER_TOKEN>");

var result = await httpClient.PostAsync("/FLEXTrackAPI/Exporter/data", <REQUEST_OBJECT>);
string contents = await result.Content.ReadAsStringAsync();
curl -X POST \
https://enact-staticchartapi.azurewebsites.net/FLEXTrackAPI/Exporter/data
-H 'Content-Type: application/json' \
-d '<REQUEST_OBJECT>' \
-H 'Authorization: Bearer <BEARER_TOKEN>'
-H 'cache-control: no-cache'

The values in the examples are as follows:

  • BEARER_TOKEN: Your bearer token retrieved from our authentication endpoint (see Managing Bearer Tokens).
  • REQUEST_OBJECT: An object with fields that specify and refine your data search.

For details on the FLEXtrack Exporter endpoint and its request fields, please refer to our API Reference.