Skip to main content
GET
/
v1
/
populations
/
{population_id}
JavaScript
import Semilattice from 'semilattice';

const client = new Semilattice({
  apiKey: 'My API Key',
});

const populationResponse = await client.populations.get('population_id');

console.log(populationResponse.data);
{
  "data": {
    "id": "d670f351-8567-4586-9bba-b81add1bebe3",
    "created_at": "2025-06-23T15:38:01Z",
    "data_source": "User onboarding flow",
    "description": "A model of Developers based on the 2024 Stack Overflow Developer Survey.",
    "effective_date": "2024-01-09",
    "name": "Developers",
    "public": true,
    "question_count": 42,
    "reality_target": "Professional software developers",
    "simulacrum_count": 984,
    "simulation_engine": "answers-1",
    "status": "Tested",
    "test_finished_at": "2023-11-07T05:31:56Z",
    "test_started_at": "2023-11-07T05:31:56Z",
    "upload_filename": "seed_data.csv",
    "average_accuracy": 0.8528,
    "average_squared_error": 0.1607,
    "average_normalised_information_loss": 0.0063
  },
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Headers

authorization
string

Path Parameters

population_id
string
required

ID of the population to retrieve.

Response

Successful Response

data
object | null

The primary response payload. Contains the result of the request if successful. Population

errors
ErrorResponse · object[] | null

List of structured error messages, if any occurred during the request.

I