Extract API: Turn Web Pages into Agent-Ready Data

The Road to Next

Sponsored

Stay valuable in the AI era: build senior-level engineering skills, master React and Next.js, and go from frontend to full-stack by creating real-world SaaS products.

Orca or Herdr for managing your AI agents?

I use Herdr, but I'm always open to changes, especially in a field that moves this quickly. Let's research both and see how they compare.

show video of browsing search results for herdr vs orca

It’s 2026, so we’re not doing this by manually scrolling through search results like in the old days. We'll ask an AI agent to research them and compare their features and limitations, and recommend one. We want the sources it used and the reasons for its choice too.

show video of running the prompt in the T3 app:

"Research Orca and Herdr. Check out their official documentation, relevant sources and compare their features and limitations. Then, pick one. Include the sources and the reasoning for your choice."

So, let's look at what happens behind the scenes.

show SerpApi's MCP in the T3 app

I've connected SerpApi's MCP server to the T3 app. This gives my agent access to extra tools to improve its research skills. SerpApi handles the search, and its new Extract API allows the agent to extract the content from those public pages.

show the image below when presenting the points

  1. First, the agent searches for relevant public web pages about Orca and Herdr.
  2. It then uses SerpApi's Extract API to retrieve their content as Markdown and saves it locally. It also supports JSON or raw HTML.
    1. In this example, we're using the Scrape mode to extract the content from public pages. But it also has 2 additional modes: map and crawl. Map discovers URLs across a site, whereas Crawl follows links within the site and extracts the pages' content.
  3. The agent uses the extracted material to compare the tools and justify its recommendation.

Looking at our task, we can see the sources it used, the extracted documentation, and a comparison of the features and limitations.

The agent recommends Orca, mainly for its workflow around reviewing changes and giving feedback to coding agents. It also covers the limitations of both tools and explains when Herdr TUI would be a better choice. Although I'm happy with Herdr, I'll probably give Orca a go to see how they both compare.

Coming back to Extract, its benefit is that it lets you fetch and parse public web pages without having to build and maintain your own infrastructure or glue together multiple tools.

Our example is a simple research task, but there are quite a few things that you can build. Some examples include monitoring product or market updates, researching competitor content for SEO, or feeding public documentation into an internal knowledge base.

For example, I could schedule a workflow to check Herdr's release notes each week, compare them with the previous ones, and highlight the new features that are most relevant to my coding workflow.

I could also add the extracted docs to my internal knowledge base so I can ask questions about Herdr without having to repeat the whole research process.

And if you're not a fan of MCPs, you can use Extract directly from your code or through SerpApi’s CLI. Here’s an example request that extracts the content of one of my articles.

The API endpoint is https://serpapi.com/search?engine=extract. In this example, the complete endpoint would be:

https://serpapi.com/search.json?engine=extract&url=https://catalins.tech/selfhost-with-dokku-hetzner-cloudflare&api_key=<API_KEY>

Replace <API_KEY> with your key.

0:00
/0:19

Here’s my article and the JSON response. It contains the article’s content as Markdown, plus metadata and links. The data is ready to be used by an application or AI agents.

The new Extract API is a much needed tool, especially in the AI era. Most of the information agents need and use live on public web pages. Since the internet was created long before AI, and designed primarily for people to browse, agents need a better way to consume the content. Extract makes that information available in a better structured format for the agents and applications to work with.

The Road to Next

Sponsored

Stay valuable in the AI era: build senior-level engineering skills, master React and Next.js, and go from frontend to full-stack by creating real-world SaaS products.