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

# Go SDK

# The People Data Labs Go Helper Library

The People Data Labs Go Helper Library makes it easy to interact with our APIs from your Go application. You can find the [most recent version of the library on Go Packages](https://pkg.go.dev/github.com/peopledatalabs/peopledatalabs-go).

## How To Install the Library

This library is available as a Go package, and you can install it like this:

```shell
go get github.com/peopledatalabs/peopledatalabs-go
```

## Using the Library

Make sure that you sign up for a [free PDL API key](https://www.peopledatalabs.com/signup) if you don't already have one.

```go
package main

import (
    "fmt"
    "context"
)

// See https://github.com/peopledatalabs/peopledatalabs-go
import (
    pdl "github.com/peopledatalabs/peopledatalabs-go"
    pdlmodel "github.com/peopledatalabs/peopledatalabs-go/model"
)

func main() {
    // Set your API key
    apiKey := "API_KEY"
    // Set API key as environmental variable
    // apiKey := os.Getenv("API_KEY")

    // Create a client, specifying your API key
    client := pdl.New(apiKey)
    
    // Create a parameters JSON object
    params := pdlmodel.EnrichPersonParams {
        PersonParams: pdlmodel.PersonParams {
            Profile: []string{"linkedin.com/in/seanthorne"},
        },
    }

    // Pass the parameters object to the Person Enrichment API
    result, err := client.Person.Enrich(context.Background(), params)

    // Print the API response
    if err == nil {
        fmt.Printf("Status: %d, FullName: %s\n", result.Status, result.Data.FullName)
    }  
}
```

## More Information, Pull Requests, Feature Suggestions and Bug Reports

We've open-sourced the library, which is available on GitHub. Go there to view more information. You can also submit pull requests, feature suggestions and bug reports.

<Embed url="https://github.com/peopledatalabs/peopledatalabs-go" title="GitHub - peopledatalabs/peopledatalabs-go: A Go client for the People Data Labs API" favicon="https://github.com/favicon.ico" image="https://opengraph.githubassets.com/1fc2e38d58c99fbe367a7e0cb0da31a7001ebc4351b790956983aeb41f3f345c/peopledatalabs/peopledatalabs-go" provider="github.com" href="https://github.com/peopledatalabs/peopledatalabs-go" typeOfEmbed="default" />