minifetch-api 1.7.0 → 1.7.1
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.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</a>
|
|
6
6
|
</div>
|
|
7
7
|
|
|
8
|
-
**[Minifetch](https://minifetch.com) is a hosted toolkit for web developers and AI agents.
|
|
8
|
+
**[Search, scrape, extract & SEO audit web pages. Minifetch](https://minifetch.com)** is a hosted toolkit for web developers and AI agents. Pay per fetch, no subscription.
|
|
9
9
|
|
|
10
10
|
- ✅ **Always pay-per-fetch at competitive prices.**
|
|
11
11
|
- ✅ [Sign up](https://minifetch.com/dashboard) for an account & get free starter credits. 🎉🎉
|
|
@@ -77,10 +77,13 @@ All API methods default to POST unless you set options to `{ method: 'GET' }` an
|
|
|
77
77
|
The `checkAndExtract` methods check the target URL's `robots.txt` file to ensure its not blocked and tell us your preferred crawl delay (defaults to 1 second between requests to your domain). So fetching 10 URLs takes at least 10 seconds to complete by default. This is by design, so Minifetch never hammers your server or slows it down for your real users. If you own the site and want to allow Minifetch access or to set custom rules for it, read [How To Unblock Minifetch](https://minifetch.com/tutorials/unblock-minifetch).
|
|
78
78
|
|
|
79
79
|
```js
|
|
80
|
-
await client.searchByKeyword("green tea");
|
|
80
|
+
await client.searchByKeyword("green tea", options);
|
|
81
81
|
// Price: $0.002
|
|
82
82
|
// Keyword web search by Ceramic.ai that returns ranked results as
|
|
83
83
|
// structured JSON: a title, URL, and text snippet per result.
|
|
84
|
+
// Options:
|
|
85
|
+
// { limit: 10 } - defaults to 10 results, set to 1-10
|
|
86
|
+
// { descriptionLength: 750 } - defaults to 750, set to 0-5000
|
|
84
87
|
|
|
85
88
|
await client.checkAndExtractUrlMetadata(url, options);
|
|
86
89
|
// Price: $0.002
|
package/package.json
CHANGED