← Blog

How I Got Every New Bar in Texas Into a Google Sheet

Texas publishes every liquor license it issues, but the export is 129,203 rows and goes stale in a day. Here's the Google Sheet that keeps only the new bars and restaurants and updates itself every morning.

I’ve used Google Sheets for 10 years and I didn’t know I could do this.

A few months ago a client asked me to turn a builder directory into a list he could work from. Two hours later he had 2,300 companies in a sheet. I was as surprised as he was. So I tried it again on something public: every bar and restaurant that just opened in Texas.

It took about an hour. The sheet has 311 new places from the last 30 days, and it adds the new ones every morning without me touching it.

TL;DR

  • Texas publishes every liquor license it issues, free, updated daily. The export is 129,203 rows, and it’s out of date the next morning.
  • The fix is a Google Sheet with an Apps Script that keeps only the new, active bars and restaurants (311 in the last 30 days) and adds new ones daily.
  • AI wrote the script once. After that no AI runs. The Claude prompt is below.

The goal

If you sell to bars and restaurants, the best time to reach one is the month it opens. They’re picking a food distributor, a point-of-sale system, an insurance agent, a payroll company and someone to do their marketing.

So the goal is one list: every bar and restaurant that just opened, kept current.

The data exists, and it’s free

A bar can’t pour a drink in Texas without a license from the Texas Alcoholic Beverage Commission. The state publishes every license on the Texas Open Data Portal and updates it daily. A new license usually means a new bar, restaurant or store.

The TABC License Information page on the Texas Open Data Portal, updated December 3, 2026

There’s an Export button right on the page. Click it and this is what you’re offered.

The Export dataset dialog on the Texas Open Data Portal: CSV, all data, 129203 rows

One choice: all data, 129,203 rows. That’s where the problems start.

The problems with the export

The raw TABC data table: 129,203 rows of license codes and cut-off columns

Problem 1: it’s 129,203 rows. Most of them are not what you want. Expired and surrendered licenses are mixed in with active ones. Distributors, breweries and liquor stores are in there with the bars.

Problem 2: it’s in code. License types are letters like Q, BG and MB. You have to learn which ones mean “serves drinks.”

Problem 3: it’s a snapshot. The state adds new licenses every day. Your export is out of date tomorrow morning.

Problem 4: you can’t tell what’s new. Export again next week and you get all 129,203 rows again. Which ones weren’t there last week? You’d have to compare the two files.

Problem 5: your notes don’t survive. Mark who you called in this week’s file, and next week’s export knows nothing about it.

Problem 6: nobody keeps doing it. Filter, export, import, clean up, compare, every week. That lasts about two weeks.

The solution: a sheet that does it for you

The finished Google Sheet: 311 new Texas licenses with business, owner, license type, address, city, county and a Maps link

One Google Sheet, with an Apps Script behind it. Here’s how it handles each problem.

  • 129,203 rows becomes 311. It asks the state only for licenses first issued in the last 30 days that are active, retail, and one of three types that serve drinks on site.
  • Codes become words. MB shows as “Mixed Beverage (bar/restaurant serving liquor)”. BG is wine and beer. BE is beer.
  • It updates itself. Turn on “Refresh every morning” and it checks the state’s data every day around 7am.
  • It adds only what’s new. It remembers every license already in the sheet and skips them. New ones land on top.
  • Your notes stay. There’s a Notes column. It stays with its row every time new ones come in.
  • You don’t have to remember. There is no step 7. You open the sheet and the new places are there.

When I ran it on December 3, 2026 it found 311 places: 195 mixed beverage, 111 wine and beer, 5 beer only. Houston had 39, Dallas 22, Austin 18, San Antonio 14.

Each row has the issue date, business name, owner, license type, street address, city, county, ZIP, mailing address and a link that opens the place on Google Maps. The last column is Notes.

The right side of the sheet: License ID, a Maps link on every row, the date it was added, and an empty Notes column

A Settings tab changes the days back, the license types, and narrows it to one city or county.

The Settings tab: Days back 30, License types MB, BG, BE, optional City and County, and Last pulled Dec 4, 2026 8:31 AM

What you click

There’s one menu, TABC Leads, with three items.

The TABC Leads menu open in Google Sheets: Pull new licenses, Refresh every morning, Stop daily refresh

The first time you click Pull new licenses, Google stops and asks for permission. Every Apps Script does this. I clicked OK, picked my account and allowed it. You do it once.

Google Sheets dialog: Authorization required. A script attached to this document needs your permission to run.

Then it runs. It takes a few seconds.

The Running script message at the top of the sheet

I ran it again the next morning, December 4. It found the same 311 licenses, saw that every one was already in the sheet, and added nothing. No duplicates, nothing to clean up.

A message in the corner of the sheet: TABC Leads, 0 new licenses added (311 matched your settings)

What it doesn’t have

Phone numbers and emails. The state’s file has a phone column, but it’s empty on every row. You get the business name, the owner’s name and a mailing address. For a phone number, click the Maps link on the row.

Crawfish King on Google Maps, opened from the sheet's Maps link, with address, website and phone number

And not every row is a place that just opened. Crawfish King in Live Oak got its license on December 2 and already has 455 Google reviews. A new license can go to a place that’s been around.

I don’t know why the state leaves the phone column empty.

Why a Google Sheet, and not an AI agent or a CRM

You might be looking at AI tools to do this kind of thing for you. I was too. Here’s why this ended up as a plain sheet.

Not an AI agent. An agent would go read the data and think about it every single run. That costs money each time, takes longer, and it can get it wrong in a different way each day. Here, AI did one job: it wrote the script. Now the script runs the same way every morning, for free, and no AI is involved at all.

Not a CRM or lead software. Those cost money every month, and none of them has this list. The sheet is free to run, it’s a tool you already know, and it’s yours. Add a column, sort it, share it with your sales rep.

Not a scraper. Nothing here reads a web page and hopes the layout didn’t change. The script uses the state’s own official data feed, the one they publish for exactly this.

So the answer to “can AI get me this list?” is yes, but not by doing the work every day. You have AI build you a Google Sheet that does the work every day.

How I built it

I didn’t write the code. I described what I wanted to Claude and it wrote the Apps Script.

  1. I found the dataset on the Texas Open Data Portal. It has a free API, no key needed.
  2. I told Claude what I wanted: only new, active bars and restaurants, in a Google Sheet, with a menu button and a daily refresh.
  3. Claude wrote the script and tested the query against the live data before putting it anywhere.
  4. Claude used clasp (Google’s command line tool for Apps Script) to create the sheet and upload the script.
  5. I opened the sheet, clicked Pull new licenses, approved Google’s permission popup once, and 311 rows came in.

The prompt

If you have Claude Code and want to do exactly this, here’s the prompt.

I want a Google Sheet that lists every new bar and restaurant in Texas.

The data is on the Texas Open Data Portal: "TABC License Information"
(data.texas.gov, dataset 7hf9-qc9f). It has a free API.

Write a Google Apps Script that:
- pulls licenses first issued in the last 30 days that are active,
  retail, and one of these types: MB, BG, BE
- writes one row per license: issue date, business name, owner,
  license type in plain words, address, city, county, ZIP,
  mailing address, and a Google Maps search link
- skips licenses already in the sheet, so I can run it again and again
- keeps a Notes column that stays with its row
- has a Settings tab for days back, license types, city and county
- adds a menu with "Pull new licenses" and "Refresh every morning"

Test the query against the live API first and tell me how many rows
it returns. Then use clasp to create the sheet and push the script.
Stop when you need me to log in or approve a permission.

The same thing for any list

Most states and a lot of cities publish data like this: contractor licenses, business licenses, trucking companies, healthcare providers, salons. The prompt shape is the same.

I want a Google Sheet of [who you sell to].
The list lives at [the website, directory or open data page].
Each row should have [the columns you need].
Only include [the filter that makes it useful: new, nearby, a certain type].
Skip rows I already have and refresh it every [day / week].
Write the Apps Script, test it, then use clasp to create the sheet.

The hard part isn’t the code anymore. It’s knowing the list exists, and knowing which 311 rows out of 129,203 you actually want.

Want one for your list?

If there’s a list you wish you had and you’d rather not build it yourself, email me at [email protected]. Tell me who you sell to and where that list lives now, even if the answer is “nowhere.” I’ll tell you if I can get it into a Google Sheet.

Ads keep the free stuff free. Members browse ad-free — log in or see pricing.
Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.