Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
- name: Generate OpenAPI docs
run: bun run generate:openapi

- name: Generate Postman collection
run: bun run generate:postman

- name: Push collection to Postman
run: |
curl --silent --show-error --fail \
--request PUT \
--url "https://api.getpostman.com/collections/${{ vars.POSTMAN_COLLECTION_UID }}" \
--header "X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}" \
--header "Content-Type: application/json" \
--data "{\"collection\": $(cat ./public/postman/collection.json)}"

- name: Build with OpenNext
run: bunx opennextjs-cloudflare build

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<a href="https://api.whitepages.com/docs">View Documentation</a>
</p>

<p align="center">
<a href="https://god.gw.postman.com/run-collection/38340398-c9c1d404-1b4d-4465-9201-1286f9f890fe?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D38340398-c9c1d404-1b4d-4465-9201-1286f9f890fe%26entityType%3Dcollection%26workspaceId%3Dd72854a7-b64f-444d-b8c7-12d52e990360"><img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;"></a>
</p>

---

## Development
Expand Down
6 changes: 6 additions & 0 deletions content/docs/documentation/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ To access the API, you'll need an API key. Sign up for a **free trial** at [whit
for a replacement.
</Callout>

<Callout type="info" title="New to APIs?">
Follow our [Making Your First
Request](/documentation/making-your-first-request) guide for step-by-step
instructions using Postman—no coding required.
</Callout>

## Available APIs

<Cards>
Expand Down
145 changes: 145 additions & 0 deletions content/docs/documentation/making-your-first-request.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
---
title: Making Your First Request
description: A beginner-friendly guide to making your first Whitepages API request
icon: Play
---

Ready to test your API key? You can try it right here in your browser, or follow the step-by-step guide using Postman.

## Quick Test

<ApiKeyTester />

## Using Postman (No Code Required)

Postman is a free tool that lets you interact with APIs without writing code. Click the button below to import our pre-configured collection, or follow the manual setup steps.

<a href="https://god.gw.postman.com/run-collection/38340398-c9c1d404-1b4d-4465-9201-1286f9f890fe?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D38340398-c9c1d404-1b4d-4465-9201-1286f9f890fe%26entityType%3Dcollection%26workspaceId%3Dd72854a7-b64f-444d-b8c7-12d52e990360">
<img
src="https://run.pstmn.io/button.svg"
alt="Run In Postman"
width="128"
height="32"
/>
</a>

### What You'll Need

- Your Whitepages API key (received via email after [signing up for a trial](/documentation/getting-trial-api-key))
- [Postman](https://www.postman.com/downloads/) (free download)

### Step-by-Step Guide

<Steps>
<Step>
### Download and Open Postman

Download Postman from [postman.com/downloads](https://www.postman.com/downloads/) and install it. Create a free account or skip sign-in to continue.

</Step>

<Step>
### Create a New Request

1. Click the **+** button to open a new request tab
2. Make sure **GET** is selected in the dropdown (it's the default)

</Step>

<Step>
### Enter the API URL

Paste this URL into the request field:

```
https://api.whitepages.com/v1/person?name=John%20Smith&address.city=Seattle&address.state_code=WA
```

</Step>

<Step>
### Add Your API Key

1. Click the **Headers** tab below the URL field
2. In the **Key** column, enter: `X-Api-Key`
3. In the **Value** column, paste your API key

<Callout type="warn" title="Header Name is Case-Sensitive">
Make sure to use `X-Api-Key` exactly as shown, with capital X, A, and K.
</Callout>

</Step>

<Step>
### Send the Request

Click the **Send** button. You should see a JSON response in the panel below.

```json title="Example Response"
[
{
"id": "P1234567890",
"name": "John Smith",
"current_addresses": [
{
"address": "123 Main St, Seattle, WA 98101"
}
],
"phones": [
{
"number": "(206) 555-0198",
"type": "mobile"
}
]
}
]
```

If you see data like this, your API key is working correctly.

</Step>
</Steps>

## Using cURL (Command Line)

If you prefer the command line, you can use cURL:

```bash
curl 'https://api.whitepages.com/v1/person?name=John%20Smith&address.city=Seattle&address.state_code=WA' \
--header 'X-Api-Key: YOUR_API_KEY'
```

Replace `YOUR_API_KEY` with your actual API key.

## Troubleshooting

### 403 Forbidden or "Invalid API Key"

- Double-check that you copied the entire API key from your email
- Verify the header name is exactly `X-Api-Key` (case-sensitive)
- Make sure there are no extra spaces before or after your API key

### No Results Found

A 404 response with no results is normal—it means your API key is working, but no records matched your search. Try different search parameters.

### Need Help?

Contact [support@whitepages.com](mailto:support@whitepages.com) if you continue to have issues.

## Next Steps

Now that you've made your first request, explore what else you can do:

<Cards>
<Card
title="Person Search"
href="/documentation/person-search"
description="Search for individuals by name, phone, or address"
/>
<Card
title="Property Search"
href="/documentation/property-search"
description="Look up property ownership and resident data"
/>
</Cards>
1 change: 1 addition & 0 deletions content/docs/documentation/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"pages": [
"getting-started",
"getting-trial-api-key",
"making-your-first-request",
"purchasing-api",
"---Guides---",
"person-search",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"format:check": "bunx prettier . --check",
"format:write": "bunx prettier . --write",
"generate:openapi": "bun run scripts/generators/openapi/openapi.generator.ts",
"generate:postman": "bun run scripts/generators/postman/postman.generator.ts",
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy"
},
Expand Down
Loading