```yaml
product: AlterLab
title: Your First API Request
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/docs/quickstart/first-request
```

Quickstart

# Your First Request

Learn how to make your first API call and scrape a web page in under 2 minutes.

## 1. Get Your API Key

First, you'll need an API key. Create a free account to get up to 5,000 free requests (about 5,000 direct fetch, 500 managed sessions or 250 full browser rendering requests) — no credit card required.

[Create free account →](https://alterlab.io/signin)[Go to Dashboard](https://alterlab.io/dashboard)

After signing in, you'll land on the dashboard overview where you can access all features.

Your API key will look like this:

`sk_live_xxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxx`

Keep Your API Key Secret

Never share your API key or commit it to version control. Use environment variables to store it securely.

## 2. Make a Request

Now let's scrape a web page. Here's a simple example that fetches the content of example.com:

Bash

```
curl -X POST https://api.alterlab.io/api/v1/scrape \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'
```

[Try in Playground](https://alterlab.io/playground)

Replace YOUR_API_KEY

Don't forget to replace `YOUR_API_KEY` with your actual API key from the dashboard.

You can also test requests interactively using the API Playground in your dashboard.

## 3. Understand the Response

The API returns a JSON object with the scraped content and metadata:

Response

JSON

```
{
  "success": true,
  "content": "<!DOCTYPE html>\n<html>\n<head>...",
  "url": "https://example.com",
  "status_code": 200,
  "billing": {
    "total_credits": 200,
    "tier_used": "1"
  },
  "timing": {
    "total_ms": 245
  }
}
```

### Key Response Fields

`content`The raw HTML content of the scraped page

`success`Whether the scrape completed successfully

`billing.total_credits`Cost of this request in microcents ($0.0002 = 200 microcents)

`billing.tier_used`Scraping tier: "1" (Light), "2" (Standard), "3" (Protected), "4" (Dynamic), "5" (Fortress)

You Did It!

Congratulations! You've successfully made your first API request. The HTML content is now available in the `content` field.

## Next Steps

Now that you've made your first request, explore more powerful features:

[Extract Structured DataUse AI to extract specific data into JSON format](https://alterlab.io/docs/api/rest#structured-extraction)[JavaScript RenderingScrape dynamic sites that require JavaScript](https://alterlab.io/docs/api/rest#advanced-options)[Batch ScrapingScrape multiple URLs in a single API call](https://alterlab.io/docs/api/rest#batch-scraping)[WebhooksGet notified when async scrapes complete](https://alterlab.io/docs/guides/webhooks)

[Installation](https://alterlab.io/docs/quickstart/installation)[REST API](https://alterlab.io/docs/api/rest)

Last updated: June 2026