---
title: "Developer guide to get candidate data using Ashby API (Python Example)"
url: "http://35.223.47.52/blog/developer-guide-to-get-candidate-data-using-ashby-api-python-example/"
date: "2026-08-13T12:59:25+00:00"
modified: "2026-08-23T11:20:57+00:00"
type: "post"
---

# Developer guide to get candidate data using Ashby API (Python Example)

[Blog](http://35.223.47.52/blog) / [Tutorials](http://35.223.47.52/blogs/tutorials/) / Developer guide to get candidate data using Ashby API (Python Example) [Tutorials](http://35.223.47.52/blogs/tutorials/) · August 13, 2026 

Developer guide to get candidate data using Ashby API (Python Example)
======================================================================

 ![](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%2Fdeveloper-guide-to-get-candidate-data-using-ashby-api-python-example%2F) [](https://twitter.com/intent/tweet?url=http%3A%2F%2F35.223.47.52%2Fblog%2Fdeveloper-guide-to-get-candidate-data-using-ashby-api-python-example%2F&text=Developer%20guide%20to%20get%20candidate%20data%20using%20Ashby%20API%20%28Python%20Example%29)  

 

 

 

  Table of Contents - [Introduction](#)
- [Get Candidate Data from Ashby API](#)
- [Introduction](#)
- [Step-by-Step Guide](#)
- [pip install requests](#)
- [Knit for Ashby API Integration](#)
 
  Introduction
------------

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

Get Candidate Data from Ashby API
---------------------------------

### Introduction

To retrieve candidate data using the Ashby API, you can utilize the `candidate.info` endpoint. This endpoint allows you to fetch detailed information about a candidate by their unique ID or an external mapping ID. Below is a step-by-step guide on how to use this API with Python code snippets.

### Step-by-Step Guide

#### Step 1: Set Up Your Environment

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

### `pip install requests`

#### Step 2: Fetch Candidate Data

Use the following Python code to make a POST request to the `candidate.info` endpoint:

```
import requests
import json

# Define the API endpoint
url = 'https://api.ashbyhq.com/candidate.info'

# Set up the headers
headers = {
    'accept': 'application/json',
    'content-type': 'application/json'
}

# Define the request body with the candidate ID
data = {
    'id': 'f9e52a51-a075-4116-a7b8-484deba69004'  # Replace with the actual candidate ID
}

# Make the POST request
response = requests.post(url, headers=headers, data=json.dumps(data))

# Check if the request was successful
if response.status_code == 200:
    candidate_data = response.json()
    print('Candidate Data:', candidate_data)
else:
    print('Failed to retrieve candidate data:', response.status_code, response.text)
```

#### Step 3: Handle the Response

If the request is successful, the response will contain detailed information about the candidate, including their name, email addresses, phone numbers, social links, tags, and more. You can process this data as needed for your application.

Knit for Ashby API Integration
------------------------------

For quick and seamless access to [Ashby](/integration/ashby-ats/) API, Knit API offers a convenient Unified API solution. By integrating with Knit just once, you can go live with multiple ATS integrations in one go. 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 [Ashby](/integration/ashby-ats/) 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-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 

 

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

### [What Should You Look For in A Unified API Platform?](http://35.223.47.52/blog/what-should-you-look-for-in-a-unified-api-platform/)

The right unified API can solve all your integration woes at minimal effort and cost. Read this to know how…

 August 13, 2026 · 14 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)
