Skip to content
Singer.io tap for extracting TypeForm data
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tap_typeform
.gitignore
CHANGELOG.md
LICENSE
MANIFEST.in
README.md
example.config.json
setup.cfg
setup.py

README.md

tap-typeform

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

  • Pulls raw data from TypeForms's API
  • Extracts the following resources from TypeForm
    • Responses
      • List of questions on each form added to the configuration in the tap.
      • List of landings of users onto each form added to the configuration in the tap.
      • List of answers completed during each landing onto each form added to the configuration in the tap.
  • Outputs the schema for each resource

Setup

Building follows the conventional Singer setup:

python3 ./setup.py clean python3 ./setup.py build python3 ./setup.py install

Configuration

This tap requires a config.json which specifies details regarding an Authentication token, a list of form ids, a start date for syncing historical data (date format of YYYY-MM-DDTHH:MI:SSZ), and a time period range [daily,hourly] to control what incremental extract date ranges are. See example.config.json for an example.

Create the catalog:

› tap-typeform --config config.json --discover > catalog.json

Then to run the extract:

› tap-typeform --config config.json --catalog catalog.json --state state.json

Note that a typical state file looks like this:

{"bookmarks": {"team_table": {"date_to_resume": "2018-08-01 00:00:00"}}}

Replication

With each run of the integration, the following data set is extracted and replicated to the data warehouse:

  • Questions: A list of question titles and ids that can then be used to link to answers.

  • Landings: A list of form landings and supporting data since the last completed run of the tap through the most recent day or hour respectively. On the first run, ALL increments since the Start Date will be replicated.

  • Answers: A list of form answers with ids that can be used to link to landings and questions since the last completed run of the integration) through the most recent day or hour respectively. On the first run, ALL increments since the Start Date will be replicated.

Troubleshooting / Other Important Info

  • Question Data: The form definitions are quite robust, but we have chosen to limit the fields to just those needed for responses analysis.

  • Form Data: The raw response data is not fully normalized and the tap output reflects this by breaking it into landings and answers. Answers could potentially be normalized further, but the redundant data is quite small so it seemed better to keep it flat. The hidden field was left a JSON structure since it could have any sorts or numbers of custom elements.

  • Timestamps: All timestamp columns are in yyyy-MM-ddTHH:mm:ssZ format. Resume_date state parameter are Unix timestamps.


Copyright © 2018 Stitch

You can’t perform that action at this time.