---
title: "Get employee details from Namely API"
url: "http://35.223.47.52/blog/get-employee-details-from-namely-api-dkd3uv/"
date: "2026-08-13T12:59:59+00:00"
modified: "2026-08-22T15:43:55+00:00"
type: "post"
---

# Get employee details from Namely API

[Blog](http://35.223.47.52/blog) / [Tutorials](http://35.223.47.52/blogs/tutorials/) / Get employee details from Namely API [Tutorials](http://35.223.47.52/blogs/tutorials/) · August 13, 2026 

Get employee details from Namely API
====================================

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Akshat Jain

2 min read

 

 

 [](https://www.linkedin.com/sharing/share-offsite/?url=http%3A%2F%2F35.223.47.52%2Fblog%2Fget-employee-details-from-namely-api-dkd3uv%2F) [](https://twitter.com/intent/tweet?url=http%3A%2F%2F35.223.47.52%2Fblog%2Fget-employee-details-from-namely-api-dkd3uv%2F&text=Get%20employee%20details%20from%20Namely%20API)  

 

 

 

  Table of Contents - [Introduction](#introduction)
- [Get Employee Details from Namely API](#get-employee-details-from-namely-api)
- [Overview](#overview)
- [Step-by-Step Guide](#step-by-step-guide)
- [Knit for Namely API Integration](#knit-for-namely-api-integration)
 
  Introduction
------------

This article is a part of a series of articles covering the Namely API in depth, and covers the specific use case of using the Namely API to Get employee details from Namely API.
You can find all the other use cases we have covered for the Namely API along with a comprehensive deep dive on its various aspects like authentication, rate limits etc [here.](/blog/namely-api/)

Get Employee Details from Namely API
------------------------------------

### Overview

To retrieve employee details such as first name, last name, and date of birth from the Namely API, you can use the `GET /profiles` endpoint. This endpoint returns all active and inactive employee profiles. Below is a step-by-step guide to achieve this using Python.

### Step-by-Step Guide

#### 1. Set Up Your Environment

Ensure you have the necessary Python packages installed. You can install the `requests` library using pip:

```
pip install requests
```

#### 2. Define the API Endpoint and Headers

Set up the API endpoint and headers, including your API key for authorization.

```
import requests

sub_domain = 'your_sub_domain'
api_key = 'your_api_key'
url = f'https://{sub_domain}.namely.com/api/v1/profiles'
headers = {
    'Accept': 'application/json',
    'Authorization': f'Bearer {api_key}'
}
```

#### 3. Make the API Request

Make a GET request to the Namely API to retrieve the profiles.

```
response = requests.get(url, headers=headers)
profiles = response.json().get('profiles', [])
```

#### 4. Extract Required Information

Extract the first name, last name, and date of birth from the profiles.

```
employee_details = []
for profile in profiles:
    first_name = profile.get('first_name')
    last_name = profile.get('last_name')
    dob = profile.get('dob')
    employee_details.append({
        'first_name': first_name,
        'last_name': last_name,
        'dob': dob
    })
```

#### 5. Print or Use the Extracted Data

You can now print or use the extracted employee details as needed.

```
for employee in employee_details:
    print(f"First Name: {employee['first_name']}, Last Name: {employee['last_name']}, Date of Birth: {employee['dob']}")
```

Knit for Namely API Integration
-------------------------------

For quick and seamless access to [Namely](/integration/namely/) API, Knit API offers a convenient solution. By integrating with Knit just once, you can streamline the entire process. Knit takes care of all the authentication, authorization, and ongoing integration maintenance, this approach not only saves time but also ensures a smooth and reliable connection to your [Namely](/integration/namely/) API.

---

**Ready to build this integration?**
Explore Knit’s [Namely integration](/integration/namely/) or read more about our [Unified HRIS API](/integration-categories/unified-hris-api/).

 

 ![](https://storage.googleapis.com/knit-website-media/2026/08/64c34c8eb1ffc79e7f787ecd_Akshat-3-150x150.png)Written by Akshat Jain

Coding chaos into innovation and building from zero to scale

 

 

 

 

 

   Keep Reading
------------

  ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-red-scaled-640x400.png) [API Directory](http://35.223.47.52/blogs/api-directory/) 

### [Guide to Integrating With Namely API](http://35.223.47.52/blog/namely-api/)

This is the all-in-one guide for developers to start integrating using Namely API

 August 13, 2026 · 4 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](http://35.223.47.52/blogs/tutorials/) 

### [How to Create a Slack Bot in 5 Minutes: A to Z Guide](http://35.223.47.52/blog/how-to-create-a-slack-bot/)

You can create your own Slack Bot in just a few minutes with the Knit Unified API. Read this step-by-step…

 August 13, 2026 · 3 min read 

 

   ![](https://storage.googleapis.com/knit-website-media/2026/08/blog-banner-green-640x400.png) [Tutorials](http://35.223.47.52/blogs/tutorials/) 

### [How to Build and Deploy a Microsoft Teams Bot](http://35.223.47.52/blog/how-to-build-and-deploy-a-microsoft-teams-bot/)

You can either build Microsoft Teams Bot on your own or you can use Knit's Unified API to create it…

 August 13, 2026 · 4 min read 

 

  

 

  \#1 in Ease of Integrations
---------------------------

![4.9 out of 5 stars](/wp-content/themes/knit/assets/images/g2/g2-star-rating.svg)

4.9 out of 5 stars on G2

![G2 Leader, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-leader.svg)![G2 Fastest Implementation, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-fastest-implementation.svg)![G2 High Performer, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-high-performer.svg)![G2 Best Est. ROI, Spring 2026](/wp-content/themes/knit/assets/images/g2/g2-best-roi.svg)

 

  Put Integrations on Autopilot. Talk to Experts.
-----------------------------------------------

Knit is loved by customers across the globe due to our seamless product and white glove support. You'll love us too!

 [Talk to a Human](/book-demo)
