curl --request POST \
--url https://api.aisa.one/apis/v1/bbb-org/businesses/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumber"
}
'import requests
url = "https://api.aisa.one/apis/v1/bbb-org/businesses/search"
payload = { "query": "plumber" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'plumber'})
};
fetch('https://api.aisa.one/apis/v1/bbb-org/businesses/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/bbb-org/businesses/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'plumber'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bbb-org/businesses/search"
payload := strings.NewReader("{\n \"query\": \"plumber\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bbb-org/businesses/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"plumber\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bbb-org/businesses/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"plumber\"\n}"
response = http.request(request)
puts response.read_bodySearch
Start here to find a business and its id for profile / complaints / resolve, or to list businesses in a category and place.
curl --request POST \
--url https://api.aisa.one/apis/v1/bbb-org/businesses/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "plumber"
}
'import requests
url = "https://api.aisa.one/apis/v1/bbb-org/businesses/search"
payload = { "query": "plumber" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'plumber'})
};
fetch('https://api.aisa.one/apis/v1/bbb-org/businesses/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/bbb-org/businesses/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'plumber'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/bbb-org/businesses/search"
payload := strings.NewReader("{\n \"query\": \"plumber\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/bbb-org/businesses/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"plumber\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bbb-org/businesses/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"plumber\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/bbb-org/businesses/search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bbb-org/businesses/search
{
"operationId": "bbb-org.businesses.search",
"method": "POST",
"path": "/apis/v1/bbb-org/businesses/search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"location": "Austin, TX",
"query": "plumber"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"category_id": {}
},
"required": [
"category_id"
]
},
{
"properties": {
"query": {}
},
"required": [
"query"
]
}
]
}
],
"properties": {
"accredited_only": {
"description": "Only BBB Accredited Businesses (`filter_accredited`).",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"category_id": {
"description": "Restrict to one BBB type-of-business id (`filter_category`), taken from a previous search's `filters.categories`. Pattern: ^[0-9]{5}-[0-9]{3}$.",
"type": "string"
},
"country": {
"default": "USA",
"description": "Market to search: bbb.org serves the United States and Canada.\n\nProvider reference: allowed values [\"USA\", \"CAN\"]; default \"USA\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"USA",
"CAN"
]
}
},
"distance_miles": {
"description": "Radius around `location` (`filter_distance`); requires `location`.\n\nProvider reference: allowed values [\"5\", \"10\", \"25\", \"50\", \"100\"].",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"5",
"10",
"25",
"50",
"100"
]
}
},
"location": {
"description": "City and state/province (`Austin, TX`), or a ZIP / postal code (bbb.org `find_loc`). Omit for a nationwide search.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"min_rating": {
"description": "Minimum BBB letter grade (`filter_ratings`): A means A and above.\n\nProvider reference: allowed values [\"A\", \"B\", \"C\", \"D\", \"F\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"A",
"B",
"C",
"D",
"F"
]
}
},
"page": {
"default": 1,
"description": "1-based result page of 15 items; bbb.org exposes at most 15 pages per query.\n\nProvider reference: minimum 1; maximum 50; default 1.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 50,
"min": 1
}
},
"query": {
"description": "Business name or category words (bbb.org `find_text`). Required unless `category_id` is given.",
"type": "string"
},
"sort": {
"default": "Relevance",
"description": "bbb.org sort order. Distance requires `location`.\n\nProvider reference: allowed values [\"Relevance\", \"Distance\", \"Rating\", \"AToZ\", \"ZToA\"]; default \"Relevance\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"Relevance",
"Distance",
"Rating",
"AToZ",
"ZToA"
]
}
},
"state": {
"description": "Restrict to one state/province code (`filter_state`). Pattern: ^[A-Z]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
- Option 1
- Option 2
Response
Find businesses on bbb.org by name or category words and an optional city/state or postal code, with the site's own filters (accredited only, minimum letter grade, category id, state, radius) and sort. Returns 15 items per page with BBB identity, canonical profile URL, letter grade, accreditation flag, categories, address, phones and service areas, plus the filter values bbb.org offers.
The response contains the tool result directly.
The provider identifies items as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
accreditation_status | string | bbb.org's accreditation status text when present (e.g. revoked). |
accredited_charity | boolean | |
address | object | |
address_id | string | The location (address) id component of result_id. |
bbb_id | string | Four-digit id of the local BBB that holds the file. |
business_id | string | Numeric business id assigned by BBB. |
categories | object[] | |
distance_miles | number | Distance from the searched location in miles when bbb.org computes it; null otherwise. |
id | string | Stable bbb.org identity <bbbId>-<businessId>, the trailing part of every profile URL. |
is_accredited | boolean | bbb.org bbbMember: BBB Accredited Business. |
is_charity | boolean | |
latitude | number | |
local_bbb | object | |
location_url | string | bbb.org page for this specific address of a multi-location business, when the row is a secondary location. |
logo_url | string | Logo image URL on m.bbb.org (URL only, never stored). |
longitude | number | |
name | string | Business name with bbb.org's highlight markup removed. |
out_of_business_status | string | bbb.org's out-of-business status when present; numeric source codes are preserved as strings without inferring their meaning. |
phones | string[] | Business phone numbers as displayed. |
primary_category | object | |
rating | string | BBB letter grade as shown (A+ … F, or NR); null when the page shows none. |
rating_score | number | bbb.org's internal numeric rating score (0–100 scale) when exposed; null otherwise. |
result_id | string | bbb.org's per-row id <bbbId>_<businessId>_<addressId>; unique within a result. A multi-location business appears once per address with the same id. |
service_areas | string[] | |
source_url | string | Canonical bbb.org profile URL. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.