> ## Documentation Index
> Fetch the complete documentation index at: https://v3.captaindata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Yellow Pages

> Find businesses from a search on Yellow Pages.

To find businesses using Yellow Pages, this action allows you to extract detailed information from a search URL. Simply provide the search URL, and the action will return a comprehensive list of business details.

<Steps>
  <Step title="Navigate to Yellow Pages">
    Go to <a href="https://www.yellowpages.com/">Yellow Pages</a>.
  </Step>

  <Step title="Craft a Search">
    Enter a location and the type of businesses you are looking for (e.g.,
    Plumbers in Los Angeles).
  </Step>

  <Step title="Copy the URL">
    Copy the search URL, which should look like this example
    "[https://www.yellowpages.com/search?search\_terms=Plumbers\&amp;geo\_location\_terms=Brentwood%2C+Los+Angeles%2C+CA](https://www.yellowpages.com/search?search_terms=Plumbers\&amp;geo_location_terms=Brentwood%2C+Los+Angeles%2C+CA)"
  </Step>

  <Step title="Paste the URL">Paste the URL into the input field.</Step>
</Steps>

### Inputs

<ParamField path="yellow_pages_search_url" type="string" required={true} primary={true}>
  A Yellow Pages Search URL should start with '[https://www.yellowpages.com](https://www.yellowpages.com)'.
</ParamField>

### Parameters

<ParamField path="max_results" type="number" default={100} minimum={1} maximum={3030}>
  Maximum number of search results to extract per input.
</ParamField>

### Output Fields

The action returns the following fields:

<ResponseField>
  <Expandable title="properties">
    <ResponseField name="address" type="string">
      The address of the business
    </ResponseField>

    <ResponseField name="bbb_rating" type="string">
      The Better Business Bureau rating
    </ResponseField>

    <ResponseField name="business_picture" type="string">
      URL to the business picture
    </ResponseField>

    <ResponseField name="category" type="string">
      The category of the business
    </ResponseField>

    <ResponseField name="city" type="string">
      The city where the business is located
    </ResponseField>

    <ResponseField name="company_name" type="string">
      The name of the company
    </ResponseField>

    <ResponseField name="coupons" type="string">
      Available coupons for the business
    </ResponseField>

    <ResponseField name="number_reviews" type="integer">
      The number of reviews
    </ResponseField>

    <ResponseField name="order_online_link" type="string">
      Link to order online
    </ResponseField>

    <ResponseField name="phone_number" type="string">
      The phone number of the business
    </ResponseField>

    <ResponseField name="rating" type="number">
      The rating of the business
    </ResponseField>

    <ResponseField name="schedule_appointment_link" type="string">
      Link to schedule an appointment
    </ResponseField>

    <ResponseField name="service_link" type="string">
      Link to the service page
    </ResponseField>

    <ResponseField name="table_booking_link" type="string">
      Link to book a table
    </ResponseField>

    <ResponseField name="trip_advisor_rating" type="number">
      TripAdvisor rating
    </ResponseField>

    <ResponseField name="trip_advisor_rating_amount" type="integer">
      Number of TripAdvisor ratings
    </ResponseField>

    <ResponseField name="website" type="string">
      The website of the business
    </ResponseField>

    <ResponseField name="yellow_pages_profile_url" type="string">
      URL to the Yellow Pages profile
    </ResponseField>
  </Expandable>
</ResponseField>

Here is the JSON schema for the output:

<Accordion title="Show JSON Output Schema">
  ```json
  {
    "address": "string",
    "bbb_rating": "string",
    "business_picture": "string",
    "category": "string",
    "city": "string",
    "company_name": "string",
    "coupons": "string",
    "number_reviews": "integer",
    "order_online_link": "string",
    "phone_number": "string",
    "rating": "number",
    "schedule_appointment_link": "string",
    "service_link": "string",
    "table_booking_link": "string",
    "trip_advisor_rating": "number",
    "trip_advisor_rating_amount": "integer",
    "website": "string",
    "yellow_pages_profile_url": "string"
  }
  ```
</Accordion>
