<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Network Data and AI Model Training]]></title><description><![CDATA[Network Data and AI Model Training]]></description><link>https://networkdataandaimodeltraining.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:03:08 GMT</lastBuildDate><atom:link href="https://networkdataandaimodeltraining.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How I Would Use Thordata’s Web Scraper API to Build a Product Price Monitor]]></title><description><![CDATA[The problem: price changes are easy to miss If you sell or resell products online, price changes can happen quietly. A competitor may lower a price during…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/how-i-would-use-thordata-s-web-scraper-api-to-build-a-product-price-monitor</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/how-i-would-use-thordata-s-web-scraper-api-to-build-a-product-price-monitor</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Fri, 20 Nov 2026 02:02:12 GMT</pubDate><content:encoded><![CDATA[<p>The problem: price changes are easy to miss</p>
<p>If you sell or resell products online, price changes can happen quietly. A competitor may lower a price during a promotion, a marketplace seller may run out of stock, or a product page may change its discount, rating, or shipping information.</p>
<p>Checking these pages manually works for a handful of products. It does not work when you monitor hundreds or thousands of SKUs across marketplaces.</p>
<p>That is where Thordata’s <strong>Web Scraper API</strong> becomes useful. It is not a general-purpose scraping tool that you configure from scratch for every website. Instead, it provides prebuilt scrapers for supported sites, including Amazon, YouTube, LinkedIn, and more than 120 other domains. You send a request with a target URL and parameters, and the service returns structured data.</p>
<p>For this article, I will focus on one realistic use case: <strong>building a recurring Amazon product-price and availability monitor.</strong></p>
<p><strong><mark>What the Web Scraper API actually does</mark></strong></p>
<p>Thordata’s Web Scraper API is a cloud-based service for automated web data extraction. It is designed for use cases such as data collection, market research, price monitoring, and content aggregation.</p>
<p>Rather than writing a custom crawler, handling JavaScript rendering, rotating IPs, or building parsing rules yourself, you use a preconfigured scraper template for a supported domain. The API handles the extraction process and returns formatted output such as JSON or CSV.</p>
<p>The service includes:</p>
<ul>
<li>Prebuilt scrapers for supported websites</li>
<li>Dynamic page rendering</li>
<li>Structured data parsing</li>
<li>IP rotation</li>
<li>Browser simulation</li>
<li>Anti-scraping strategies</li>
<li>API-based and no-code dashboard-based scraping</li>
<li>Scheduled tasks and automated data delivery</li>
</ul>
<p>For an operations team, the important part is not the underlying infrastructure. It is that you can send a product URL and receive fields such as title, price, availability, seller, rating, review count, category, images, and product details in a machine-readable response.</p>
<p><strong>The use case: monitor Amazon listings</strong></p>
<p>Imagine you manage an ecommerce brand and want to monitor competitor products on Amazon.</p>
<p>You may want to answer questions such as:</p>
<ul>
<li>Has a competitor changed its price today?</li>
<li>Is a product still in stock?</li>
<li>Has the Buy Box seller changed?</li>
<li>Has the product’s rating or review count changed?</li>
<li>Is a product gaining or losing visibility in its category?</li>
<li>Are there new variations, images, or product details?</li>
</ul>
<p>You could collect this information manually, but it becomes impractical at scale. A better approach is to create a list of product URLs or ASINs, call the Web Scraper API on a schedule, store the results, and compare each new snapshot with the previous one.</p>
<p><strong>A practical data model</strong></p>
<p>Before calling the API, decide what you want to store. A simple price-monitoring table could include:</p>
<ul>
<li>Product URL</li>
<li>ASIN</li>
<li>Marketplace or domain</li>
<li>Product title</li>
<li>Brand</li>
<li>Seller name</li>
<li>Buy Box seller</li>
<li>Current price</li>
<li>Currency</li>
<li>Discount</li>
<li>Availability</li>
<li>Rating</li>
<li>Review count</li>
<li>Category</li>
<li>Best Sellers Rank</li>
<li>Number of sellers</li>
<li>Snapshot timestamp</li>
<li>Raw API response</li>
</ul>
<p>The Amazon example response provided by Thordata includes many of these fields, including title, seller_name, initial_price, final_price, currency, availability, reviews_count, rating, categories, asin, buybox_seller, and number_of_sellers.</p>
<p>That is useful because you do not need to build a parser from scratch just to identify the core product fields.</p>
<p><strong>Sending a request</strong></p>
<p>Thordata’s product page includes an example request for an Amazon product. The request uses the amazon_product_by-url scraper and sends a product URL along with a ZIP code parameter.</p>
<p>Here is the example structure:</p>
<pre><code class="language-plaintext">bash
curl -X POST "https://scraperapi.thordata.com/builder" 
-H "Authorization: Bearer API_TOKEN" 
-H "Content-Type: application/x-www-form-urlencoded" 
-d "spider_name=amazon.com" 
-d "spider_id=amazon_product_by-url" 
-d "spider_parameters=[{"url": "https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\",\"zip_code\": "94107"}]" 
-d "spider_errors=true" 
-d "file_name={{TasksID}}"
</code></pre>
<p>This request tells Thordata to use the Amazon product scraper, target a specific Amazon product page, and return errors when applicable. The <code>zip_code</code> parameter can matter because Amazon can show delivery, availability, or pricing information differently depending on location.</p>
<p>In a real implementation, replace <code>API_TOKEN</code> with a token stored securely in an environment variable or secrets manager. Do not put it directly in frontend code, public repositories, or logs.</p>
<p><strong>What the response looks like</strong></p>
<p>The API response is structured JSON. For an Amazon product, Thordata’s example includes fields such as:</p>
<pre><code class="language-json">json
{
  "title": "HISDERN Plaid Checkered Tie Handkerchief Woven Classic Formal Men's Necktie &amp; Pocket Square Set",
  "seller_name": "goodmakers",
  "initial_price": "$13.99",
  "final_price": "$13.99",
  "currency": "USD",
  "availability": "In Stock",
  "reviews_count": "12009",
  "rating": "4.7",
  "asin": "B078TBS8LC",
  "buybox_seller": "goodmakers",
  "number_of_sellers": 1,
  "is_available": false
}
</code></pre>
<p>The full example response also includes category information, product images, product details, customer-review summaries, delivery information, and timestamps.</p>
<p>One important detail: the example response contains both <code>availability: "In Stock"</code> and <code>is_available: false</code>. That is a useful reminder that raw scraped fields can be inconsistent, context-dependent, or reflect different definitions. Before building alerts, you should decide which field your business trusts for a given decision.</p>
<p>For example:</p>
<ul>
<li>Use <code>availability</code> for display purposes.</li>
<li>Use <code>is_available</code> for automated inventory alerts only after validating it against your own business rules.</li>
<li>Treat price, rating, review count, and Buy Box seller as separate monitored fields.</li>
<li>Store the raw response so you can investigate discrepancies later.</li>
</ul>
<h2>A simple monitoring workflow</h2>
<p>A practical implementation does not need to be complicated.</p>
<h2>Step 1: Maintain a product list</h2>
<p>Create a table or spreadsheet with the products you want to monitor.</p>
<p>At minimum, include:</p>
<ul>
<li>Product URL</li>
<li>ASIN</li>
<li>Brand or competitor name</li>
<li>Marketplace</li>
<li>Target ZIP code or delivery location</li>
<li>Monitoring frequency</li>
<li>Owner</li>
<li>Alert threshold</li>
</ul>
<p>For example, you might monitor 50 competitor SKUs daily and 500 own-brand SKUs every six hours.</p>
<h2>Step 2: Schedule API requests</h2>
<p>Use a scheduler such as cron, Airflow, Prefect, GitHub Actions, or a cloud function triggered on a timer.</p>
<p>Do not call the API for every product at the same moment. Spread requests across a time window to avoid unnecessary spikes and make failures easier to manage.</p>
<h2>Step 3: Store snapshots</h2>
<p>Save each API response as a new record with a timestamp. Do not overwrite the previous result.</p>
<p>This lets you answer questions such as:</p>
<ul>
<li>When did the price change?</li>
<li>How long was the product out of stock?</li>
<li>How often does the Buy Box seller change?</li>
<li>What was the price before the promotion started?</li>
<li>Which products have the most volatile pricing?</li>
</ul>
<h2>Step 4: Detect meaningful changes</h2>
<p>Do not alert on every tiny change. Define rules that matter to your business.</p>
<p>For example:</p>
<ul>
<li>Alert when the price drops by more than 10 percent.</li>
<li>Alert when a product becomes unavailable.</li>
<li>Alert when the Buy Box seller changes.</li>
<li>Alert when the review count rises by more than a set percentage.</li>
<li>Alert when a product enters a higher Best Sellers Rank.</li>
<li>Alert when the product title or primary image changes.</li>
</ul>
<h2>Step 5: Send alerts to the right channel</h2>
<p>Send alerts to Slack, email, Microsoft Teams, or an internal dashboard. Include enough context for someone to act immediately:</p>
<pre><code class="language-plaintext">text
Price drop detected

Product: Wireless Earbuds Pro
Marketplace: Amazon US
Previous price: $89.99
Current price: $69.99
Change: -22.2%
Availability: In Stock
Buy Box seller: Competitor A
Product URL: https://www.amazon.com/dp/EXAMPLE
Detected at: 2026-11-20 09:30 UTC
</code></pre>
<h2>Where this fits into an operations workflow</h2>
<p>For a Hong Kong-based ecommerce or cross-border operations team, this can support several daily decisions:</p>
<ul>
<li>Identify whether a competitor’s discount is temporary or part of a longer pricing strategy.</li>
<li>Detect stockouts before they affect your own promotional planning.</li>
<li>Spot marketplace sellers taking over the Buy Box.</li>
<li>Track whether a product’s rating or review volume is improving.</li>
<li>Feed pricing data into a repricing or margin-analysis workflow.</li>
<li>Give category managers a daily list of products that need attention.</li>
</ul>
<p>The value is not simply “we scraped a price.” The value is that the price becomes part of a decision loop: detect the change, assess the impact, decide whether to act, and record the outcome.</p>
<h2>What I like about the approach</h2>
<p>The main advantage is <strong>reduced maintenance</strong>. A custom scraper may work well on day one, but marketplace pages change frequently. Layout changes, dynamic content, regional variations, and anti-bot measures can all break a self-built scraper.</p>
<p>With a prebuilt scraper API, the responsibility for maintaining the extraction pipeline is partly shifted to the provider. You still need to validate the data and manage your own workflow, but you do not need to rebuild the scraper every time a page changes.</p>
<p>The second advantage is <strong>structured output</strong>. The Amazon example response is not just a block of HTML. It includes named fields for price, availability, rating, reviews, seller, category, and product identifiers. That makes it much easier to load into a database, spreadsheet, BI dashboard, or AI workflow.<a href="https://www.cathaypacific.com/cx/zh_TW/inspiration/hong-kong/best-late-night-activities-hong-kong.html">cathaypacific</a></p>
<p>The third advantage is <strong>flexibility in how you use it</strong>. Thordata supports both API-based scraping and no-code dashboard-based scraping. Developers can integrate the API into scheduled jobs, while non-technical users can configure targets and retrieve output files from the dashboard.<a href="https://www.cathaypacific.com/cx/zh_TW/inspiration/hong-kong/best-late-night-activities-hong-kong.html">cathaypacific</a></p>
<h2>What to watch out for</h2>
<p>This is not a plug-and-play solution for every business problem. There are several practical limitations to consider.</p>
<h2>Data quality still matters</h2>
<p>A structured response does not guarantee that every field is correct or complete. For example, availability fields can conflict, prices can vary by location, and review summaries may not match your preferred definition of “positive” or “negative” feedback.</p>
<p>You should validate important fields before using them for automated decisions.</p>
<h2>You still need a data model</h2>
<p>The API gives you data, but it does not decide what your business should monitor. You need to define the products, competitors, regions, alert thresholds, update frequency, and ownership.</p>
<h2>Costs can grow quickly</h2>
<p>If you monitor thousands of products every hour, request volume can become significant. Start with a small set of high-value SKUs, measure the value of the alerts, and expand only when the workflow proves useful.</p>
<h2>Compliance is part of the design</h2>
<p>Only collect publicly accessible data that you are legally permitted to use. Review the target site’s terms of service, robots directives, privacy rules, and copyright constraints. Be especially careful with personal data, login-protected content, and content that you plan to republish.</p>
<h2>A realistic first version</h2>
<p>If I were building this for a small team, I would start with a narrow version:</p>
<ul>
<li>Monitor 20 to 50 Amazon products.</li>
<li>Run the job once per day.</li>
<li>Store every response as a timestamped snapshot.</li>
<li>Alert only on price drops above 10 percent, stockouts, and Buy Box seller changes.</li>
<li>Review the alerts for two weeks.</li>
<li>Remove products that never produce useful alerts.</li>
<li>Add more products or increase frequency only where the data leads to action.</li>
</ul>
<p>That keeps the project useful, affordable, and easy to explain to stakeholders.</p>
<h2>Who should consider it</h2>
<p>Thordata’s Web Scraper API is most useful when you have a repeatable need for structured public data from supported websites.</p>
<p>It is a good fit for:</p>
<ul>
<li>Ecommerce teams monitoring competitors and marketplace listings</li>
<li>Brands tracking pricing, availability, reviews, and Buy Box changes</li>
<li>Market research teams collecting product or content data</li>
<li>Data teams building dashboards and automated reporting</li>
<li>AI teams adding current web data to enrichment or research workflows</li>
</ul>
<p>It is less suitable if you only need to check one page once, or if your target website is not supported by an existing scraper template. In those cases, a general web extraction tool or a custom scraping solution may be more appropriate.</p>
<h2>Final thoughts</h2>
<p>The most useful way to evaluate Thordata’s Web Scraper API is not by asking, “Can it scrape the web?” Many tools can do that.</p>
<p>The better question is: <strong>Can it reliably turn a recurring business question into structured data that someone can act on?</strong></p>
<p>For an Amazon price monitor, the answer can be yes. The API provides prebuilt Amazon scraping logic and returns fields that map directly to common ecommerce monitoring needs. Your team still needs to define the business rules, validate the data, and build the alerting workflow—but it no longer needs to own every part of the scraping infrastructure.</p>
]]></content:encoded></item><item><title><![CDATA[When a Web API Is Better Than Another Scraper]]></title><description><![CDATA[I have written enough scrapers to know that the first version is rarely the hard part. You inspect a page, locate the selectors, extract a few fields, save…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/when-a-web-api-is-better-than-another-scraper</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/when-a-web-api-is-better-than-another-scraper</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Wed, 18 Nov 2026 06:19:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aeaad1ade0bb581c64929ad/cb5f31d3-0aa2-4d93-ac39-b6d7e2c2d4a9.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I have written enough scrapers to know that the first version is rarely the hard part.</p>
<p>You inspect a page, locate the selectors, extract a few fields, save the output as CSV, and feel productive. Then the site redesigns. A product page begins rendering its price through JavaScript. Requests start failing. Someone asks for the same data from five more domains. Suddenly, your “quick script” has become a small data-infrastructure project.</p>
<p>That experience changed how I approach web-data projects.</p>
<p>Now, before writing selectors, I ask a more practical question:</p>
<blockquote>
<p><strong>Is there an API that can return the structured data I need without making me maintain the collection layer?</strong></p>
</blockquote>
<p>Thordata’s Web Scraper API is one example of this approach. It is designed to collect structured data from supported websites through prebuilt or custom scrapers, while handling tasks such as dynamic rendering, request parameters, integrations, and webhooks.</p>
<h2>The problem is not getting data</h2>
<p>Getting data from a public web page is usually possible.</p>
<p>The harder question is whether you can keep getting it reliably.</p>
<p>A scraper has to deal with changing layouts, JavaScript-rendered content, retries, rate limits, proxies, browser behavior, and parsing rules. None of these tasks are especially glamorous, but together they can consume a surprising amount of engineering time.</p>
<p>More importantly, they often do not differentiate your product.</p>
<p>If you are building a price-monitoring dashboard, a market-research tool, a lead-enrichment workflow, or an AI application that needs fresh web context, your value is probably in the analysis and product experience—not in maintaining CSS selectors for every website you support.</p>
<p>That is where a managed Web Scraper API becomes interesting.</p>
<h2>What a Web Scraper API changes</h2>
<p>With a traditional scraping approach, the workflow often looks like this:</p>
<ol>
<li>Inspect the target page.</li>
<li>Write extraction logic.</li>
<li>Handle JavaScript rendering if needed.</li>
<li>Add retries, proxies, and rate-limit handling.</li>
<li>Parse the response.</li>
<li>Maintain the whole pipeline as the site evolves.</li>
</ol>
<p>With a managed Web Scraper API, much of that work can move behind an API boundary.</p>
<p>Thordata’s Web Scraper API supports prebuilt scrapers, dynamic rendering, request parameters, integrations, and webhooks. It is intended for use cases such as data collection, market research, price monitoring, and content aggregation.</p>
<p>Instead of receiving raw HTML and writing parsing logic yourself, the goal is to receive structured data—such as JSON or CSV—that can be sent directly into an analytics system, monitoring workflow, database, or AI pipeline.</p>
<p>That changes the engineering question from:</p>
<blockquote>
<p>“How do I extract this field from this page?”</p>
</blockquote>
<p>to:</p>
<blockquote>
<p>“Can I request the fields I need in a format my system can consume?”</p>
</blockquote>
<h2>A practical example: product monitoring</h2>
<p>Suppose you need to monitor competitor product pages.</p>
<p>The requirement might be simple:</p>
<blockquote>
<p>Every day, collect the product title, price, availability, rating, and product URL for a list of products.</p>
</blockquote>
<p>At first, a scraper seems like the obvious solution.</p>
<p>But then the edge cases arrive. Some pages load prices after JavaScript executes. Some products go out of stock. Some layouts differ by category or region. A redesign breaks your selectors. Your scheduled job starts returning incomplete records.</p>
<p>Before long, you are maintaining more than a scraper:</p>
<ul>
<li>A request queue</li>
<li>Retry and failure handling</li>
<li>Proxy or browser-rendering infrastructure</li>
<li>Multiple parsing rules</li>
<li>Monitoring and alerting</li>
<li>A process for updating extraction logic after site changes</li>
</ul>
<p>A managed API does not make data requirements disappear. But it can reduce the amount of infrastructure your team has to own.</p>
<p>With Thordata’s approach, you can define the data you need, submit a request through the API, and receive structured output for downstream systems. The service states that it handles web content scraping, dynamic page rendering, structured data parsing, IP rotation, browser simulation, and anti-scraping strategies.</p>
<h2>Structured output is the real payoff</h2>
<p>For many web-data projects, raw HTML is not the deliverable.</p>
<p>The deliverable is a clean record your application can use.</p>
<p>For a product-monitoring workflow, that might look conceptually like this:</p>
<pre><code class="language-plaintext">json
{
  "product_url": "https://example.com/product/123",
  "title": "Example Product",
  "price": 49.99,
  "currency": "USD",
  "availability": "in_stock",
  "rating": 4.6,
  "review_count": 128,
  "collected_at": "2026-11-18T10:30:00Z"
}
</code></pre>
<p>Once you have structured records, the downstream work becomes much simpler:</p>
<ul>
<li>Store records in a database</li>
<li>Detect price changes and trigger alerts</li>
<li>Build historical trend charts</li>
<li>Compare products across competitors</li>
<li>Feed clean context into an AI or RAG workflow</li>
<li>Let analysts filter and explore the data without touching HTML</li>
</ul>
<p>This is especially relevant for AI products. A model or agent does not necessarily benefit from another pile of unstructured page text. It benefits from consistent fields, timestamps, URLs, and structured entities that can be retrieved and reasoned over.</p>
<p>Thordata positions its Web Scraper API as a way to send data directly into analytics, monitoring, or AI workflows.</p>
<h2>Prebuilt scrapers vs. custom extraction</h2>
<p>One thing I appreciate about this category of tool is that it does not force an all-or-nothing decision.</p>
<p>Thordata offers pre-configured templates for sites including Amazon, YouTube, and LinkedIn, with coverage across more than 120 domains. Its dashboard includes a Web Scraper Store where users can search for tools by keyword, domain, or category, configure parameters, and begin collecting data.</p>
<p>For common websites and recurring workflows, a prebuilt scraper can be a strong starting point. You do not need to reinvent extraction logic for a domain that many teams already need to collect from.</p>
<p>For less common sites, the more interesting question is whether the platform supports custom extraction. Thordata describes its Web Scraper API as supporting both prebuilt and custom scrapers, which matters if your data source is niche or your required fields are specific.<a href="https://github.com/Thordata/Thoradata-Proxy-Network">github</a></p>
<p>In practice, I would start with the narrowest possible workflow:</p>
<ul>
<li>Choose one website.</li>
<li>Choose five to ten fields that actually matter.</li>
<li>Run a small test batch.</li>
<li>Validate field coverage and data quality.</li>
<li>Only then expand to a scheduled workflow.</li>
</ul>
<p>It is tempting to automate everything at once. It is usually better to prove that one workflow is reliable before building a larger pipeline around it.</p>
<h2>Where Python fits in</h2>
<p>If your team works in Python, the integration layer matters as much as the API itself.</p>
<p>Thordata provides an official Python SDK that offers a unified interface for its SERP API, Web Scraper Tasks, proxy network access, and related web-data services. The SDK includes support for asynchronous usage, type hints, and integrations aimed at data and AI tooling.</p>
<p>From an engineering perspective, that can make the difference between an API that is merely available and one that fits naturally into your existing stack.</p>
<p>A typical integration pattern might look like this:</p>
<pre><code class="language-plaintext">python
# Conceptual example
records = client.web_scraper.run(
    scraper="product_listing",
    parameters={
        "url": "https://example.com/product/123"
    }
)

for record in records:
    save_to_database(record)
</code></pre>
<p>The exact method names and parameters depend on the scraper and SDK version, but the architectural idea is straightforward: your application should not need to know how a page was rendered, which proxy was used, or how the HTML was parsed. It should consume a predictable record.</p>
<h2>What I would still validate</h2>
<p>No API removes the need for judgment.</p>
<p>Even if a provider handles collection and parsing, I would still validate a few things before relying on it in production:</p>
<ul>
<li>Are the fields I need actually available?</li>
<li>Is the data fresh enough for my workflow?</li>
<li>Is the output schema stable over time?</li>
<li>How are failed requests, partial results, and retries handled?</li>
<li>What does the cost look like at my expected volume?</li>
<li>Does my use case comply with the target site’s terms, permissions, and applicable regulations?</li>
</ul>
<p>Thordata states that its Web Scraper API uses a credit-based model and that users pay for successful results. Its listed plans include 5,000, 30,000, 150,000, and 750,000 credits.<a href="https://www.thordata.com/pricing/serpapi">thordata</a></p>
<p>That kind of model can make costs easier to reason about, especially for teams that do not want to operate scraping infrastructure around the clock. But “successful result” still needs a clear definition in your own workflow: a successful HTTP response is not necessarily a complete, accurate, or useful record.</p>
<h2>When I would still inspect the site</h2>
<p>I would not claim that every project should begin with an API.</p>
<p>Sometimes the best option is still to inspect the website.</p>
<p>I would go directly to DevTools when:</p>
<ul>
<li>The target site is not covered by an existing scraper</li>
<li>The available scraper does not expose the fields I need</li>
<li>The site exposes a clean internal JSON endpoint</li>
<li>I need highly specialized extraction logic</li>
<li>I already have a mature internal scraping stack and a good reason to keep it</li>
</ul>
<p>The point is not that APIs always win. The point is that HTML parsing should not automatically be the default.</p>
<h2>My current rule</h2>
<p>My rule is simple:</p>
<blockquote>
<p><strong>Do not build a scraper if a reliable API already gives you the same data. But do not choose an API just because it exists.</strong></p>
</blockquote>
<p>Start with the data requirement. Check for a documented API. Check whether a managed scraper covers the target site. Inspect the network requests. Only then decide whether you need to write extraction logic yourself.</p>
<p>Thordata’s Web Scraper API fits into that early evaluation step. It is not a replacement for thinking carefully about data quality, compliance, or product requirements. But for supported sites and repeatable workflows, it can prevent a team from spending weeks maintaining infrastructure that does not differentiate its product.</p>
<p>The best data pipeline is not necessarily the most impressive one.</p>
<p>It is the one your team can still reliably run six months later.</p>
]]></content:encoded></item><item><title><![CDATA[A Web API Is Only the Beginning: Designing a Useful Data Workflow for Your MVP]]></title><description><![CDATA[How to move from “we can fetch the data” to “our product can actually use it.” When planning a data-driven MVP, it is tempting to start with a simple…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/a-web-api-is-only-the-beginning-designing-a-useful-data-workflow-for-your-mvp</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/a-web-api-is-only-the-beginning-designing-a-useful-data-workflow-for-your-mvp</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Fri, 13 Nov 2026 07:38:50 GMT</pubDate><content:encoded><![CDATA[<p>How to move from “we can fetch the data” to “our product can actually use it.”</p>
<p>When planning a data-driven MVP, it is tempting to start with a simple question:</p>
<p>“Which API should we use?”</p>
<p>A more useful question is:</p>
<p>“What needs to happen between receiving the data and showing something valuable to the user?”</p>
<p>Those are different problems.</p>
<p>An API can give your application access to information. But access alone does not decide whether that information is complete, consistent, fresh enough, or useful for your product.</p>
<p>For an early-stage project, thinking through that gap can be more valuable than comparing a long list of tools.</p>
<h2>Start with the result, not the endpoint</h2>
<p>Imagine you are building a small tool that helps a team monitor product information across a set of permitted public sources.</p>
<p>The interface might look straightforward: a table of products, their latest observed prices, and a notification when something changes.</p>
<p>Before selecting an API, write down what one useful record should contain:</p>
<pre><code class="language-plaintext">json
{
  "source_url": "https://example.com/products/item-123",
  "product_name": "Example product",
  "price": 49.00,
  "currency": "USD",
  "observed_at": "2026-11-13T10:00:00Z"
}
</code></pre>
<p>This is an illustrative internal record, not a response from a particular provider.</p>
<p>Notice the questions hiding inside it:</p>
<ul>
<li>What happens if the price is missing?</li>
<li>Does the price refer to one item or a multipack?</li>
<li>Is the currency explicit?</li>
<li>When was the information observed?</li>
<li>Can the team trace a displayed value back to its source?</li>
</ul>
<p>These questions define the workflow your API needs to support.</p>
<h2>Separate collection from product logic</h2>
<p>A useful design exercise is to split the workflow into four stages:</p>
<pre><code class="language-plaintext">text
Collect → Validate → Transform → Deliver
</code></pre>
<p>Each stage should answer a different question.</p>
<h2>Collect: Can we obtain the information we need?</h2>
<p>Start by checking whether the source offers an official API or an authorized export that meets the project’s requirements.</p>
<p>If you are evaluating a web-data service, check the specific sources, fields, and collection methods it supports. “Supports this website” is not a precise enough requirement.</p>
<p>For example, receiving a video title and URL is different from receiving a media file that can be passed to a transcription service.</p>
<p>Write down the exact output you need before testing a tool.</p>
<h2>Validate: Is this record usable?</h2>
<p>For the example above, you might require:</p>
<ul>
<li>A source URL.</li>
<li>A recognizable product name.</li>
<li>A numeric price, or an explicit missing-value status.</li>
<li>An identifiable currency.</li>
<li>An observation timestamp.</li>
</ul>
<p>Do not silently convert an unknown price into zero. In a monitoring product, that could create a misleading alert.</p>
<p>Instead, define what should happen when a record is incomplete: skip it, flag it for review, or display a clear “not available” state.</p>
<h2>Transform: How does the data become useful?</h2>
<p>This is where your product’s own logic belongs.</p>
<p>You might normalize currencies, group related items, calculate changes, or decide which observations deserve a notification.</p>
<p>Try to keep those decisions separate from the collection provider’s response format.</p>
<p>One possible pattern is:</p>
<pre><code class="language-plaintext">text
Provider response
        ↓
Your internal record format
        ↓
Your product rules
</code></pre>
<p>The purpose is not to build an elaborate abstraction layer for a tiny MVP. It is to avoid spreading provider-specific field names and assumptions throughout the application.</p>
<h2>Deliver: What should the user actually see?</h2>
<p>Users do not need every field you collect.</p>
<p>For a monitoring workflow, a useful output might be:</p>
<p>“This item was observed at a lower price than in the previous successful check.”</p>
<p>That wording is more precise than claiming to know every price change that occurred between checks.</p>
<p>Design the user-facing statement around what your data actually establishes.</p>
<h2>Where a managed web-data API can fit</h2>
<p>Suppose your project requires structured information from supported public webpages rather than an internal database.</p>
<p>Thordata’s Web Scraper API is one option to evaluate for that collection stage. Its documentation describes prebuilt scrapers, dynamic rendering, configurable request parameters, and structured output such as JSON or CSV. Its product page also describes API and webhook delivery options.doc.thordata+1</p>
<p>That makes it relevant to a particular question:</p>
<p>“Can a managed service provide the source records my application needs?”</p>
<p>It does not automatically answer the next questions:</p>
<ul>
<li>Are the required fields available for my exact source?</li>
<li>How are missing fields represented?</li>
<li>What does one completed collection cost?</li>
<li>Can I identify and investigate failed jobs?</li>
<li>Do the collection method and intended use meet the applicable permissions and requirements?</li>
</ul>
<p>Those are evaluation questions, not details to postpone until after integration.</p>
<p>A collection service can be part of the workflow without becoming the architecture for the entire product.</p>
<h2>Test one complete workflow before expanding</h2>
<p>For an MVP, I would start with one source, one record type, and one user-facing outcome.</p>
<p>For example:</p>
<ol>
<li>Select a small set of source pages you are permitted to process.</li>
<li>Request the fields your feature needs.</li>
<li>Review the returned records against the source material.</li>
<li>Convert usable records into your internal format.</li>
<li>Apply one product rule.</li>
<li>Display the result with its observation time.</li>
</ol>
<p>Then inspect the failures.</p>
<p>Did a request fail, or did it return successfully without the required information?</p>
<p>Did two different URLs produce the same item?</p>
<p>Did an apparently valid value have the wrong meaning?</p>
<p>A request that completes is not necessarily a record your product can use. Treat those as separate outcomes in your test.</p>
<h2>Measure usable output, not just completed requests</h2>
<p>When comparing tools, define what “usable” means before looking at the results.</p>
<p>For this hypothetical MVP, a usable record might need to satisfy all of the following:</p>
<ul>
<li>It contains the required fields.</li>
<li>It passes your validation checks.</li>
<li>It matches the intended item.</li>
<li>It is recent enough for the feature.</li>
<li>It can be traced to an observation and source.</li>
</ul>
<p>Then track:</p>
<pre><code class="language-plaintext">text
Cost per usable record =
total evaluated collection cost / records that pass your checks
</code></pre>
<p>Keep the scope consistent. If you include retry costs for one provider, include them for the others. Record the source sample and test conditions alongside the result.</p>
<p>A small evaluation will not prove how a service performs everywhere. It can still tell you whether the service fits the workflow you are actually building.</p>
<h2>Keep the boundaries visible</h2>
<p>There are two boundaries worth documenting early.</p>
<p>The first is technical: what does the provider handle, and what remains your responsibility?</p>
<p>The second is permission: what data are you entitled to collect, store, and use for this project?</p>
<p>Do not treat successful access as a substitute for answering the second question. Build permission checks and retention decisions into the project requirements rather than assuming an API resolves them.</p>
<p>For personal information, sensitive material, or uncertain rights, get an appropriate review before expanding collection.</p>
<h2>Build the smallest trustworthy workflow</h2>
<p>You do not need a universal data platform to validate an MVP.</p>
<p>You need a narrow workflow whose inputs, transformations, and limitations you can explain.</p>
<p>Before committing to a tool, make sure you can answer:</p>
<ul>
<li>What exactly are we collecting?</li>
<li>What makes a record usable?</li>
<li>How do we detect missing or misleading data?</li>
<li>What will the user see when collection fails?</li>
<li>Can we trace the result back to its source?</li>
</ul>
<p>Then evaluate the API against those answers.</p>
<p>The goal is not simply to connect an endpoint. It is to turn an outside response into a product result that deserves the user’s trust.</p>
]]></content:encoded></item><item><title><![CDATA[A Simple SERP API Workflow for Weekly Search Visibility Reports]]></title><description><![CDATA[Track a small set of keywords, compare search-result snapshots, and turn changes into a useful weekly summary. Disclosure: I work with Thordata. This…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/a-simple-serp-api-workflow-for-weekly-search-visibility-reports</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/a-simple-serp-api-workflow-for-weekly-search-visibility-reports</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Wed, 11 Nov 2026 08:38:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aeaad1ade0bb581c64929ad/18dda45f-51d2-4db5-b1d5-c2846b63dd26.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Track a small set of keywords, compare search-result snapshots, and turn changes into a useful weekly summary.</p>
<p><em>Disclosure: I work with Thordata. This article was drafted with AI assistance. It describes a proposed workflow, not a completed benchmark or customer case study.</em></p>
<p>Checking a few search results manually is straightforward. Turning those checks into a consistent weekly report takes more planning.</p>
<p>You need to decide which keywords to track, keep the search settings consistent, save previous results, and distinguish meaningful changes from ordinary variation.</p>
<p>This article outlines a small workflow for doing that with a SERP API. The goal is not to build a complete SEO platform. It is to answer a narrower question:</p>
<p><strong>What changed in the search results for the keywords we care about?</strong></p>
<h2>1. Start with a small monitoring scope</h2>
<p>For a first version, keep the scope deliberately limited:</p>
<ul>
<li>Three to five keywords</li>
<li>One target country</li>
<li>One language</li>
<li>One search engine</li>
<li>One scheduled check per week</li>
</ul>
<p>For example, a small business might track:</p>
<p>Keyword: inventory software for small retailers</p>
<p>Target country: United States</p>
<p>Language: English</p>
<p>Search engine: Google</p>
<p>Frequency: Weekly</p>
<p>This is a configuration example, not a live search result.</p>
<p>Keep these settings consistent between runs. If you change the location, language, or search engine, record that change rather than treating the next result as directly comparable.</p>
<ol start="2">
<li>Collect a search-result snapshot A SERP API provides a programmatic way to retrieve search results for a query.</li>
</ol>
<p>Thordata’s SERP API is one option for this step. Its documentation describes selecting a search engine, configuring a keyword and country/language settings, and retrieving structured JSON or HTML output.</p>
<p>For an initial experiment, use the API Playground to inspect a response before building a scheduled integration. This lets you confirm which fields are available and how they are represented.</p>
<p>Do not assume that every response contains the same result types or that a field name from one provider will work with another.</p>
<ol start="3">
<li>Normalize the fields you actually need For a basic report, start with organic results rather than trying to process every element of the search page.</li>
</ol>
<p>Create a small internal record containing:</p>
<p>checked_at</p>
<p>keyword</p>
<p>search_engine</p>
<p>country</p>
<p>language</p>
<p>organic_position</p>
<p>page_title</p>
<p>page_url domain</p>
<p>These are suggested fields for your own storage model—not a claim about Thordata’s exact response schema.</p>
<p>Keeping an internal model separate from the raw API response makes the reporting logic easier to maintain.</p>
<p>It also helps to save the original response when appropriate, so you can investigate unexpected changes later.</p>
<ol start="4">
<li>Compare snapshots before asking AI to summarize them Use deterministic logic to calculate changes first.</li>
</ol>
<p>For each keyword, compare the current snapshot with the previous successful snapshot:</p>
<p>Did the tracked domain appear in the captured results?</p>
<p>Did its observed organic position change?</p>
<p>Did a different page from the same domain appear?</p>
<p>Which URLs entered or left the captured result set?</p>
<p>Keep “not found” separate from “request failed.”</p>
<p>If a domain is missing from the first ten captured organic results, the report should say exactly that. It should not claim that the website has disappeared from the search engine.</p>
<p>Similarly, a failed collection run should not produce a ranking-change alert.</p>
<ol start="5">
<li>Use AI for explanation, not measurement Once the comparison is complete, AI can help turn a structured change log into a readable summary.</li>
</ol>
<p>A useful prompt would be:</p>
<p>Summarize the search-result changes below for a small business owner.</p>
<p>Use only the supplied observations.</p>
<p>Separate:</p>
<ol>
<li>Observed changes</li>
<li>Items worth reviewing</li>
<li>Data limitations</li>
</ol>
<p>Do not invent explanations for ranking changes.</p>
<p>Do not attribute a change to an algorithm update without evidence.</p>
<p>If a collection run failed, describe the data as unavailable.</p>
<p>Keep the summary under 200 words.</p>
<p>The distinction matters: the comparison code determines what changed; the language model explains those observations.</p>
]]></content:encoded></item><item><title><![CDATA[Video Scraping API: What Data Can It Return and How Does It Work?]]></title><description><![CDATA[A video scraping API helps businesses and developers collect structured information from video-related web pages and platforms without manually opening…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/video-scraping-api-what-data-can-it-return-and-how-does-it-work</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/video-scraping-api-what-data-can-it-return-and-how-does-it-work</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Mon, 09 Nov 2026 08:58:56 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aeaad1ade0bb581c64929ad/e39b0ade-77a4-48b3-b654-b0fe7588a189.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A video scraping API helps businesses and developers collect structured information from video-related web pages and platforms without manually opening every page and copying data. Depending on the source and the API, it can return video titles, URLs, descriptions, captions, publication dates, creator information, engagement metrics, and other metadata.</p>
<p>However, not every video scraping API returns the same information. Some APIs focus on video search results, while others collect metadata from individual video pages. Certain services can also deliver video or audio files, but this is a separate capability that should not be confused with metadata extraction.</p>
<p>Understanding these differences is important when choosing a solution for social media monitoring, competitor research, video analytics, or AI dataset preparation.</p>
<p>This guide explains what a video scraping API returns, how the collection process works, which data fields matter, and how to evaluate different solutions.</p>
<p>What Is a Video Scraping API?</p>
<p>A video scraping API is an interface that allows applications to retrieve video-related information from supported websites or platforms in a structured format.</p>
<p>Instead of manually visiting video pages, a user submits an input, such as a video URL, search query, channel URL, or other supported identifier. The API processes the request and returns the available information in a format such as JSON.</p>
<p>For example, a marketing team may want to monitor videos related to a particular product. A video scraping API can help collect available video information and organize the results for further analysis.</p>
<p>A typical workflow looks like this:</p>
<p>Submit a supported input, such as a video URL or search query.</p>
<p>The service retrieves information from the supported source.</p>
<p>Relevant fields are extracted and organized.</p>
<p>The API returns structured results.</p>
<p>The application stores or processes the returned data.</p>
<p>The exact process and available fields depend on the provider, source platform, and collection method.</p>
<p>It is also important to distinguish a video scraping API from a video downloader or a search engine API. These tools may all involve video-related information, but they do not necessarily return the same output.</p>
<p>What Data Does a Video Scraping API Return?</p>
<p>The fields returned by a video scraping API depend on what it collects. Some services return search-result information, while others retrieve metadata from individual videos or provide access to media files.</p>
<p>The following categories are commonly relevant.</p>
<ol>
<li>Basic Video Information</li>
</ol>
<p>Basic video information helps identify and describe an individual video.</p>
<p>Common fields may include:</p>
<p>Video ID</p>
<p>Video URL</p>
<p>Video title</p>
<p>Description or caption</p>
<p>Publication date</p>
<p>Video duration</p>
<p>Thumbnail URL</p>
<p>Source platform</p>
<p>These fields are useful for building video catalogs, tracking content, and organizing records.</p>
<p>For example, a research team collecting videos about electric vehicles may use titles, descriptions, and publication dates to categorize content and analyze how topics change over time.</p>
<ol start="2">
<li>Creator and Channel Information</li>
</ol>
<p>Some video collection services can return information about the account or channel associated with a video.</p>
<p>Depending on the platform and available access, fields may include:</p>
<p>Creator ID</p>
<p>Username or channel name</p>
<p>Profile URL</p>
<p>Channel description</p>
<p>Available follower or subscriber counts</p>
<p>Related public profile information</p>
<p>This information can help businesses understand who publishes certain types of content and compare publishing activity across creators.</p>
<p>However, creator-level information and video-level information should be stored separately. A creator's profile attributes do not necessarily describe every video published by that creator.</p>
<ol start="3">
<li>Engagement Metrics</li>
</ol>
<p>Engagement data helps users understand how audiences interact with video content.</p>
<p>Depending on the platform, an API may return:</p>
<p>View counts</p>
<p>Like counts</p>
<p>Comment counts</p>
<p>Share counts</p>
<p>Other available engagement indicators</p>
<p>These fields can support social media monitoring, competitor analysis, and content performance research.</p>
<p>One important consideration is that engagement metrics change over time. A view count collected today may differ from the same video's view count next week.</p>
<p>For trend analysis, store the collection timestamp alongside the metric. This makes it possible to compare observations from different collection periods rather than treating a single value as permanent.</p>
<ol start="4">
<li>Captions, Subtitles, and Transcripts</li>
</ol>
<p>Some video data services can provide text associated with video content.</p>
<p>This may include:</p>
<p>Captions</p>
<p>Subtitles</p>
<p>Available transcripts</p>
<p>Descriptive text</p>
<p>Language information, where supported</p>
<p>These fields can be useful for content search, topic analysis, speech-related research, and AI workflows.</p>
<p>However, captions and transcripts are not guaranteed for every video. Some videos have no subtitles, some provide only automatically generated captions, and others may restrict access to transcript information.</p>
<p>A reliable workflow should distinguish between an unavailable transcript, an empty transcript, and a collection error.</p>
<ol start="5">
<li>Video Search Result Information</li>
</ol>
<p>A video scraping API may also return search-result information rather than metadata from the video page itself.</p>
<p>For example, a Google Videos result may contain:</p>
<p>Video title</p>
<p>Destination URL</p>
<p>Source website</p>
<p>Publication date</p>
<p>Snippet</p>
<p>Thumbnail</p>
<p>Video duration</p>
<p>Channel information</p>
<p>Key moments, where available</p>
<p>This type of output is useful for discovering videos and monitoring how video content appears in search results.</p>
<p>It should not be confused with a complete record from the underlying video platform. A search result containing a thumbnail and a link does not mean the API has retrieved the original video file.</p>
<ol start="6">
<li>Video and Audio Files</li>
</ol>
<p>Some video data services support the delivery of actual media files.</p>
<p>Depending on the product and the permitted access conditions, this may include:</p>
<p>Video files</p>
<p>Audio files</p>
<p>Associated media information</p>
<p>Media delivery is different from metadata extraction. A service that returns a video URL, title, or thumbnail does not necessarily provide the original media file.</p>
<p>Before choosing a provider, confirm whether the output includes downloadable files, metadata only, or both. Also verify the applicable copyright, licensing, and platform requirements for storing or reusing media.</p>
]]></content:encoded></item><item><title><![CDATA[The retrieval layer is the part of your RAG architecture that most deserves re-examination]]></title><description><![CDATA[Most RAG tutorials devote 80% of their content to embedding model selection, chunk size tuning and vector databases, while the retrieval layer that truly…]]></description><link>https://networkdataandaimodeltraining.hashnode.dev/the-retrieval-layer-is-the-part-of-your-rag-architecture-that-most-deserves-re-examination</link><guid isPermaLink="true">https://networkdataandaimodeltraining.hashnode.dev/the-retrieval-layer-is-the-part-of-your-rag-architecture-that-most-deserves-re-examination</guid><dc:creator><![CDATA[Camille Sha]]></dc:creator><pubDate>Fri, 06 Nov 2026 06:45:38 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6aeaad1ade0bb581c64929ad/cfde59e9-7e53-4570-a08b-9cfb077fa50c.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most RAG tutorials devote 80% of their content to embedding model selection, chunk size tuning and vector databases, while the retrieval layer that truly determines answer quality is often glossed over with just one line: "Fetch search results using the SERP API."</p>
<p>Anyone who has built production-grade AI applications will tell you: the retrieval layer is the messiest, most labor-intensive and least controllable layer. You have to handle proxy rotation, CAPTCHAs, SERP parsing, search engine discrepancies, timeout retries, while ensuring returned data is sufficiently structured so that the LLM can consume it directly without an extra round of cleansing. A clear trend in 2026 is that more and more teams opt to outsource this entire layer to dedicated search data infrastructure, rather than maintaining an ad-hoc stack of "search, crawl, cleanse, inject context" on their own.</p>
<p><strong>This article takes Thordata's SERP API as the starting point to discuss several engineering approaches for integrating real-time search data into RAG and Agent workflows, as well as the key issues that truly matter when making architectural decisions.</strong></p>
<p><strong><mark>What exactly is outsourced in search layer outsourcing</mark></strong></p>
<p><strong>Before discussing specific tools, let's first clarify what "outsourcing the retrieval layer" means. It involves at least three things:</strong></p>
<p>Proxying and anti-blocking. Direct requests to Google will be rate-limited or trigger CAPTCHA prompts after a few attempts. Production-grade retrieval requires residential proxy pools, session management, and request fingerprint spoofing. None of these relate to your AI business logic, yet the entire pipeline becomes unusable without them.</p>
<p>SERP parsing and structuring. The HTML structure of search results changes frequently, and the fields vary completely across different engines (Google, Bing, Yandex, DuckDuckGo). What you need is a stable JSON schema instead of fixing XPath every morning.</p>
<p>Abstraction of engines and vertical domains. When building Agents, the same search tool may need to cover multiple vertical segments simultaneously, including web pages, news, images, shopping, academics, flights and more. Self-encapsulation means maintaining a stack of fragile adapters.</p>
<p>Thordata's SERP API consolidates these three functions behind a single endpoint: it supports Google and its vertical engines including Images, News, Shopping, Maps, Local, Jobs, Scholar, Flights, Hotels and Trends, alongside Bing, Yandex and DuckDuckGo. It returns structured results via the same API key and a unified data envelope. Billing is based on the number of successful responses. The 7-day trial includes 500 responses. After the trial, the $18/month plan covers 15,000 responses (approximately $1.20 per 1,000 responses), and the unit price drops to $0.70 per 1,000 responses for volumes at the million-response level.</p>
<p><strong>Access Path 1: Direct API Call</strong></p>
<p>For teams already using LangChain or LlamaIndex, the most straightforward approach is to use the official integration packages instead of wrapping HTTP clients from scratch.</p>
<p>langchain-thordata exposes a Python client and a LangChain tool that can be directly added to the tools list of create_agent: from langchain.agents import create_agent; from langchain_thordata import ThorDataSearchTool; agent = create_agent(model, tools=[ThorDataSearchTool()]).</p>
<p>Switch vertical domains during search using the engine parameter, and pass engine-specific fields via params: result = tool.invoke({"query": "latest AI agent research", "engine": "google_news", "country": "us", "language": "en", "num": 5}).</p>
<p>It supports a fairly wide range of engines: for Google, this includes google_light, google_web, google_images, google_videos, google_news, google_shopping, google_local, google_maps, google_jobs, google_scholar, google_flights, google_hotels, google_trends, and google_ai_mode; for Bing, there are bing, bing_images, bing_news, bing_shopping, bing_maps; it also supports yandex and duckduckgo.</p>
<p>The integration package llama-index-tools-thordata-serp on the LlamaIndex side follows a schema-driven approach: each search parameter is validated against the engine's live schema before a request is sent, and unsupported fields are discarded directly instead of resulting in a 400 response after transmission. It comes with snapshots of 34 engines and supports remote schema updates. The returned JSON follows a fixed envelope structure containing ok / status / engine / data fields. The compact mode strips verbose metadata to reduce context consumption. For FunctionAgent scenarios, this means you do not need to instruct the model in the prompt that "this engine does not support sort_by, and that engine uses gl instead of country" — such safeguards are already implemented at the schema layer.</p>
<p><strong>Access Path 2: MCP, turning search into a native tool for Agents</strong></p>
<p>If your Agent runs in Claude Desktop, Cursor or other MCP-compatible clients, Thordata provides a remote MCP server. The connection method is to include the API key in the URL path: <a href="https://mcp.thordata.com/YOUR_API_KEY/mcp">https://mcp.thordata.com/YOUR_API_KEY/mcp</a>.</p>
<p>After configuration, the Agent can directly call tools such as search_web, search_news, and read_website. The value of MCP lies in no-code integration: you do not need to write adaptation layers for each Agent framework. Search capabilities are exposed as standard tools, and the client handles tool discovery and invocation orchestration.</p>
<p>However, one detail to note: the MCP server consumes SERP API quota on a per-call basis, sharing the same billing pool as direct API calls. In scenarios where the Agent autonomously decides how many times to make calls, you need to set proper limits on tool invocations or budget monitoring. Otherwise, a single "deep research" task may consume far more response credits than expected.</p>
<p><strong>Access Path 3: RAG Data Pipeline</strong></p>
<p>SERP API itself only handles "searching" and does not handle "converting search results into embeddable knowledge". The latter requires a step of scraping and cleaning. rag_data_pipeline.py in the Thordata Cookbook demonstrates the complete workflow: given a URL, it scrapes the page (supporting JS rendering and country parameters), cleans the HTML, outputs Markdown knowledge base files that can be directly fed into subsequent embedding and vector databases. The sample command is: python scripts/rag_data_pipeline.py --url "<a href="https://openai.com/research">https://openai.com/research</a>" --output "data/openai_research_kb.md" --country "us" --js-render.</p>
<p>The corresponding OpenAI Research RAG notebook demonstrates the complete RAG preprocessing pipeline, covering dynamic page crawling, HTML cleaning, and Markdown export. This workflow is suitable for offline or semi-offline RAG scenarios: you need to refresh the knowledge base periodically instead of performing real-time searches for every user query. The SERP API serves to discover source URLs, while the Web Scraper converts page content into clean Markdown.</p>
<p>For Agents with higher real-time requirements, a more natural approach is the three-stage pipeline described in the Bright Data article: the LLM extracts searchable factual queries from the input → the SERP API fetches real-time context → the final LLM generates cited responses with the retrieved results. This pattern is not tied to any specific vendor and works with any SERP API; the differences lie only in data freshness, level of structuring, and observability upon failures.</p>
<p><strong><mark>Key Metrics to Focus on During Selection</mark></strong></p>
<p>Articles comparing SERPs and search APIs available on the market usually start with "number of covered engines" and "price per thousand requests". These two metrics are certainly worth examining, yet they cannot differentiate production readiness. The following dimensions deserve stress testing during technical selection:</p>
<p>The stability and self-descriptiveness of the schema. If the upper limit of the num parameter of an engine changes, a new ai_mode field is added, or a vertical engine suddenly stops supporting sort — such changes that surface as 400 errors constitute production incidents. If they are absorbed or ignored on the client side via schema validation, they become acceptable degradations. The schema-driven design of Thordata offers clear advantages over raw HTTP clients in this regard.</p>
<p>Is the failure semantics clear? Billing based on successful responses sounds favorable, but you need to clarify: what counts as a timeout? What counts as an empty result? What counts as a case where some fields are missing while the HTTP status is 200? These details determine whether your retry strategy aligns with the cost model.</p>
<p>The normalization degree of structures returned by multiple engines. If Google and Bing use different field names for their organic arrays, your downstream parsing code will end up with branching logic. A unified data envelope is far more convenient for Agent scenarios than having a separate schema for each engine.</p>
<p>Where is the boundary for outsourcing the retrieval layer. Thordata itself positions itself as an all-in-one data layer of "search + scraping + proxy", suitable for teams that want one account to cover SERPs and page scraping. However, if what you need is an independent web index rather than real-time structuring from public search engines, the Brave Search API is a more targeted option; if you require search, extraction and multi-step research to be completed within a single API call, Tavily’s design is better aligned with that type of scenario. This is not a question of "which one is better", but a question of where you draw the boundaries of your pipeline.</p>
<p><strong><mark>A practical starting point</mark></strong></p>
<p>If you are building your first RAG or Agent with real-time retrieval, you do not need to pursue the most complex architecture from the start. A usable minimal pipeline is as follows: First, replace your handwritten requests.get search function with the Thordata tool from LangChain or LlamaIndex. Second, instruct the model in the prompt to cite the source URLs for retrieved results instead of simply restating the content. Third, add a simple cache layer for SERP calls (reuse results for identical queries within a short period) to bring down the cost curve upfront. Fourth, log the retrieval engine, status, response latency and number of result entries for every search, which will serve as the basis for later tuning engine selection and the num parameter.</p>
<p>The engineering quality of the retrieval layer is not determined by a single architecture review; instead, it converges gradually based on these observable call records. Outsource the tedious grunt work and keep the judgment in-house — this is likely the most cost-effective decision in RAG architectures in 2026.<a href="https://www.thordata.com/solutions/real-time-search-data-for-ai?op=mary&amp;from=Hashnode">https://www.thordata.com/solutions/real-time-search-data-for-ai?op=mary&amp;from=Hashnode</a></p>
]]></content:encoded></item></channel></rss>