# Quickstart

Get your first real AI answer in four steps: quote, submit, check progress, read the answers. All you need is an API key.

Create a key in the [console](https://www.askcrawl.com/console/keys/) and export it. Every command below reads it from here.

```
export API_KEY=<b>"your key"</b>
```

1. ## Get a quote

   A quote creates no job and holds no money. This example asks one question 3 times on ChatGPT web and 3 times on Perplexity web, 6 answers in all.

   ```
   curl https://api.askcrawl.com/v1/answers/quote \
     -H <b>"Authorization: Bearer $API_KEY"</b> \
     -H <b>"Content-Type: application/json"</b> \
     -d '{
       <b>"prompts"</b>: [<b>"best crm for small business"</b>],
       <b>"engines"</b>: [<b>"chatgpt.web"</b>, <b>"perplexity.web"</b>],
       <b>"samples"</b>: 3
     }'
   ```

   ```
   {
     <b>"code"</b>: <b>"ok"</b>,
     <b>"request_id"</b>: <b>"…"</b>,
     <b>"data"</b>: {
       <b>"item"</b>: {
         <b>"answers"</b>: 6,
         <b>"max_charge"</b>: <b>"0.015"</b>,
         <b>"currency"</b>: <b>"USD"</b>,
         <b>"engines"</b>: [
           { <b>"engine"</b>: <b>"chatgpt.web"</b>, <b>"answers"</b>: 3, <b>"price"</b>: <b>"0.0018"</b> },
           { <b>"engine"</b>: <b>"perplexity.web"</b>, <b>"answers"</b>: 3, <b>"price"</b>: <b>"0.0032"</b> }
         ]
       }
     }
   }
   ```

   `max_charge` is the most the job can cost, and the amount that will be held when you submit.
2. ## Submit the job

   Send the same body with two more headers. `Idempotency-Key` is an ID you choose: if the connection drops, retry with the same value and no second job is created. `X-Max-Price` is your ceiling: if the job could cost more, it is not submitted and nothing is charged. **A submitted job cannot be cancelled.**

   ```
   curl https://api.askcrawl.com/v1/answers \
     -H <b>"Authorization: Bearer $API_KEY"</b> \
     -H <b>"Content-Type: application/json"</b> \
     -H <b>"Idempotency-Key: my-first-job"</b> \
     -H <b>"X-Max-Price: 0.02"</b> \
     -d '{
       <b>"prompts"</b>: [<b>"best crm for small business"</b>],
       <b>"engines"</b>: [<b>"chatgpt.web"</b>, <b>"perplexity.web"</b>],
       <b>"samples"</b>: 3
     }'
   ```

   You get a job ID straight away, before any answer has been collected. Keep the `id` from the response:

   ```
   export JOB_ID=<b>"the id from the response"</b>
   ```
3. ## Check progress

   Wait for `retry_after_seconds` between checks instead of polling in a tight loop. Some platforms answer in seconds; others take minutes or longer.

   ```
   curl https://api.askcrawl.com/v1/jobs/$JOB_ID \
     -H <b>"Authorization: Bearer $API_KEY"</b>
   ```

   `counts` shows how many answers are in each status; the job is done when `pending` reaches 0. `held` is what is still on hold and `charged` is what has been charged so far.
4. ## Read the answers

   Finished answers are available while the job is still running. Check each answer's `status` before you read its text. `[]` means none this time and `null` means not available or unknown, so neither should be counted as zero.

   ```
   curl <b>"https://api.askcrawl.com/v1/answers?job_id=$JOB_ID"</b> \
     -H <b>"Authorization: Bearer $API_KEY"</b>
   ```

   Answers come 20 to a page. While `page.next_cursor` is not `null`, pass it as `cursor` to get the next page.

## What you pay for

The maximum cost is held when you submit, and each answer is settled on its own. The hold on any answer that was not collected is released.

| Result | `status` | Charged? |
| --- | --- | --- |
| There is an answer | `answered` | Charged |
| No AI answer appeared | `no_answer` | Charged; this is a result too |
| The AI declined to answer | `refused` | Charged |
| Not collected | `failed` | **Not charged; the held amount is released** |
| In progress | `pending` | The cost is on hold, not charged yet |

If you get `settlement_unknown`, billing is not known yet. Ask again with the same `Idempotency-Key`, never a new one.

## Where to go next

- [Connect an AI assistant](https://www.askcrawl.com/docs/mcp/) and let it quote and collect for you, with no code.
- [Sampling and intervals](https://www.askcrawl.com/docs/sampling/) explains how many runs a conclusion needs.
- [Brand reports and comparisons](https://www.askcrawl.com/docs/reports/) turn answers into mention and citation rates.
- [Errors and charges](https://www.askcrawl.com/docs/errors/) covers every error code and what to do about it.

Up

[Docs](https://www.askcrawl.com/docs/)

Related

[Connect an AI assistant](https://www.askcrawl.com/docs/mcp/)

Basis

[Methodology](https://www.askcrawl.com/methodology/)

[Pricing and billing rules](https://www.askcrawl.com/pricing/)

Next

[API reference](https://www.askcrawl.com/docs/api/)

[All AI platforms](https://www.askcrawl.com/engines/)

> Page: https://www.askcrawl.com/docs/quickstart/ · Content date: 2026-12-01
