<?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: Tarun</title>
    <description>The latest articles on DEV Community by Tarun (@sanjeevutarun).</description>
    <link>https://dev.to/sanjeevutarun</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%2F3865624%2F6c18a0df-28e0-4d21-acb6-de11be326e1d.png</url>
      <title>DEV Community: Tarun</title>
      <link>https://dev.to/sanjeevutarun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanjeevutarun"/>
    <language>en</language>
    <item>
      <title>I Built the API GSMArena Never Had (Mobile Specs + DXOMark Data)</title>
      <dc:creator>Tarun</dc:creator>
      <pubDate>Tue, 07 Apr 2026 10:44:24 +0000</pubDate>
      <link>https://dev.to/sanjeevutarun/i-built-the-api-gsmarena-never-had-mobile-specs-dxomark-data-4mc8</link>
      <guid>https://dev.to/sanjeevutarun/i-built-the-api-gsmarena-never-had-mobile-specs-dxomark-data-4mc8</guid>
      <description>&lt;h1&gt;
  
  
  I Built the API GSMArena Never Had (Mobile Specs + DXOMark Data)
&lt;/h1&gt;

&lt;p&gt;If you’ve ever tried building anything around smartphone data, you’ve probably hit this problem:&lt;/p&gt;

&lt;p&gt;👉 There is no clean, usable API for mobile specs.&lt;/p&gt;

&lt;p&gt;GSMArena has everything — but:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;no official API&lt;/li&gt;
&lt;li&gt;inconsistent structure&lt;/li&gt;
&lt;li&gt;scraping breaks easily&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran into this while building my own apps, and after scraping the same data again and again…&lt;/p&gt;

&lt;p&gt;I decided to fix it properly.&lt;/p&gt;




&lt;h2&gt;
  
  
  🚀 What I Built
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;production-ready mobile specs API&lt;/strong&gt; that provides:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📱 Structured smartphone specifications (GSMArena)&lt;/li&gt;
&lt;li&gt;📸 Camera scores (DXOMark-style data)&lt;/li&gt;
&lt;li&gt;🔍 Smart search with relevance scoring&lt;/li&gt;
&lt;li&gt;⚡ Fast responses using Redis + LRU caching&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚡ Quick Example
&lt;/h2&gt;

&lt;p&gt;Instead of scraping pages manually, you can just call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;GET /phone?name&lt;span class="o"&gt;=&lt;/span&gt;samsung%20s26%20ultra
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After running locally:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="http://localhost:4000/phone?name=samsung%20s26%20ultra" rel="noopener noreferrer"&gt;http://localhost:4000/phone?name=samsung%20s26%20ultra&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You’ll get clean structured JSON instantly — no parsing required.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔎 What You Can Search
&lt;/h2&gt;

&lt;p&gt;Try queries like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;iphone 15 pro max&lt;/li&gt;
&lt;li&gt;pixel 8&lt;/li&gt;
&lt;li&gt;oneplus 12&lt;/li&gt;
&lt;li&gt;samsung s24 ultra&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The API handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;fuzzy matching&lt;/li&gt;
&lt;li&gt;relevance scoring&lt;/li&gt;
&lt;li&gt;structured output&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚙️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;TypeScript + Node.js&lt;/li&gt;
&lt;li&gt;Fastify (high-performance server)&lt;/li&gt;
&lt;li&gt;Redis (caching layer)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔥 What Makes It Different
&lt;/h2&gt;

&lt;p&gt;This is not just a scraper — it’s designed as a usable system.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Smart Caching System
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Redis + LRU cache&lt;/li&gt;
&lt;li&gt;Prevents repeated scraping&lt;/li&gt;
&lt;li&gt;Makes responses faster&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  2. Clean, Structured Output
&lt;/h3&gt;

&lt;p&gt;Instead of raw HTML, you get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;normalized JSON&lt;/li&gt;
&lt;li&gt;categorized specs&lt;/li&gt;
&lt;li&gt;consistent schema&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  3. Smarter Search
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Not basic string matching&lt;/li&gt;
&lt;li&gt;Uses scoring logic for better relevance&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  4. Built for Real Use
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Designed for actual projects&lt;/li&gt;
&lt;li&gt;Handles repeated queries efficiently&lt;/li&gt;
&lt;li&gt;Easy to integrate into apps&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠️ Run It Locally
&lt;/h2&gt;

&lt;p&gt;Clone and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Sanjeevu-Tarun/gsmarena-dxomark-mobile-specs-api
&lt;span class="nb"&gt;cd &lt;/span&gt;gsmarena-dxomark-mobile-specs-api
npm &lt;span class="nb"&gt;install
&lt;/span&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Server runs at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:4000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:4000/phone?name=iphone%2015
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧩 Why I Built This
&lt;/h2&gt;

&lt;p&gt;I was building apps like DeviceIntel and needed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;reliable device data&lt;/li&gt;
&lt;li&gt;fast queries&lt;/li&gt;
&lt;li&gt;reusable backend&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of solving it repeatedly,&lt;br&gt;
I built this API once — properly.&lt;/p&gt;




&lt;h2&gt;
  
  
  💡 Where This Can Be Used
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Mobile comparison apps&lt;/li&gt;
&lt;li&gt;Tech dashboards&lt;/li&gt;
&lt;li&gt;AI recommendation systems&lt;/li&gt;
&lt;li&gt;Data analysis tools&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🔗 GitHub Repo
&lt;/h2&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/Sanjeevu-Tarun/gsmarena-dxomark-mobile-specs-api" rel="noopener noreferrer"&gt;https://github.com/Sanjeevu-Tarun/gsmarena-dxomark-mobile-specs-api&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  👋 Final Thoughts
&lt;/h2&gt;

&lt;p&gt;There’s a clear gap in structured mobile data APIs —&lt;br&gt;
this is my attempt to fill that gap.&lt;/p&gt;

&lt;p&gt;If you find it useful:&lt;/p&gt;

&lt;p&gt;⭐ Star the repo&lt;br&gt;
💬 Share feedback&lt;br&gt;
🚀 Build something with it&lt;/p&gt;

</description>
      <category>api</category>
      <category>scraper</category>
      <category>gsmarena</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
