This project will export your competency data ("Align on expectations" within Lattice) to a spreadsheet.
It uses undocumented parts of Lattice's GraphQL API that Lattice uses to build its own pages.
Before you begin, ensure you have the following installed:
- Python 3.12 or higher
- Poetry for dependency management and running the project
Clone the repository and navigate to the project directory:
git clone https://github.com/kbayliss/lattice_export
cd lattice_exportInstall the project dependencies using Poetry:
poetry installBefore running the script, you need to set up your environment variables by creating a .env file. An example file .env.example is provided in the repository.
Copy the .env.example to a new file named .env.
cp .env.example .envFill in the LATTICE_ACCESS_TOKEN and LATTICE_USER_ENTITY_ID with your own values obtained from Lattice.
- Open your web browser and log into your Lattice account.
- Open the browser's developer tools and go to the Network tab.
- Filter for
/graphql/to find a call to the GraphQL API. - Look in the request Headers or the Cookies to find the
access_token. It should look likeaccess_token=...;.
- In the developer tools under the Network tab, look for any GraphQL API call payloads.
- Find the request payload containing
userEntityId: ...in the variables.
Once you have your LATTICE_ACCESS_TOKEN and LATTICE_USER_ENTITY_ID, you can run the script:
poetry run export- Do not share your
LATTICE_ACCESS_TOKENorLATTICE_USER_ENTITY_IDas they are sensitive information that can grant access to your personal data on Lattice.
If you'd like to contribute to the project, please fork the repository and create a pull request with your changes.