# Quickstart

Make your first Openhandle request in five minutes.



Create a Test API key, then call a profile endpoint with a documented synthetic
handle. The request uses the complete API pipeline and has a `$0.000` actual
charge. No payment method or free Live request is required. You only verify
your email with the code we send at signup.

## 1. Create a free account and a Test key [#1-create-a-free-account-and-a-test-key]

[Create a free account](https://app.openhandle.dev/signup). You get 100 free
requests, and no card is needed. If you already have an account,
[sign in](https://app.openhandle.dev/signin).

Open **API Keys** and create a **Test** key. The full `oh_test_` secret is shown
once, so store it as `OPENHANDLE_TEST_KEY` in your secret manager.

## 2. Make a request [#2-make-a-request]

<Tabs items="['cURL', 'TypeScript', 'Go', 'Python', 'PHP', 'Rust']" groupId="api-language">
  <Tab value="cURL">
    ```bash
    curl "https://api.openhandle.dev/v1/instagram/profiles/@northstar_forge_test" \
      -H "Authorization: Bearer $OPENHANDLE_TEST_KEY"
    ```
  </Tab>

  <Tab value="TypeScript">
    Install the official SDK:

    ```bash
    pnpm add @openhandle/sdk
    ```

    ```ts
    import { OpenHandle } from '@openhandle/sdk';

    const openhandle = new OpenHandle({ apiKey: process.env.OPENHANDLE_TEST_KEY! });
    const response = await openhandle.instagram.profile('northstar_forge_test').get();

    console.log(response.data);
    ```
  </Tab>

  <Tab value="Go">
    Install the official SDK:

    ```bash
    go get github.com/openhandlehq/openhandle-go
    ```

    ```go
    package main

    import (
    	"context"
    	"fmt"
    	"log"
    	"os"

    	openhandle "github.com/openhandlehq/openhandle-go"
    )

    func main() {
    	client, err := openhandle.New(os.Getenv("OPENHANDLE_TEST_KEY"))
    	if err != nil {
    		log.Fatal(err)
    	}

    	response, err := client.Instagram.Profile("northstar_forge_test").Get(
    		context.Background(),
    		&openhandle.InstagramProfileOptions{
    			Freshness: openhandle.FreshnessTwentyFourH,
    		},
    	)
    	if err != nil {
    		log.Fatal(err)
    	}

    	fmt.Println(response.Data)
    }
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import os
    import requests

    response = requests.get(
        "https://api.openhandle.dev/v1/instagram/profiles/@northstar_forge_test",
        headers={"Authorization": f"Bearer {os.environ['OPENHANDLE_TEST_KEY']}"},
    )
    profile = response.json()
    ```
  </Tab>

  <Tab value="PHP">
    Install the official SDK:

    ```bash
    composer require openhandle/sdk
    ```

    ```php
    <?php

    require 'vendor/autoload.php';

    use OpenHandle\OpenHandle;

    $openhandle = new OpenHandle(apiKey: (string) getenv('OPENHANDLE_TEST_KEY'));
    $response = $openhandle->instagram->profile('northstar_forge_test')->get();

    print_r($response->data);
    ```
  </Tab>

  <Tab value="Rust">
    Install the official SDK and Tokio:

    ```bash
    cargo add openhandle
    cargo add tokio --features macros,rt-multi-thread
    ```

    ```rust
    use openhandle::Client;

    #[tokio::main]
    async fn main() -> Result<(), Box<dyn std::error::Error>> {
        let client = Client::new(std::env::var("OPENHANDLE_TEST_KEY")?)?;
        let response = client
            .instagram()
            .profile("northstar_forge_test")
            .get(None)
            .await?;

        println!("{:#?}", response.data);
        Ok(())
    }
    ```
  </Tab>
</Tabs>

Every [API-reference page](/docs/api-reference) has the same cURL, TypeScript,
and Go switcher for its Test request.

## 3. Verify Test metadata [#3-verify-test-metadata]

The response headers include `Openhandle-Environment: test`,
`Openhandle-Cost: 0.000`, the live-equivalent `Openhandle-List-Price`, and an
`Openhandle-Dataset-Version`. The body uses the same schema as Live.

Every response uses the same `data` and `meta` envelope. List responses add
`meta.cursors.next` for
[pagination](/docs/concepts/pagination). Metrics that the platform does not
expose are `null`, never `0`.

## Next steps [#next-steps]

* Find another success or error in the [Test Data catalog](/docs/test-environment/catalog).
* Fetch posts: `/v1/instagram/profiles/@northstar_forge_test/posts`.
* Control cost with the `freshness` parameter. See
  [freshness and caching](/docs/concepts/freshness-and-caching).
* Explore every operation interactively in the
  [dashboard playground](https://app.openhandle.dev).
* When ready, [move from Test to Live](/docs/test-environment/test-to-live).
