Home · APIs · Web page extraction · Smart page extract

Smart page extract API

One request, one key: POST /v1/util/smart-extract. The fields below are read from a real answer captured 19 November 2026, with the value each field had (long text cut, lists cut to three items); a call can return more or fewer fields depending on what the source holds. It is not invented.

Price

2 credits a call. One call is about $0.0196 and 1,000 calls are about $19.60 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it

This call is not in the free browser demo: it needs a key. A free key (100 credits, no card) is at the trial page.

What it returns

You send:

{
  "url": "https://www.lennysnewsletter.com/p/how-to-build-product-sense"
}

FieldTypeValue in the captured answer
urlstring(text, not shown here)
platformstringweb
extracted_atstring2026-11-19T23:05:49.173173+00:00
titlestringLenny's Newsletter | Substack
descriptionstring(text, not shown here)
thumbnail_urlstring(text, not shown here)

Measured on that call: 1979 ms.

Code

curl

curl -X POST https://api.foxapis.com/v1/util/smart-extract \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.lennysnewsletter.com/p/how-to-build-product-sense"}'

Python

import requests

r = requests.post(
    "https://api.foxapis.com/v1/util/smart-extract",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://www.lennysnewsletter.com/p/how-to-build-product-sense"},
)
print(r.json())

JavaScript

const r = await fetch("https://api.foxapis.com/v1/util/smart-extract", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://www.lennysnewsletter.com/p/how-to-build-product-sense"}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "Smart page extract",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/util/smart-extract",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"url\":\"https://www.lennysnewsletter.com/p/how-to-build-product-sense\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

More in this category: Web page extract

Same category: Web page extraction · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.