Our BBB Search API allows you to scrape businesses from Better Business Bureau (BBB) search results, with their BBB rating and accreditation, in the United States and Canada.


The API endpoint is https://serpapi.com/search?engine=bbb

Head to the playground for a live and interactive demo.

API parameters

Search query

q

Required

Parameter defines the query you want to search. It can be a business name or a category, anything that you would use in a regular BBB search (e.g., plumber, roto rooter, or roofing).

Geographic location

location

Optional

Parameter defines the location to search near, in the United States or Canada. It can be a city with its state or province, or a ZIP or postal code (e.g., Chatsworth, CA, 91311, or Toronto, ON). Head to the BBB locations page for a list of cities. When it isn't set, businesses from anywhere are returned.

Use the short form, like on the BBB website. Full names such as Austin, Texas, United States, used by other SerpApi APIs, aren't understood by BBB and return businesses from elsewhere. Locations BBB doesn't recognize at all return an error. The location BBB searched near is in the SerpApi JSON response: search_parameters.location_used.

Advanced filters

accredited

Optional

Parameter defines whether to only show BBB accredited businesses. It can be set to true or false (default).

rating

Optional

Parameter defines the BBB ratings of the businesses. It's a comma-separated list of options (e.g., A,B).

Available options:
A - A and above
B - B rated
C - C rated
D - D rated
F - F rated

distance

Optional

Parameter defines the maximum distance of the businesses from location, in miles.

Available options:
5 - Within 5 miles
10 - Within 10 miles
25 - Within 25 miles
50 - Within 50 miles
100 - Within 100 miles

Parameter requires location parameter.

category_id

Optional

Parameter defines the categories of the businesses. It's a comma-separated list of category IDs (e.g., 10113-000 for Plumber, or 10113-000,10114-000 for Plumber and Sewer Cleaning). The categories for a search are in the SerpApi JSON response: filters.categories.

state

Optional

Parameter defines the states or provinces of the businesses. It's a comma-separated list of state or province codes (e.g., OH, or CA,NV). The states for a search are in the SerpApi JSON response: filters.states.

serving_my_area

Optional

Parameter defines whether to only show businesses that serve the area of location, like BBB's "Serving my Area" filter. It can be set to true or false (default).

Parameter requires location parameter.

get_a_quote

Optional

Parameter defines whether to only show businesses you can request a quote from, like BBB's "Get a Quote" filter. It can be set to true or false (default).

Sorting

sort

Optional

Parameter defines the sorting order of the results. It defaults to Relevance.

Available options:
Relevance - Best match (default)
Distance - Distance
Rating - Rating
AToZ - A-Z
ZToA - Z-A

Pagination

page

Optional

Parameter defines the page number of the results (e.g., 1 (default) is the first page of results, 2 is the 2nd page of results, etc.). BBB returns up to 15 results per page, and up to 15 pages.

SerpApi parameters

engine

Required

Set parameter to bbb to use the BBB API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the BBB results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the format of the result. It can be set to json (default) to get a structured JSON of the results, html to get the raw HTML retrieved, or md to get a Markdown-formatted version optimized for LLMs and AI agents.

json_restrictor

Optional

Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

API results

JSON results

JSON output includes structured data for Organic Results, Filters, Related Categories.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML results

This API does not have a full HTML response, only text. search_metadata.prettify_html_file contains a link to the prettified version of the result. It is displayed in the playground.

Markdown results

Markdown output is optimized for LLMs and AI agents. It provides a curated view of the JSON results in a token-efficient format using tables, markdown links, and YAML frontmatter.

To access, use the output=md parameter, the /search.md endpoint, or request header Accept: text/markdown.

API examples

Example with q: Coffee and location: Austin, TX

Businesses BBB doesn't rate have no bbb_rating nor bbb_rating_score, and businesses that aren't BBB accredited have accredited set to false.

Example with q: Coffee and location: Austin, TX

JSON Example

{
  ...
  "search_information": {
    "total_results": 322
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Ryze, Inc.",
      "link": "https://www.bbb.org/us/tx/austin/profile/coffee-and-tea/ryze-inc-0825-1000235729",
      "local_bbb_id": "0825",
      "business_id": "1000235729",
      "accredited": true,
      "bbb_rating": "A+",
      "bbb_rating_score": 100.0,
      "category": "Coffee and Tea",
      "categories": [
        {
          "id": "50164-000",
          "title": "Coffee and Tea"
        },
        {
          "id": "62100-000",
          "title": "Online Retailer"
        },
        {
          "id": "30790-000",
          "title": "Food Manufacturers"
        }
      ],
      "address": "600 Congress Ave Fl 14, Austin, TX 78701-3263",
      "gps_coordinates": {
        "latitude": 30.26809,
        "longitude": -97.74291
      },
      "phone": "(617) 221-3852",
      "phones": [
        "(617) 221-3852"
      ],
      "thumbnail": "https://m.bbb.org/prod/ProfileImages/2025/85e752ba-ab7c-4786-8519-f20e9f197198.png",
      "service_areas": [
        "USA"
      ],
      "local_bbb_name": "BBB Heart of Texas"
    },
    ...
    {
      "position": 13,
      "title": "Kifaru Coffee LLC",
      "link": "https://www.bbb.org/us/tx/austin/profile/coffee-and-tea/kifaru-coffee-llc-0825-1000264170",
      "local_bbb_id": "0825",
      "business_id": "1000264170",
      "accredited": false,
      "category": "Coffee and Tea",
      "categories": [
        {
          "id": "50164-000",
          "title": "Coffee and Tea"
        }
      ],
      "address": "5900 Balcones Dr, #16128, Austin, TX 78731",
      "gps_coordinates": {
        "latitude": 30.3,
        "longitude": -97.76
      },
      "phone": "(512) 351-6202",
      "phones": [
        "(512) 351-6202"
      ],
      "local_bbb_name": "BBB Heart of Texas"
    },
    ...
  ],
  ...
  "serpapi_pagination": {
    "current": 1,
    "next": "https://serpapi.com/search.json?engine=bbb&location=Austin%2C+TX&page=2&q=Coffee",
    "other_pages": {
      "2": "https://serpapi.com/search.json?engine=bbb&location=Austin%2C+TX&page=2&q=Coffee",
      "3": "https://serpapi.com/search.json?engine=bbb&location=Austin%2C+TX&page=3&q=Coffee",
      ...
    }
  }
}

Example with accredited, rating and sort

Like on the BBB website, filters narrow down the results: here, only the BBB accredited businesses rated A and above, sorted by rating. filters lists the categories and states of the results, to use in category_id and state.

Example with accredited, rating and sort Example with accredited, rating and sort

JSON Example

{
  ...
  "search_parameters": {
    "engine": "bbb",
    "q": "Coffee",
    "location_requested": "Austin, TX",
    "sort": "Rating",
    "accredited": true,
    "rating": "A"
  },
  "search_information": {
    "total_results": 9
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Ryze, Inc.",
      "link": "https://www.bbb.org/us/tx/austin/profile/coffee-and-tea/ryze-inc-0825-1000235729",
      ...
      "accredited": true,
      "bbb_rating": "A+",
      "bbb_rating_score": 100.0,
      ...
    },
    ...
  ],
  "filters": {
    "categories": [
      {
        "text": "Coffee and Tea",
        "value": "50164-000"
      },
      {
        "text": "Coffee Break Services and Supplies",
        "value": "50165-000"
      },
      {
        "text": "Food and Beverage Services",
        "value": "30062-000"
      },
      ...
    ],
    "states": [
      {
        "text": "TX",
        "value": "TX"
      }
    ]
  },
  "related_categories": [
    {
      "title": "Coffee and Tea",
      "link": "https://www.bbb.org/us/tx/austin/category/coffee-and-tea"
    },
    {
      "title": "Coffee Break Services and Supplies",
      "link": "https://www.bbb.org/us/tx/austin/category/coffee-break-services-and-supplies"
    },
    ...
  ],
  ...
}

Example without location

Without location, businesses from anywhere are returned. Businesses with several locations have a link to the BBB profile of the location in the results, and an hq_link to the BBB profile of their headquarters.

Example without location Example without location

JSON Example

{
  ...
  "search_information": {
    "total_results": 991
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Roto Rooter",
      "link": "https://www.bbb.org/us/oh/cuyahoga-fls/profile/plumber/roto-rooter-0272-90017151/addressId/93920",
      "hq_link": "https://www.bbb.org/us/oh/cincinnati/profile/plumber/roto-rooter-plumbing-water-cleanup-0292-1922",
      "local_bbb_id": "0292",
      "business_id": "1922",
      "accredited": true,
      "bbb_rating": "A+",
      "bbb_rating_score": 100.0,
      "category": "Plumber",
      "categories": [
        {
          "id": "10113-000",
          "title": "Plumber"
        },
        {
          "id": "60367-000",
          "title": "Fire and Water Damage Restoration"
        },
        ...
      ],
      "address": "PO Box 3527, Cuyahoga Fls, OH 44223",
      "gps_coordinates": {
        "latitude": 41.1696645,
        "longitude": -81.5310574
      },
      "phone": "(513) 893-0027",
      "phones": [
        "(513) 893-0027",
        "(513) 631-2525"
      ],
      "service_area": "(Nationwide - See attached list of branches and locations)",
      "service_areas": [
        "Addyston, OH",
        "Alexandria, KY",
        "Amberley, OH",
        ...
      ],
      "local_bbb_name": "BBB Cincinnati"
    },
    ...
  ],
  ...
}

JSON structure overview

{
  ...
  "search_information": {
    "total_results": "Integer - Number of businesses matching the search. BBB returns up to 15 pages of 15 businesses.",
    "organic_results_state": "String - 'Fully empty' when no business matches the search."
  },
  "organic_results": [
    {
      "position": "Integer - Position of the business in the results, counting the previous pages.",
      "title": "String - Name of the business.",
      "link": "String - Link to the BBB profile of the business, at the location in the results.",
      "hq_link": "String - Link to the BBB profile of the headquarters. Only for businesses with several locations.",
      "local_bbb_id": "String - ID of the local BBB that the business profile belongs to. With business_id, it identifies the business. (Ex. 0825)",
      "business_id": "String - ID of the business at its local BBB. (Ex. 1000235729)",
      "accredited": "Boolean - Whether the business is BBB accredited.",
      "bbb_rating": "String - BBB rating of the business, from A+ to F. Absent when BBB doesn't rate the business. (Ex. A+)",
      "bbb_rating_score": "Float - Score from 0 to 100 that the BBB rating comes from. Absent when BBB doesn't rate the business. (Ex. 100.0)",
      "category": "String - Main category of the business. (Ex. Coffee and Tea)",
      "categories": [
        {
          "id": "String - ID of the category, to use in the category_id parameter. (Ex. 50164-000)",
          "title": "String - Name of the category."
        },
        ...
      ],
      "address": "String - Address of the business. (Ex. 600 Congress Ave Fl 14, Austin, TX 78701-3263)",
      "gps_coordinates": {
        "latitude": "Float - Latitude of the business.",
        "longitude": "Float - Longitude of the business."
      },
      "phone": "String - Main phone number of the business.",
      "phones": "Array - All the phone numbers of the business.",
      "thumbnail": "String - Link to the logo of the business.",
      "service_area": "String - Service area, as written by the business.",
      "service_areas": "Array - Cities, counties, states, or countries that the business serves.",
      "local_bbb_name": "String - Name of the local BBB that the business profile belongs to. (Ex. BBB Heart of Texas)",
      "request_quote_link": "String - Link to request a quote from the business, like BBB's 'Get a Quote' button."
    },
    ...
  ],
  "filters": {
    "categories": [
      {
        "text": "String - Name of the category.",
        "value": "String - ID of the category, to use in the category_id parameter."
      },
      ...
    ],
    "states": [
      {
        "text": "String - State or province code.",
        "value": "String - State or province code, to use in the state parameter."
      },
      ...
    ]
  },
  "related_categories": [
    {
      "title": "String - Name of the related category.",
      "link": "String - Link to the category page on BBB."
    },
    ...
  ],
  "serpapi_pagination": {
    "current": "Integer - Current page number.",
    "previous": "String - Link to the previous page of results with SerpApi.",
    "next": "String - Link to the next page of results with SerpApi.",
    "other_pages": {
      "page_number": "String - Link to this page of results with SerpApi."
    }
  },
  ...
}