APIs

AnalysisPlace APIs: Document Creation Service and Excel-based Calculation Service

For developers and system integrators.

AnalysisPlace Document Generation Service (Template-Based)

Submit JSON-formatted data, receive customized Word or PowerPoint documents.

This is a very easy-to-use, yet powerful API that enables your app to submit data (in standard JSON format) and receive a personalized template-based document. The service is very easy to set up because it uses our popular Office add-in to link the data to your template. It also provides the exact JSON data structure for your app to use.

Document Creation Service

Potential Use Cases

The API can be used to improve a wide variety of business processes.  Below are a few:

  • Rapidly produce great-looking monthly customer financial results reports based on data stored in your database, for a few customers or thousands of customers. Then have the reports printed and/or emailed.
  • Empower your sales staff to instantly create highly-customized proposals and presentations based on customer data stored in your CRM (e.g. Salesforce).
  • Enable your clients to download customized documents based on data that is entered into a form or calculator on your website, e.g., an assessment report or a product configuration.

Key Features

Very powerful and flexible, yet easy to set up.

  • Supports one-at-a-time and high-volume document creation
  • Use your existing branded Word/PowerPoint templates
  • Very easy to set up – it uses the same data structure and document updating logic as our popular Office add-in
  • Document templates are easy to link to your data source - the add-in provides the JSON data structure based on your template. You can easily test your document updates from the add-in before doing any programming
  • Very powerful and flexible – the document updating features are very similar to the add-in
  • Support for “document assembly” – include/exclude document sections/slides based on conditional logic
  • Access the API from any programming language (uses standard secure REST-based web services)
  • Compared to other solutions, this API is more cost-effective, more powerful, and much easier to set up

Updatable content

As with our add-in, you can update essentially any type of content in your template:

  • Text – essentially anywhere in your document
  • Tables – flexible table updating, e.g. automatically inserts/deletes rows/columns to match source
  • Charts – updates charts (based on data) or chart images
  • Images – update/replace any image, such as product images. Your images are simply submitted as part of the JSON in base64-encoded format.

How to configure the solution

Other systems are complicated and very time-consuming to set up. Ours is simple.  It leverages our existing add-in to make it substantially easier.

  1. Link your Word and/or PowerPoint templates using our existing add-in. You link it to an Excel document, although Excel is not part of the production system. The Excel document is important for making it easy to visualize sample data and to test the template.
  2. Test your templates with the add-in.
  3. Sign into the add-in (in Excel) with an authorized account; an “API” tab will appear. Indicate if you want to convert the Word/PowerPoint documents to PDF.
  4. Click “Display JSON Data Structure”. This analyzes linked data in your Excel document, then displays the exact structure of the XML or JSON data that your system needs to provide in the web service request. It also provides the URL.
  5. Click “Upload Template” to upload your template to our server.
  6. Configure your system/app to submit data in the provided structure. Include the desired template name and your API key for authentication. AnalysisPlace will provide your API key at sign up.
  7. Our API will return the URL of the updated document. Your system can download the document or provide the URL to your user (e.g. to place in a “Download Report” button).

This service is in beta -- Contact us for more information, a free trial, and support to get started


AnalysisPlace Calculation API

A very flexible and powerful calculation service based on logic, formulas, and lookups in your Excel templates. Your application submits inputs; our service calculates and returns results (values and graphs) based on your workbook.

Potential Use Cases

There are a wide variety of use cases, below are a few:

  • Return results based on user entry of data into a form, then display results on the web page
  • Return results of complex logic and calculations for use in your applications
  • Financial analysis, engineering/technical calculations, creation of Excel-based charts/graphics, product/solution configurations, complex data lookups, etc.

Note: our API services should be called from a server, not from a client because the web service request contains your API key. For example, it should not be called from JavaScript in a browser (a malicious user could find the API key).

Key Features

Very powerful and flexible, yet easy to set up.

  • Supports highly complex business models, including any Excel formula and extensive look-ups
  • Supports a large quantity of output items (text, range values, chart images)
  • Very easy to configure: our add-in analyzes your workbook and displays the exact web service request and response JSON data structure.

Potential Inputs

  • You can submit individual values (populates a single cell) or tables of data (populates a range of cells)
  • Values can be text or numerical

Potential Outputs (calculated results)

  • Individual values (from a single cell)
  • Tables of values (based on named ranges or data tables)
  • Chart images (essentially any type of chart). Images are base64 encoded and are returned as part of the JSON response.

How to Configure the Solution

Set-up is simple because it uses our add-in to define and test inputs/outputs and to provide the JSON format.

  1. Name items (inputs and outputs) in your workbook. Use the same naming conventions as the add-in (a prefix).
  2. Sign into the add-in (in Excel) with an authorized account; an “API” tab will appear.
  3. Click “List Content”. Indicate which items are “Input” or “Output” content. This configuration is associated with your workbook, so it is easy to modify over time.
  4. Click “Display JSON Data Structure”. This analyzes linked data in your Excel document, then displays the exact structure of the JSON data that your system needs to provide in the web service request (the inputs). It also displays the structure of the response JSON data (the results) and it provides the service URL.
  5. Upload your workbook(s) to our secure calculation service via the add-in.
  6. Test the calculation service from the add-in and view the response.
  7. Configure your system to submit and receive data in the provided JSON data structure. Include your API key for authentication.
  8. Our API will return the calculated results.

Response times may be 2-6 seconds, so may not be appropriate for high-volume scenarios.

This service is in beta -- Contact us for more information, a free trial, and support to get started


Combine the 2 APIs:

Submit raw data, let our Calculation API calculate results and create great-looking charts; and then leverage the Document API to create documents based on your templates:

Calculation and Document Automation APIs Combined