Beginner30 min
Local Business Directory
Build a complete local business directory with LocalBusiness schema and city-specific landing pages.
What You'll Build
A directory of local businesses with individual profiles and city/category landing pages. Perfect for "plumber in Austin" style searches.
Prerequisites
- A dataclean.to account (free tier works)
- Business data in CSV format
- Basic knowledge of HTML/JavaScript (optional)
Step 1: Prepare Your Data
Your CSV should have columns for:
name,address,city,state,zip,phone,website,category
Joe's Plumbing,123 Main St,Austin,TX,78701,5551234567,joesplumbing.com,Plumber
...Step 2: Upload and Clean
- Create a new project in dataclean.to
- Upload your CSV file
- Review the auto-detected types
- Apply normalization: phone_us, url_https, location_city_state
- Run duplicate detection with 85% threshold
Step 3: Configure Schema
- Select "LocalBusiness" template
- Map your columns to schema fields
- Preview the generated JSON-LD
Step 4: Export and Use
Choose your export method:
- Clean CSV - Download for use with static site generators
- JSON-LD ZIP - Individual schema files per business
- API - Fetch data dynamically for your pages
API Example
// Fetch businesses in Austin
const response = await fetch(
'https://dataclean.to/v1/my-directory/items?city=Austin',
{ headers: { 'X-API-Key': 'your_key' } }
);
const { data } = await response.json();
// Render with schema
data.forEach(business => {
console.log(business.name, business._schema);
});Next Steps
- Add more businesses to your directory
- Create category-specific pages
- Set up Google Sheets sync for live updates