How to scrape Cyber Security Agency of Singapore
Cyber Security Agency of Singapore is a government organization website. Developers typically collect information about government services, contact details, and organizational structure from its public pages.
Ujeebu scrapes any public website. Not listed here? Try any URL in the Playground or ask us about a site.
7 of 7 of our checks passed in the last 7 days (100%).
Last check 2026-12-03 23:02 UTC · last pass 2026-12-03 23:02 UTC · checked with our own requests, never customer data.
Extract API one call
Cyber Security Agency of Singapore articles as JSON with the Extract API
- title
- author
- pub_date
- text
- html
- images
curl -G 'https://api.ujeebu.com/extract' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/'
Send any Cyber Security Agency of Singapore article URL. The answer is {"article": {...}}: title, author, dates, the full text and HTML, images and the site name. Successful responses cost credits; blocked, timed-out and failed requests are free.
Run the code on this page with your own key: 5,000 free credits for 21 days, no card. Get a free API key →
Articles: the Extract API
Send any Cyber Security Agency of Singapore article URL to the Extract API and get the article itself: title, author, publication and update dates, the full text and HTML, the images and the site name, with no rules to write.
One call: GET /extract 5 credits an article
curl -G 'https://api.ujeebu.com/extract' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/'
The answer is {"article": {...}}; the Ujb-Credits header gives the cost. Try it in the Playground
What the answer holds
| Field | Type | Example |
|---|---|---|
article.title | text | Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2 |
article.author | text | Byline |
article.pub_date | date | 2026-11-17 00:00:00 |
article.modified_date | date | 2026-11-17 00:00:00 |
article.summary | text | Attackers are exploiting a high-severity vulnerability in Apache HTTP Server’s mod_http2 module to achieve remote code e... |
article.text | text | Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2 17 November 2026 Attackers are exploiting a high-... |
article.html | HTML | <h1>Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2</h1><p>17 November 2026</p><p>Attackers a... |
article.image | image URL | https://isomer-user-content.by.gov.sg/36/32c3e0b3-4d6c-44df-887d-85c7f3b10d68/Alert.jpg |
article.images | list of image URLs | null |
article.language | code | en |
article.site_name | text | Cyber Security Agency of Singapore |
article.url | URL | https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/ |
article.canonical_url | URL | https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/ |
article.is_article | number | 1 |
article.favicon | URL | https://isomer-user-content.by.gov.sg/36/c91f8061-3b48-4613-912b-e56011f53857/csafavicon.svg |
Sample output (real call on 2026-12-03, trimmed)
{
"article": {
"title": "Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2",
"author": "",
"pub_date": "2026-11-17 00:00:00",
"modified_date": "2026-11-17 00:00:00",
"summary": "Attackers are exploiting a high-severity vulnerability in Apache HTTP Server’s mod_http2 module to achieve remote code execution. Patch immediately.",
"text": "Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2 17 November 2026 Attackers are exploiting a high-severity vulnerability in Apache HTTP Server’s mod_http2 module to achieve remote code execution. Patch immediately. Background Apache has released security updates to address a high-severity vulnerab...",
"html": "<h1>Active Exploitation of Vulnerability in Apache HTTP Server's mod_http2</h1><p>17 November 2026</p><p>Attackers are exploiting a high-severity vulnerabil...",
"image": "https://isomer-user-content.by.gov.sg/36/32c3e0b3-4d6c-44df-887d-85c7f3b10d68/Alert.jpg",
"images": null,
"language": "en",
"site_name": "Cyber Security Agency of Singapore",
"url": "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/",
"canonical_url": "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/",
"is_article": 1,
"favicon": "https://isomer-user-content.by.gov.sg/36/c91f8061-3b48-4613-912b-e56011f53857/csafavicon.svg"
}
}
Code
Complete scripts: set the UJEEBU_API_KEY environment variable and run them as they are. Each one makes the call above and prints the main fields of the answer, and prints the credits the request cost (the Ujb-Credits response header) on stderr. A non-200 answer stops the script with the API's error message.
Articles (Extract API)
Extracts the article above and prints its title, author, date and the start of its text.
pip install ujeebu-python==0.1.5 # Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
# GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
# Uses the official SDK ujeebu-python 0.1.5: pip install ujeebu-python==0.1.5
# Run: UJEEBU_API_KEY=your_key python3 csa_article_sdk.py
import json
import os
import sys
import requests
from ujeebu_python import UjeebuClient
API_KEY = os.environ.get("UJEEBU_API_KEY")
URL = "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/"
PARAMS = {} # a query string: booleans as "true"
if not API_KEY:
sys.exit("Set the UJEEBU_API_KEY environment variable.")
client = UjeebuClient(api_key=API_KEY)
try:
response = client.extract(URL, params=PARAMS)
except requests.RequestException as error:
sys.exit(f"Request failed: {error}")
if response.status_code != 200:
try:
message = response.json().get("message", response.text)
except ValueError:
message = response.text
sys.exit(f"HTTP {response.status_code}: {str(message)[:300]}")
print(f"Ujb-Credits: {response.headers.get('Ujb-Credits')}", file=sys.stderr)
article = response.json()["article"]
print(article.get("title"))
print(article.get("author"), article.get("pub_date"))
print((article.get("text") or "")[:500])
# every field: print(json.dumps(article, indent=2, ensure_ascii=False))
npm install @ujeebu-org/ujeebu-sdk@0.1.2 // Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
// GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
// Uses the official SDK @ujeebu-org/ujeebu-sdk 0.1.2: npm install @ujeebu-org/ujeebu-sdk@0.1.2
// Run: UJEEBU_API_KEY=your_key node csa_article_sdk.mjs
import { UjeebuClient } from '@ujeebu-org/ujeebu-sdk';
const API_KEY = process.env.UJEEBU_API_KEY;
const ARTICLE_URL = "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/";
const PARAMS = {};
if (!API_KEY) {
console.error('Set the UJEEBU_API_KEY environment variable.');
process.exit(1);
}
const client = new UjeebuClient(API_KEY);
// client.extract POSTs the URL and the parameters to /extract as JSON
let res;
try {
res = await client.extract(ARTICLE_URL, PARAMS);
} catch (err) {
const status = err.response?.status ?? 'error';
const message = err.response?.data?.message ?? err.message;
console.error(`HTTP ${status}: ${String(message).slice(0, 300)}`);
process.exit(1);
}
console.error(`Ujb-Credits: ${res.headers['ujb-credits']}`);
const { article } = res.data;
console.log(article.title);
console.log(article.author, article.pub_date);
console.log((article.text ?? '').slice(0, 500));
// every field: console.log(JSON.stringify(article, null, 2));
pip install requests # Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
# GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
# Run: UJEEBU_API_KEY=your_key python3 csa_article.py (pip install requests)
import json
import os
import sys
import requests
API_URL = "https://api.ujeebu.com/extract"
API_KEY = os.environ.get("UJEEBU_API_KEY")
URL = "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/"
PARAMS = {}
if not API_KEY:
sys.exit("Set the UJEEBU_API_KEY environment variable.")
try:
response = requests.get(API_URL, headers={"ApiKey": API_KEY}, params={"url": URL, **PARAMS}, timeout=180)
except requests.RequestException as error:
sys.exit(f"Request failed: {error}")
if response.status_code != 200:
try:
message = response.json().get("message", response.text)
except ValueError:
message = response.text
sys.exit(f"HTTP {response.status_code}: {str(message)[:300]}")
print(f"Ujb-Credits: {response.headers.get('Ujb-Credits')}", file=sys.stderr)
article = response.json()["article"]
print(article.get("title"))
print(article.get("author"), article.get("pub_date"))
print((article.get("text") or "")[:500])
# every field: print(json.dumps(article, indent=2, ensure_ascii=False))
// Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
// GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
// Run: UJEEBU_API_KEY=your_key node csa_article.mjs (Node.js 18 or later)
const API_KEY = process.env.UJEEBU_API_KEY;
const ARTICLE_URL = "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/";
const PARAMS = {};
if (!API_KEY) {
console.error('Set the UJEEBU_API_KEY environment variable.');
process.exit(1);
}
const query = new URLSearchParams({ url: ARTICLE_URL, ...PARAMS });
const res = await fetch(`https://api.ujeebu.com/extract?${query}`, {
headers: { ApiKey: API_KEY },
signal: AbortSignal.timeout(180000),
});
const text = await res.text();
if (res.status !== 200) {
let message = text;
try {
message = JSON.parse(text).message ?? text;
} catch {}
console.error(`HTTP ${res.status}: ${String(message).slice(0, 300)}`);
process.exit(1);
}
console.error(`Ujb-Credits: ${res.headers.get('ujb-credits')}`);
const { article } = JSON.parse(text);
console.log(article.title);
console.log(article.author, article.pub_date);
console.log((article.text ?? '').slice(0, 500));
// every field: console.log(JSON.stringify(article, null, 2));
#!/usr/bin/env bash
# Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
# GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
# Run: UJEEBU_API_KEY=your_key bash csa_article.sh (curl 7.76 or later)
set -euo pipefail
curl -sS --fail-with-body --max-time 180 -D headers.txt -G 'https://api.ujeebu.com/extract' \
-H "ApiKey: ${UJEEBU_API_KEY:?Set the UJEEBU_API_KEY environment variable.}" \
--data-urlencode 'url=https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/'
echo
grep -i '^ujb-credits' headers.txt >&2
<?php
// Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
// GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
// Run: UJEEBU_API_KEY=your_key php csa_article.php (PHP 7.4 or later with curl)
$apiKey = getenv('UJEEBU_API_KEY') ?: exit("Set the UJEEBU_API_KEY environment variable.\n");
$query = [
'url' => 'https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/',
];
$ch = curl_init('https://api.ujeebu.com/extract?' . http_build_query($query));
$headers = [];
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 180,
CURLOPT_HTTPHEADER => ['ApiKey: ' . $apiKey],
CURLOPT_HEADERFUNCTION => function ($ch, $line) use (&$headers) {
if (strpos($line, ':') !== false) {
[$k, $v] = explode(':', $line, 2);
$headers[strtolower(trim($k))] = trim($v);
}
return strlen($line);
},
]);
$body = curl_exec($ch);
if ($body === false) {
fwrite(STDERR, 'Request failed: ' . curl_error($ch) . "\n");
exit(1);
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($status !== 200) {
$message = json_decode($body, true)['message'] ?? $body;
fwrite(STDERR, "HTTP $status: " . substr((string) $message, 0, 300) . "\n");
exit(1);
}
fwrite(STDERR, 'Ujb-Credits: ' . ($headers['ujb-credits'] ?? '?') . "\n");
$article = json_decode($body, true)['article'];
echo $article['title'] ?? '', "\n", $article['author'] ?? '', ' ', $article['pub_date'] ?? '', "\n", substr((string) ($article['text'] ?? ''), 0, 500), "\n";
// every field: echo json_encode($article, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), "\n";
go mod init scraper && go get github.com/ujeebu/ujeebu-go@v0.1.8 // Extract a Cyber Security Agency of Singapore article with the Ujeebu Extract API.
// GET /extract with the article URL: the API answers {"article": {...}} with the title, author, dates, full text and HTML, images and site name.
// Uses the official SDK github.com/ujeebu/ujeebu-go v0.1.8: go mod init scraper && go get github.com/ujeebu/ujeebu-go@v0.1.8
// Run: UJEEBU_API_KEY=your_key go run csa_article.go
package main
import (
"encoding/json"
"errors"
"fmt"
"os"
"time"
ujeebu "github.com/ujeebu/ujeebu-go"
)
const articleURL = "https://www.csa.gov.sg/alerts-and-advisories/alerts/al-2026-164/"
func fail(format string, args ...any) {
fmt.Fprintf(os.Stderr, format+"\n", args...)
os.Exit(1)
}
func short(s string) string {
if len(s) > 300 {
return s[:300]
}
return s
}
func main() {
apiKey := os.Getenv("UJEEBU_API_KEY")
if apiKey == "" {
fail("Set the UJEEBU_API_KEY environment variable.")
}
client, err := ujeebu.NewClient(apiKey, ujeebu.WithTimeout(180*time.Second))
if err != nil {
fail("%v", err)
}
p := ujeebu.ExtractParams{URL: articleURL}
// the int is the credits the request cost (the Ujb-Credits header), not an HTTP status
article, credits, err := client.Extract(p)
if err != nil {
var apiErr *ujeebu.APIError
if errors.As(err, &apiErr) {
fail("HTTP %d: %s", apiErr.StatusCode, short(apiErr.Message))
}
fail("Request failed: %v", err)
}
fmt.Fprintf(os.Stderr, "Ujb-Credits: %d\n", credits)
enc := json.NewEncoder(os.Stdout)
enc.SetEscapeHTML(false)
enc.SetIndent("", " ")
if err := enc.Encode(article); err != nil {
fail("Cannot print the article: %v", err)
}
}
SDK tabs use the official Ujeebu SDKs (ujeebu-python 0.1.5, @ujeebu-org/ujeebu-sdk 0.1.2, github.com/ujeebu/ujeebu-go v0.1.8); there is no PHP SDK, so the PHP tab calls the API with curl. For agents and scripts, the same status and settings are at /scrape/csa.json.
Try it yourself
Run this on Cyber Security Agency of Singapore with your own key
Get a free API key, set UJEEBU_API_KEY and run any script above as it is. 5,000 free credits for 21 days, no card.
Settings that work today
From our health checks over the last 7 days: the cheapest settings that return the real page most of the time.
| Endpoint | /scrape |
|---|---|
js | true |
| Cost | up to 5 credits a request (only HTTP 200 and 404 are billed; blocked, timed-out and failed requests are free) |
Collect detail page URLs from listing pages first, then fetch each detail page. Our checks run with JavaScript rendering on (js=true): keep it on.
What people build with Cyber Security Agency of Singapore data
- Research datasetsBuild datasets of public pages for analysis, search or LLM pipelines.More on this use case
Limits and etiquette
- Public pages only. Pages behind a login, and data shown only to signed-in users, are out of scope.
- Keep the rate modest: fetch pages one after another or with low concurrency, and cache what you already have.
- robots.txt of www.csa.gov.sg (read 2026-12-03): public pages allowed for generic crawlers; no crawl delay set.
- Read Cyber Security Agency of Singapore's terms of service before you collect data at scale, and do not collect personal data you have no basis to process. This guide is not legal advice.
Questions
Can you scrape Cyber Security Agency of Singapore with Ujeebu?
Yes. 7 of 7 checks of public Cyber Security Agency of Singapore pages passed in the last 7 days with the settings on this page.
Which settings work for Cyber Security Agency of Singapore?
Call /scrape with js=true.
How many credits does a Cyber Security Agency of Singapore request cost?
With these settings a request costs up to 5 credits. Only responses with HTTP 200 or 404 are billed: a blocked or timed-out request is free.
How do I get the full text of Cyber Security Agency of Singapore articles?
Send the article URL to the Extract API (GET /extract?url=<article>). It returns the title, author, publication and update dates, the full text and HTML, the images and the site name as JSON, with no rules to write: 5 credits an article. Only successful responses are billed.
Is it allowed to scrape Cyber Security Agency of Singapore?
Its robots.txt allows generic crawlers on the page types in this guide. Collect public pages only, read Cyber Security Agency of Singapore's terms of service, keep your request rate modest and do not collect personal data you have no basis to process. This is not legal advice.
How fresh is this page?
The status and settings come from our own health checks of csa.gov.sg, which run around the clock. Last check: 2026-12-03 23:02:43 UTC; last pass: 2026-12-03 23:02:43 UTC.