Skip to content
Company & B2B

Business Lookup

Address, phone, hours, rating and category for a local business, from a name and city.

POST/v1/business-lookup
10 creditsBulk supportedGlobal
Request
curl -X POST https://api.1lookup.dev/v1/business-lookup \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Northwind Coffee Roasters","location":"Portland, OR"}'
Response
{
  "success": true,
  "data": {
    "name": "Northwind Coffee Roasters",
    "business_status": "open",
    "address": {
      "street": "418 Example St",
      "city": "Portland",
      "state": "OR",
      "postal_code": "97209",
      "country": "US",
      "formatted": "418 Example St, Portland, OR 97209"
    },
    "phone": "+15035550117",
    "website": "https://www.northwindcoffee.example",
    "categories": [
      "Coffee roaster",
      "Cafe"
    ],
    "rating": 4.6,
    "review_count": 812,
    "coordinates": {
      "lat": 45.5262,
      "lng": -122.6816
    },
    "hours": {
      "monday": "07:00-17:00",
      "tuesday": "07:00-17:00",
      "wednesday": "07:00-17:00",
      "thursday": "07:00-17:00",
      "friday": "07:00-18:00",
      "saturday": "08:00-18:00",
      "sunday": "08:00-15:00"
    }
  },
  "meta": {
    "credits_used": 10,
    "credits_remaining": 999,
    "cached": false,
    "request_id": "req_8f3a2c1e9b7d"
  }
}

Authorization

Authorizationstring<bearer>required

Your API key as a Bearer token. Live keys start with 1lk_live_. Test keys start with 1lk_test_ and return this endpoint's sample response without spending credits. See authentication.

Body

Send the fields as a JSON object with Content-Type: application/json.

namestringrequired

Business name. Example: Northwind Coffee Roasters

locationstringrequired

City and state. Example: Portland, OR

freshboolean

Skip the 7-day cache and run a new lookup. Charged as a normal lookup.

referencestring

Your own identifier, echoed back in meta and shown in lookup history.

Response

A 200 response carries the result in data and the cost of the call in meta. These are the fields most integrations read.

successboolean

true when the lookup ran.

data.business_statusstring

Whether the listing is marked open or closed, so you can drop businesses that have shut.

data.address.formattedstring

The full street address on one line, with the parts also split into fields.

data.phonestring

The public phone number on the listing.

data.websitestring

The site the business links to from its listing.

data.hoursobject

Opening hours for each day of the week.

data.ratingnumber

The average star rating out of 5. The review_count field says how many reviews it rests on.

data.categoriesarray

What kind of business it is, as listed.

data.coordinatesobject

Latitude and longitude for mapping and distance calculations.

meta.credits_usednumber

Credits charged for this call.

meta.credits_remainingnumber

Your balance after the call.

meta.cachedboolean

true when the result came from the 7-day cache.

meta.request_idstring

Quote this when you contact support.

Errors

A failed request returns success: false with an error object, and is never charged. The full list is on the errors page.

HTTPCodeMeaning
401unauthorizedThe key is missing, malformed or revoked.
402insufficient_creditsYour credits are used up and pay as you go is off or at its limit.
422invalid_inputA field is missing or malformed. The field property names it.
429rate_limitedToo many requests for this key. Wait for the Retry-After interval.
500internal_errorSomething failed on our side. Safe to retry.
503source_unavailableAn upstream source did not answer in time. Safe to retry.

Billing

10 credits. Charged when the lookup runs and returns a result. Errors are never charged, and repeating the same input within 7 days is served from cache at no charge.

Product overview and use cases