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

# Quick Start

> Get started with Fetchin API in under 5 minutes

## Get Your API Key

<Steps>
  <Step title="Sign up for an account">
    Visit [Fetchin Dashboard](/dashboard) and create a free account. You'll get 1,000 credits per month on the trial plan.
  </Step>

  <Step title="Get your API key">
    Once logged in, your API key will be displayed on the dashboard. Click the eye icon to reveal it and copy it to your clipboard.
  </Step>
</Steps>

<Warning>
  Keep your API key secure! Never commit it to version control or share it publicly.
</Warning>

## Make Your First Request

### Fetch Professional Posts

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.fetchin.io/api/v1/posts?profileUrlOrUrn=https://www.linkedin.com/in/username&count=10" \
    -H "X-API-Key: your-api-key-here"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.fetchin.io/api/v1/posts?profileUrlOrUrn=https://www.linkedin.com/in/username&count=10',
    {
      headers: {
        'X-API-Key': 'your-api-key-here'
      }
    }
  );

  const posts = await response.json();
  console.log(posts);
  ```

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

  headers = {
      'X-API-Key': 'your-api-key-here'
  }

  params = {
      'profileUrlOrUrn': 'https://www.linkedin.com/in/username',
      'count': 10
  }

  response = requests.get(
      'https://api.fetchin.io/api/v1/posts',
      headers=headers,
      params=params
  )

  posts = response.json()
  print(posts)
  ```
</CodeGroup>

### Fetch Professional Profile

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.fetchin.io/api/v1/profile?profileUrlOrUrn=https://www.linkedin.com/in/username" \
    -H "X-API-Key: your-api-key-here"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.fetchin.io/api/v1/profile?profileUrlOrUrn=https://www.linkedin.com/in/username',
    {
      headers: {
        'X-API-Key': 'your-api-key-here'
      }
    }
  );

  const profile = await response.json();
  console.log(profile);
  ```

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

  headers = {
      'X-API-Key': 'your-api-key-here'
  }

  params = {
      'profileUrlOrUrn': 'https://www.linkedin.com/in/username'
  }

  response = requests.get(
      'https://api.fetchin.io/api/v1/profile',
      headers=headers,
      params=params
  )

  profile = response.json()
  print(profile)
  ```
</CodeGroup>

## Response Examples

### Posts Response

```json theme={null}
[
  {
    "urn": "urn:li:activity:1234567890",
    "text": "This is a post content...",
    "publishedAt": "2023-01-01T00:00:00Z",
    "numberOfLikes": 42,
    "numberOfComments": 5,
    "numberOfReposts": 2,
    "imageUrl": "https://...",
    "videoUrl": null,
    "carouselPdfUrl": null,
    "profile": {
      "urn": "urn:li:fsd_profile:123456789",
      "name": "John Doe",
      "headline": "Software Engineer at Tech Company",
      "url": "https://www.linkedin.com/in/johndoe",
      "imageUrl": "https://..."
    }
  }
]
```

### Profile Response

```json theme={null}
{
  "urn": "urn:li:member:123456789",
  "firstName": "John",
  "lastName": "Doe",
  "headline": "Software Engineer at Tech Company",
  "location": "San Francisco, CA",
  "profilePictureUrl": "https://...",
  "about": "Experienced software engineer...",
  "experiences": [
    {
      "title": "Software Engineer",
      "company": "Tech Company",
      "startDate": "2020-01",
      "endDate": null
    }
  ],
  "education": [
    {
      "school": "University Name",
      "degree": "Bachelor of Science",
      "startDate": "2016",
      "endDate": "2020"
    }
  ]
}
```

## Next Steps

<CardGroup cols={2}>
  <Card title="API Reference" icon="book" href="/api-reference/introduction">
    Explore all available endpoints and parameters
  </Card>

  <Card title="Error Handling" icon="triangle-exclamation" href="/concepts/error-handling">
    Learn how to handle API errors gracefully
  </Card>

  <Card title="Rate Limits" icon="gauge" href="/concepts/rate-limits">
    Understand quota management and limits
  </Card>

  <Card title="Dashboard" icon="chart-line" href="/dashboard">
    Monitor your API usage in real-time
  </Card>
</CardGroup>
