<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Liam Oliver</title>
    <description>The latest articles on DEV Community by Liam Oliver (@hawtsauce).</description>
    <link>https://dev.to/hawtsauce</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4271957%2F05dff476-43c2-458b-8550-52679f3a4c3c.png</url>
      <title>DEV Community: Liam Oliver</title>
      <link>https://dev.to/hawtsauce</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hawtsauce"/>
    <language>en</language>
    <item>
      <title>There is no Google Flights API. Here is how to get the data anyway</title>
      <dc:creator>Liam Oliver</dc:creator>
      <pubDate>Sun, 29 Nov 2026 08:59:32 +0000</pubDate>
      <link>https://dev.to/hawtsauce/there-is-no-google-flights-api-here-is-how-to-get-the-data-anyway-10kk</link>
      <guid>https://dev.to/hawtsauce/there-is-no-google-flights-api-here-is-how-to-get-the-data-anyway-10kk</guid>
      <description>&lt;p&gt;Google shut down its flight search API (QPX Express) in 2018. If you want Google Flights prices in a script or a spreadsheet today, you have three realistic options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: Price alerts (free, one route)
&lt;/h2&gt;

&lt;p&gt;Google Flights can email you when the price for a saved route changes. Search a route, switch on "Track prices", and you are done. Good for one trip, useless if you want data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: A paid travel data provider
&lt;/h2&gt;

&lt;p&gt;If you are building a booking product you need bookable fares, and that means a commercial provider with contracts and per-search pricing. Overkill for analysis or a side project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: Pull what Google Flights shows
&lt;/h2&gt;

&lt;p&gt;For research, price tracking or comparing routes, the page Google Flights shows you is enough: airline, flight numbers, times, duration, stops and price.&lt;/p&gt;

&lt;p&gt;I built a small tool on Apify that does exactly that. You give it routes and dates, it returns one row per flight option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://apify.com/hawtsauce/google-flights-scraper" rel="noopener noreferrer"&gt;https://apify.com/hawtsauce/google-flights-scraper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Input:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"origin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"SFO"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"destination"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"JFK"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"departureDate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"+30"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"maxResults"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;"+30"&lt;/code&gt; means 30 days from today, which is handy for a scheduled run that never goes stale. You can also pass a fixed date like &lt;code&gt;2027-01-20&lt;/code&gt;, a &lt;code&gt;returnDate&lt;/code&gt; for round trips, cabin class, number of adults, or a &lt;code&gt;searches&lt;/code&gt; list with many routes.&lt;/p&gt;

&lt;p&gt;A real row from a test run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"airlines"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Delta"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"flightNumbers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"DL 383"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"departureTime"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2027-01-20T09:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"arrivalTime"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2027-01-20T17:39"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"durationMinutes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;339&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"stops"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;170&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"currency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"USD"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Building a price history
&lt;/h2&gt;

&lt;p&gt;On Apify you can schedule any run. Set the route with &lt;code&gt;"departureDate": "+30"&lt;/code&gt;, schedule it daily, and every day you get a fresh snapshot. Export the dataset to CSV or pull it from the API into a sheet, and you have a price history for that route.&lt;/p&gt;

&lt;p&gt;A few ideas that work well:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Track one route at several offsets (+14, +30, +60) to see how far ahead prices drop.&lt;/li&gt;
&lt;li&gt;Compare nearby airports (JFK, EWR, LGA) in one run.&lt;/li&gt;
&lt;li&gt;Watch when a nonstop disappears from the cheapest option.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Prices are what Google showed at run time and can change at booking.&lt;/li&gt;
&lt;li&gt;Round trips return the outbound options with the total round trip price.&lt;/li&gt;
&lt;li&gt;One results page per route, usually 10 to 30 options.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Disclosure: I built this tool and it charges per result after Apify's free monthly credit. Option 1 above is free and fine for a single trip.&lt;/p&gt;

</description>
      <category>api</category>
      <category>travel</category>
      <category>webscraping</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to export any brand's Google ads to a spreadsheet</title>
      <dc:creator>Liam Oliver</dc:creator>
      <pubDate>Sun, 29 Nov 2026 08:45:10 +0000</pubDate>
      <link>https://dev.to/hawtsauce/how-to-export-any-brands-google-ads-to-a-spreadsheet-2k4l</link>
      <guid>https://dev.to/hawtsauce/how-to-export-any-brands-google-ads-to-a-spreadsheet-2k4l</guid>
      <description>&lt;p&gt;If you want to know what ads a competitor is running on Google, the answer is public. Since 2023 Google has published every advertiser's ads in the Ads Transparency Center at adstransparency.google.com. You can search a brand, scroll through its Search, YouTube and Display ads, and see roughly how long each one has run.&lt;/p&gt;

&lt;p&gt;The problem is getting that into something you can work with. The site shows ads as cards, 40 at a time, with no export button. For a brand with thousands of ads, copying them by hand is not realistic.&lt;/p&gt;

&lt;p&gt;This guide shows two ways to get the data out: by hand for a quick look, and with a small tool for a full export.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Transparency Center gives you
&lt;/h2&gt;

&lt;p&gt;For each ad you can see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the advertiser's verified name and ID&lt;/li&gt;
&lt;li&gt;the format: text, image or video&lt;/li&gt;
&lt;li&gt;the first and last date it was shown&lt;/li&gt;
&lt;li&gt;a rendered picture of the ad, or a video preview&lt;/li&gt;
&lt;li&gt;which countries it ran in, with dates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not get spend, clicks or targeting. What you do get is useful on its own: an ad that has run for 400 days is almost certainly one that works for them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The manual way
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Go to adstransparency.google.com.&lt;/li&gt;
&lt;li&gt;Type the brand name or website into the search box and pick the advertiser.&lt;/li&gt;
&lt;li&gt;Set the region (top right) and, if you want, a date range and format.&lt;/li&gt;
&lt;li&gt;Click any ad to see its details.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fine for checking five ads. Not for comparing a competitor's 300 live ads.&lt;/p&gt;

&lt;h2&gt;
  
  
  The export way
&lt;/h2&gt;

&lt;p&gt;I built a small tool on Apify that does the same search and saves every ad as a row. It runs in the cloud, so there is nothing to install.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Google Ads Transparency Center Scraper on the Apify Store: &lt;a href="https://apify.com/hawtsauce/google-ads-transparency-scraper" rel="noopener noreferrer"&gt;https://apify.com/hawtsauce/google-ads-transparency-scraper&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Click "Try for free" and sign in to Apify.&lt;/li&gt;
&lt;li&gt;Fill in the input. For example:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"advertiserName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Nike, Inc."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"region"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"US"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ALL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"maxResults"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can search by advertiser name, by advertiser ID (the &lt;code&gt;AR...&lt;/code&gt; code in the advertiser's page URL), or by website domain such as &lt;code&gt;nike.com&lt;/code&gt;. You can also filter by date range and format.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click Start. A run of a few hundred ads takes seconds.&lt;/li&gt;
&lt;li&gt;Download the results as CSV, Excel or JSON from the Output tab.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each row looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"advertiserName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Nike, Inc."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"advertiserId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AR16735076323512287233"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"creativeId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CR01660051743767003137"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"format"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TEXT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"firstShown"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2024-10-17T14:00:58.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"lastShown"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-29T05:33:41.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"totalDaysShown"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;726&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"imageUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://tpc.googlesyndication.com/archive/simgad/4198982236634851828"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"detailUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR01660051743767003137?region=US"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Turn on "Add per-country dates" if you also want every country each ad ran in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with the export
&lt;/h2&gt;

&lt;p&gt;A few things that work well in a spreadsheet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sort by days shown.&lt;/strong&gt; The ads at the top are the long runners. Read those first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter by last shown date.&lt;/strong&gt; Everything shown in the last week is what they are running now.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count by format.&lt;/strong&gt; If a competitor is 80 percent video, that tells you where they are spending effort.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run it monthly.&lt;/strong&gt; Compare creative IDs between exports to see what is new and what they stopped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search by your own domain.&lt;/strong&gt; It shows ads that point to your site, including ones you did not place.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Cost and limits
&lt;/h2&gt;

&lt;p&gt;The tool charges per ad returned, and Apify's free plan includes monthly credit that covers small runs. The exact price is on the tool's Pricing tab.&lt;/p&gt;

&lt;p&gt;Limits worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It only returns what Google publishes. No spend or impression data.&lt;/li&gt;
&lt;li&gt;Google's ad counts are estimates.&lt;/li&gt;
&lt;li&gt;Same-named advertisers in different countries are separate accounts. Use the advertiser ID if you want exactly one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Disclosure: I built this tool and earn from it when people use it. The manual method above is free and works fine for small checks.&lt;/p&gt;

</description>
      <category>googleads</category>
      <category>marketing</category>
      <category>tutorial</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
