How to scrape Coursera
Coursera is a website that publishes articles and content across multiple sections. Developers typically collect article text, metadata, author information, and navigation data 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
Coursera 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.coursera.org/articles/ai-productivity-tools'
Send any Coursera 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 Coursera 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.coursera.org/articles/ai-productivity-tools'
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 | 24 AI Tools for Work to Increase Productivity |
article.author | text | Coursera Staff |
article.pub_date | date | 2025-02-04 00:00:00 |
article.modified_date | date | 2026-03-04 00:00:00 |
article.summary | text | AI tools for work can help you with project management, scheduling, collaboration, and generating content like text and... |
article.text | text | AI tools for work can help you with project management, scheduling, collaboration, and generating content like text and... |
article.html | HTML | <p>AI tools for work can help you with project management, scheduling, collaboration, and generating content like text a... |
article.image | image URL | https://images.ctfassets.net/wp1lcwdav1p1/7M9tuFHTEpWJF5dFyckoYw/47da290001640eee252b6d59385c7956/GettyImages-607477463.... |
article.images | list of image URLs | null |
article.language | code | en |
article.site_name | text | Coursera |
article.url | URL | https://www.coursera.org/articles/ai-productivity-tools |
article.canonical_url | URL | https://www.coursera.org/articles/ai-tools-for-work |
article.is_article | number | 0 |
article.favicon | URL | https://d3njjcbhbojbot.cloudfront.net/web/images/favicons/favicon-v2-32x32.png |
Sample output (real call on 2026-12-03, trimmed)
{
"article": {
"title": "24 AI Tools for Work to Increase Productivity",
"author": "Coursera Staff",
"pub_date": "2025-02-04 00:00:00",
"modified_date": "2026-03-04 00:00:00",
"summary": "AI tools for work can help you with project management, scheduling, collaboration, and generating content like text and images. Explore 24 AI tools you can use at work to improve your productivity. ",
"text": "AI tools for work can help you with project management, scheduling, collaboration, and generating content like text and images. Explore 24 AI tools you can use at work to improve your productivity. AI tools for work span several categories, including knowledge management, project management, communication and collabora...",
"html": "<p>AI tools for work can help you with project management, scheduling, collaboration, and generating content like text and images. Explore 24 AI tools you can u...",
"image": "https://images.ctfassets.net/wp1lcwdav1p1/7M9tuFHTEpWJF5dFyckoYw/47da290001640eee252b6d59385c7956/GettyImages-607477463.jpg?w=1500&h=680&q=60&fit=fill&f=faces&fm=jpg&fl=progressive",
"images": null,
"language": "en",
"site_name": "Coursera",
"url": "https://www.coursera.org/articles/ai-productivity-tools",
"canonical_url": "https://www.coursera.org/articles/ai-tools-for-work",
"is_article": 0,
"favicon": "https://d3njjcbhbojbot.cloudfront.net/web/images/favicons/favicon-v2-32x32.png"
}
}
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 Coursera 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 coursera_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.coursera.org/articles/ai-productivity-tools"
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 Coursera 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 coursera_article_sdk.mjs
import { UjeebuClient } from '@ujeebu-org/ujeebu-sdk';
const API_KEY = process.env.UJEEBU_API_KEY;
const ARTICLE_URL = "https://www.coursera.org/articles/ai-productivity-tools";
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 Coursera 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 coursera_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.coursera.org/articles/ai-productivity-tools"
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 Coursera 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 coursera_article.mjs (Node.js 18 or later)
const API_KEY = process.env.UJEEBU_API_KEY;
const ARTICLE_URL = "https://www.coursera.org/articles/ai-productivity-tools";
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 Coursera 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 coursera_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.coursera.org/articles/ai-productivity-tools'
echo
grep -i '^ujb-credits' headers.txt >&2
<?php
// Extract a Coursera 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 coursera_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.coursera.org/articles/ai-productivity-tools',
];
$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 Coursera 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 coursera_article.go
package main
import (
"encoding/json"
"errors"
"fmt"
"os"
"time"
ujeebu "github.com/ujeebu/ujeebu-go"
)
const articleURL = "https://www.coursera.org/articles/ai-productivity-tools"
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/coursera.json.
Try it yourself
Run this on Coursera 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 Coursera 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.coursera.org (read 2026-12-03): public pages allowed for generic crawlers; no crawl delay set.
- Read Coursera'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 Coursera with Ujeebu?
Yes. 7 of 7 checks of public Coursera pages passed in the last 7 days with the settings on this page.
Which settings work for Coursera?
Call /scrape with js=true.
How many credits does a Coursera 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 Coursera 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 Coursera?
Its robots.txt allows generic crawlers on the page types in this guide. Collect public pages only, read Coursera'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 coursera.org, which run around the clock. Last check: 2026-12-03 23:02:43 UTC; last pass: 2026-12-03 23:02:43 UTC.