Make your first Openmart API call. Create an API key, send a business search, and learn how to fetch full business details.
Before you begin, make sure you have:
curlTo use the Openmart API, you'll first need an API key.
You'll use this key to authenticate every API request.
Authentication. We recommend sending your API key as Authorization: Bearer <your_api_key>. If your current integration already uses X-API-Key: <your_api_key>, it will continue to work.
Keep your API key private. Do not share it in client-side code or public repos.
Use the search endpoint to find businesses.
<your_api_key> with your own API token before sending the request. query is your main search input. location and limit are optional starter fields you can safely change first.curl -X POST "https://api.openmart.ai/api/v1/search" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"query": "dentists in San Jose",
"location": [{ "city": "San Jose", "state": "CA", "country": "US" }],
"limit": 10
}'[
{
"id": "54ff8cd5-7497-4f46-9c0c-c6b8c0d10d04",
"content": {
"business_name": "Bright Smile Dental",
"store_name": "Bright Smile Dental",
"root_domain": "brightsmiledental.com",
"website_url": "https://brightsmiledental.com",
"city": "San Jose",
"state": "California",
"country": "US",
"business_categories": ["HEALTH_WELLNESS"]
},
"match_score": 24.26,
"match_highlights": ["dentist"],
"cursor": [24.26, "54ff8cd5-7497-4f46-9c0c-c6b8c0d10d04"]
}
]You asked Openmart to find businesses matching dentists in San Jose.
Openmart returned a top-level array of matching businesses. Each item includes an id (the Openmart ID) and a nested content object with the business fields. You can use the ID later to fetch full business details. Openmart's current API docs describe search and detail retrieval as a two-step flow using /api/v1/search or /api/v1/search/only_ids first, then /api/v1/business_records/list/openmart_id.
Understand how async tasks work, from task creation to status checks and result retrieval.
Poll the batch status endpoint until the task reaches a terminal state.
Read check batch statusOnce the batch is ready, fetch task IDs so you can retrieve final results.
Read get task IDs in a batchWhen the task is complete, call the results endpoint to fetch the final output.
Read get task resultsYou made your first API call.
Next, you can:
id to fetch full business details/api/v1/search/only_ids if you only want IDs firstUse cases for the Openmart API include:
Search businesses by keyword, category, location, website, and other filters.
Find decision makers at target companies for outbound and enrichment workflows.
Detect a company's tech stack for prospecting, account research, and qualification.