> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datamagnet.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Get started with the Datamagnet API: create an account, generate an API key, configure your client, and make your first LinkedIn data request.

# Quickstart

This guide gets you set up and ready to use the Datamagnet API. It covers how to get started with an API client, how to make your first API request, and where to go next to take full advantage of the REST API.

> [!NOTE]
>
> Before you can make requests to the Datamagnet API, grab your API key from the dashboard under [Dashboard → API keys](https://datamagnet.co/app/api-keys).

## Making your first API request

Once you have your API key, you're ready to make your first call to the Datamagnet API. The example below sends a POST request to the People endpoint to fetch a complete LinkedIn profile from a LinkedIn people URL.

```bash cURL theme={null}
curl --request POST 'https://api.datamagnet.co/api/v1/person' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://linkedin.com/in/pratik-dani"
}'
```

```javascript JavaScript theme={null}
const token = "{your_token}";

const headers = new Headers();
headers.append("Authorization", `Bearer ${token}`);
headers.append("Content-Type", "application/json");

const data = {
  url: "https://linkedin.com/in/pratik-dani",
};

const requestOptions = {
  method: "POST",
  headers,
  body: JSON.stringify(data),
  redirect: "follow",
};

fetch("https://api.datamagnet.co/api/v1/person", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log("error", error));
```

```python Python theme={null}
import requests
import json

token = "{your_token}"
url = "https://api.datamagnet.co/api/v1/person"

payload = {
  "url": "https://linkedin.com/in/pratik-dani"
}
headers = {
  'Authorization': f'Bearer {token}',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, json=payload)

print(response.text)
```

[Read the docs for the People endpoint →](https://docs.datamagnet.co/api-reference/endpoints/people.md)

## What's next?

You're now set up with an API client and have made your first request. Here are a few links that may be handy as you go further with the Datamagnet API:

* [Grab your API key from the Datamagnet dashboard](https://datamagnet.co/app/api-keys)
* [Check out the Company endpoint](https://docs.datamagnet.co/api-reference/endpoints/company.md)
* [Learn about the different error messages in Datamagnet](https://docs.datamagnet.co/api-reference/errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.