DirConnect API Documentation
Integrate DirConnect's business directory into your applications. Access listings, search endpoints, webhooks, and more via RESTful JSON APIs.
https://api.dirconnect.com/v2
All requests and responses use JSON. The API follows standard HTTP status codes and requires authentication via API keys.
Authentication
🔑 API Key Required
Include your API key in the request header: Authorization: Bearer YOUR_API_KEY. Keys can be generated from the Developer Dashboard.
Invalid or expired keys will return a 401 Unauthorized response. Keep your keys secure and never expose them in client-side code.
Endpoints
Fetches a list of businesses filtered by category, location, or rating. Supports pagination and sorting.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category slug |
| location | string | City or zip code |
| limit | integer | Results per page (default: 20, max: 100) |
| offset | integer | Pagination offset |
Example Request
Submit a new business to the directory. Requires business owner verification.
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Business legal name |
| category | string | Yes | Category slug |
| location | object | Yes | Address, city, state, zip |
| contact | object | Yes | Phone, email, website |
| description | string | No | Business overview |
Full-text search across business names, descriptions, tags, and locations. Supports geolocation filtering and fuzzy matching.
Request Body
Error Handling
The API uses standard HTTP status codes:
200 OK- Request succeeded400 Bad Request- Invalid parameters or JSON401 Unauthorized- Missing or invalid API key403 Forbidden- Insufficient permissions404 Not Found- Resource does not exist429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Something went wrong on our end
Error responses follow this format:
Rate Limits
API requests are limited to 1,000 requests per minute per API key. Burst limits allow up to 20 requests per second. Rate limit headers are included in every response: