Quick Start

Get your first API response in under 60 seconds.

1Get your API key

Go to the API Console and click Create API Key. Copy your key — you'll need it for authentication.

Keep your API key secure

Never expose your API key in client-side code or public repositories. Store it in environment variables or a secrets manager.

2Make your first request

Let's search for coffee shops in San Francisco with email addresses:

bash
curl "text-cyan-400">-X POST "https://localstitch.co/api/v1/search" \
  "text-cyan-400">-H "Content">-Type: application/json" \
  "text-cyan-400">-H "Authorization: Bearer pk_live_YOUR_API_KEY" \
  "text-cyan-400">-d '{
    "query": "coffee shop",
    "filters": {
      "state": "California",
      "city": "San Francisco",
      "has_email": true
    },
    "limit": 5
  }'

3Explore the response

You'll get back businesses matching your query:

json
{
  "data": [
    {
      "id": "abc123-def456-...",
      "name": "Blue Bottle Coffee",
      "category": "Coffee Shop",
      "address": "123 Market St",
      "city": "San Francisco",
      "state": "California",
      "phone": "+1 415-555-0123",
      "email": "hello@bluebottle.com",
      "website": "https://bluebottlecoffee.com",
      "rating": 4.5,
      "reviews_count": 234
    }
  ],
  "meta": {
    "total": 847,
    "limit": 5,
    "page": 1,
    "has_more": true
  }
}

Next Steps

Learn about authentication and API key best practices

Explore search filters to narrow down results

Create lists to organize your leads

Connect AI tools via MCP for natural language queries