# Get the layer historical state

Get a GPKG file with the state of the NextGIS Web versioned vector layer at a certain point in time or at the time of a certain version.

Learn more about [versioning](https://docs.nextgis.com/docs_ngweb/source/version.html).

Inputs:

* Web GIS address - URL of your Web GIS on NextGIS platform, e.g. [https://sandbox.nextgis.com](https://sandbox.nextgis.com), NextGIS ID and password;
* Layer ID - numbers at the end of the vector layer URL in NextGIS Web;
* Select the version of the layer you wish to download using **one of the options**:
  > 1. Timestamp - indicate a moment in YYYY-mm-dd HH:MM:SS format, the tool will automatically pick the corresponding version. Use this field OR the ‘Version ID’ field.
  > 2. Version ID - ID of the target version, you can check the number of the current version [via API](https://docs.nextgis.com/docs_ngweb/source/version.html#vers-ngw-api). Enter an integer equal or below the current version number. Use this field OR the ‘Timestamp’ field.

Outputs:

* GPKG file with historical layer data.

Launch the tool: [https://toolbox.nextgis.com/t/ngw_layer_historical_state](https://toolbox.nextgis.com/t/ngw_layer_historical_state)

Example:

![image](docs_toolbox/source/_static/ngw_layer_historical_state_input_en.png)![image](docs_toolbox/source/_static/ngw_layer_historical_state_result_en.png)

**Try the tool in action**

1. Click on the **Demo** button above the tool form. The fields are filled in with demo values.
2. Click on the **Run** button.
