Skip to content
Skills Library
Programming · Tool integration

satibot-http-fetch

/satibot-http-fetch

Fetch website content via HTTP/HTTPS requests in SatiBot. Use this when the bot needs to retrieve web content, scrape pages, or call external APIs.

Repository
satibot ↗
Licence
MIT
Last repository change
02.05.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.05.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Fetch website content via HTTP/HTTPS requests in SatiBot. Use this when the bot needs to retrieve web content, scrape pages, or call external APIs.

Original author description

Fetch website content via HTTP/HTTPS requests in SatiBot. Use this when the bot needs to retrieve web content, scrape pages, or call external APIs.

How it works

  1. When to Use This Skill
  2. HTTP Client
  3. Fetch HTML Example
  4. Common Status Codes
  5. Best Practices
Original SKILL.md headings · 115 lines, 335 words
SKILL.md preview
---
name: satibot-http-fetch
description: Fetch website content via HTTP/HTTPS requests in SatiBot. Use this when the bot needs to retrieve web content, scrape pages, or call external APIs.
---

# HTTP Fetch Skill

This skill documents how to make HTTP requests in SatiBot using the built-in HTTP client.

## When to Use This Skill

Use this when:

- Fetching content from URLs
- Calling external APIs
- Scraping web pages
- The user asks to fetch or retrieve web content

## HTTP Client

SatiBot provides an HTTP client in `libs/http/src/http.zig`:

```zig
const http = @import("http");
```

### Basic Usage

```zig
var client = try http.Client.init(allocator);
defer client.deinit();

// GET request
var response = try client.get(url, &[_]std.http.Header{});
defer response.deinit();

// POST request
var response = try client.post(url, headers, body);
defer response.deinit();
```

### Response Structure

```zig
const response: http.Response = .{
    .status: std.http.Status,
    .body: []u8,  // Caller must free this
    .allocator: std.mem.Allocator,
};
```

Check status with:

```zig
if (response.status == .ok) {
    // Success
}
```

### Headers

```zig
const headers = &[_]std.http.Header{
    .{ .name = "Content-Type", .value = "application/json" },
    .{ .name = "Authorization", .value = "Bearer token" },
};
```

### Connection Settings

```zig
const settings = http.ConnectionSettings{
    .connect_timeout_ms = 30000,
    .request_timeout_ms = 120000,
    .read_timeout_ms = 60000,
    .keep_alive = false,
};

var client = try http.Client.initWithSettings(allocator, settings);
```

## Fetch HTML Example

```zig
fn fetchHtml(allocator: std.mem.Allocator, url: []const u8) ![]u8 {
    var client = try http.Client.init(allocator);
    defer client.deinit();

    var response = try client.get(url, &[_]std.http.Header{
        .{ .name = "User-Agent", .value = "SatiBot/1.0" },
    });
    defer response.deinit();

    if (response.status != .ok) {
        return error.HttpError;
    }

    return try allocator.dupe(u8, response.body);
}
```

## Common Status Codes

| Status | Meaning |
|--------|---------|
| `.ok` | 200 - Success |
| `.not_found` | 404 - Resource not found |
| `.too_many_requests` | 429 - Rate limited |
| `.internal_server_error` | 500 - Server error |

## Best Practices

1. Always call `defer client.deinit()` after init
2. Always call `defer response.deinit()` after getting response
3. Use appropriate timeouts for the operation
4. Set User-Agent header for identification
5. Handle non-2xx status codes explicitly
6. Use `allocator.dupe()` if you need to keep the body after response is freed

Versions

The database has no other skills named satibot-http-fetch.

Database snapshot: 13.11.2026 · package version 8ebc88f72e51 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95satibot-codebase
    Quick reference for understanding the SatiBot project structure, key files, and common patterns. Use this when working on this codebase to avoid re-exploring.
  • 100https-downgrade
    Use when auditing a site's internal and external links for protocol consistency, migrating a site from HTTP to HTTPS, or reviewing hardcoded URLs in a codebase that may use `http://` instead of `https://`.
  • 100httpie
    Make HTTP requests using the HTTPie CLI (`http` and `https` commands). Use this skill whenever the user wants to send HTTP requests from the terminal, test or debug APIs, scrape HTML or web content, upload files, use bearer/basic/digest authentication, download files, manage…
  • 100http-to-https
    Use when checking whether a web server is configured to redirect all HTTP traffic to HTTPS.
  • 100bun-http-server
    Use when building HTTP servers with Bun.serve, handling requests/responses, implementing routing, creating REST APIs, or configuring fetch handlers.
  • 100https-outcalls
    Make HTTPS requests from canisters to external web APIs. Covers replicated, non-replicated and flexible outcalls, transform functions for consensus, both cycle pricing versions (legacy and pay-as-you-go via ic0.cost_http_request_v2), response size limits, and idempotency…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.