<?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: Freightapis.dev</title>
    <description>The latest articles on DEV Community by Freightapis.dev (@freightapis).</description>
    <link>https://dev.to/freightapis</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3980330%2Fff795f42-8767-4d68-831d-8517e6497d4f.png</url>
      <title>DEV Community: Freightapis.dev</title>
      <link>https://dev.to/freightapis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/freightapis"/>
    <language>en</language>
    <item>
      <title>One REST API for carrier terminals and global seaports</title>
      <dc:creator>Freightapis.dev</dc:creator>
      <pubDate>Fri, 12 Jun 2026 01:45:36 +0000</pubDate>
      <link>https://dev.to/freightapis/one-rest-api-for-carrier-terminals-and-global-seaports-3g82</link>
      <guid>https://dev.to/freightapis/one-rest-api-for-carrier-terminals-and-global-seaports-3g82</guid>
      <description>&lt;p&gt;If you've ever built quoting, a TMS integration, or any LTL shipping feature, you've hit the same wall I did: the reference data is a mess. Every carrier's terminal list is a different scraped HTML page, and seaport data is scattered across PDFs.&lt;/p&gt;

&lt;p&gt;I got tired of re-scraping it for every project, so I put it behind one REST API: &lt;a href="https://freightapis.dev" rel="noopener noreferrer"&gt;FreightAPIs&lt;/a&gt;. This post shows the lookups I reach for most.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT'S IN IT
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Carrier terminals — 10 LTL/freight carriers (ABF, Estes, Saia, TForce, CEVA, USPS, and more), searchable by state, ZIP, city, radius, or batch&lt;/li&gt;
&lt;li&gt;Seaports — 4,400+ global ports by UN/LOCODE, country, shipping company, or geographic radius&lt;/li&gt;
&lt;li&gt;USPS drop points — 98,000+ post offices and collection boxes by ZIP, keyword, or ID&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One API key, JSON in / JSON out. Free tier is 20 calls/month, no credit card.&lt;/p&gt;

&lt;h2&gt;
  
  
  SETUP
&lt;/h2&gt;

&lt;p&gt;Grab a key at &lt;a href="https://freightapis.dev/account" rel="noopener noreferrer"&gt;https://freightapis.dev/account&lt;/a&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;freightapis      &lt;span class="o"&gt;(&lt;/span&gt;Node 18+&lt;span class="o"&gt;)&lt;/span&gt;
pip &lt;span class="nb"&gt;install &lt;/span&gt;freightapis      &lt;span class="o"&gt;(&lt;/span&gt;Python 3.8+&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1) LOOK UP A CARRIER'S TERMINALS&lt;/p&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;FreightAPIs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;freightapis&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;fa&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FreightAPIs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;FREIGHTAPIS_KEY&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Estes terminals in Georgia&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;fa&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;carrierByStateOrZip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;estes&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;state&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;GA&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="c1"&gt;// Search any carrier by city/ZIP&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;fa&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;carrierSearch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;saia&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;atlanta&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2) RESOLVE A SEAPORT&lt;/p&gt;

&lt;p&gt;Node:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;await fa.port('CNSHA');            // Shanghai, by UN/LOCODE
await fa.portsByCountry('CN');     // all China ports
await fa.portsNearby(31.2, 121.5, { radius: 200 });  // ports near a coordinate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;3) PYTHON IS THE SAME SHAPE&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from freightapis import FreightAPIs
fa = FreightAPIs(os.environ["FREIGHTAPIS_KEY"])

fa.carrier_by_state_or_zip("estes", state="GA")
fa.carrier_search("saia", "atlanta")
fa.port("CNSHA")
fa.ports_by_country("CN")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;PREFER RAW HTTP?&lt;/p&gt;

&lt;p&gt;Every endpoint is a plain REST call — no SDK required:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://freightapis.dev/api/estes-location?state=GA -H "X-API-Key: YOUR_KEY"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;There's an OpenAPI spec (&lt;a href="https://freightapis.dev/openapi.yaml" rel="noopener noreferrer"&gt;https://freightapis.dev/openapi.yaml&lt;/a&gt;) and a Postman collection (&lt;a href="https://freightapis.dev/freightapis.postman_collection.json" rel="noopener noreferrer"&gt;https://freightapis.dev/freightapis.postman_collection.json&lt;/a&gt;) if you'd rather generate your own client.&lt;/p&gt;

&lt;p&gt;WRAPPING UP&lt;/p&gt;

&lt;p&gt;Full reference is at &lt;a href="https://freightapis.dev/docs" rel="noopener noreferrer"&gt;https://freightapis.dev/docs&lt;/a&gt;. I built this because I needed it — if you work with LTL/freight data, I'd genuinely love feedback on what's missing. What logistics data do you end up scraping over and over?&lt;/p&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>logistics</category>
      <category>tms</category>
    </item>
  </channel>
</rss>
