minifetch-api 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,12 +7,12 @@
7
7
 
8
8
  **Fetch & extract data from web pages.** [Minifetch.com](https://minifetch.com) provides composable extraction APIs for humans and AI Agents-- making web pages simple to access.
9
9
 
10
- - **✅ [Sign up](https://minifetch.com/dashboard) for an account and get your first 125-250 fetches for free. 🎉🎉**
10
+ - **[Sign up](https://minifetch.com/dashboard) for an account and get your first 125-250 fetches for free. 🎉🎉**
11
11
  - ✅ Always pay-as-you-go at competitive prices.
12
12
  - ⛔ No charge for blocked pages (403 errors).
13
13
 
14
14
  ---
15
- **👉 [Dashboard](https://minifetch.com/dashboard) | [Full API docs](https://minifetch.com/docs/api) | [LLMs.txt](https://minifetch.com/llms.txt) | Questions? Join our [Discord]([Discord](https://discord.gg/EM6ET8Dshm))**
15
+ **👉 [Dashboard](https://minifetch.com/dashboard) | [Full API docs](https://minifetch.com/docs/api) | [LLMs.txt](https://minifetch.com/llms.txt) | Questions? Join our [Discord](https://discord.gg/EM6ET8Dshm)**
16
16
 
17
17
 
18
18
 
@@ -56,7 +56,7 @@ try {
56
56
  const url = "example.com";
57
57
  const response = await client.checkAndExtractUrlPreview(url);
58
58
  // 200 "ok" responses
59
- console.log("data: ", response.data);
59
+ console.log(response);
60
60
  } catch (err) {
61
61
  // No charge for errors or 403 blocked urls!
62
62
  console.log(err);
@@ -76,8 +76,7 @@ client.checkAndExtractUrlPreview(url);
76
76
 
77
77
  // Extracts a clean, token-efficient content summary as markdown from a URL.
78
78
  // Removes ads, nav, scripts. More efficient than raw HTML fetches for LLMs.
79
- // Options:
80
- // { includeMediaUrls: true }, defaults to false.
79
+ // Options: { includeMediaUrls: true } - defaults to false.
81
80
  client.checkAndExtractUrlContent(url, options);
82
81
 
83
82
  // Extracts all links from a URL categorized by type (internal/external/anchor).
@@ -86,12 +85,11 @@ client.checkAndExtractUrlLinks(url);
86
85
 
87
86
  // Extracts rich structured metadata from a URL:
88
87
  // meta tags, json-ld, images, headings, response headers, + more.
89
- // Perfect for SEO research or metadata indexing & analysis. Largest
90
- // response size of client methods. Setting verbosity to "full" is the drop-in
91
- // replacement for the [`url-metadata`](https://www.npmjs.com/package/url-metadata) package.
88
+ // Setting verbosity to "full" is the drop-in replacement for the
89
+ // [`url-metadata`](https://www.npmjs.com/package/url-metadata) package.
92
90
  // Options:
93
- // { verbosity: "full" }, defaults to "standard"
94
- // { includeResponseBody: true }, defaults to false
91
+ // { verbosity: "full" } - defaults to "standard"
92
+ // { includeResponseBody: true } - defaults to false
95
93
  client.checkAndExtractUrlMetadata(url, options);
96
94
 
97
95
  // For max control, you can also use the following methods directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minifetch-api",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Minifetch.com API Client. Fetch & extract data from web pages. For AI Agents & SEO research.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",