Scraper APIInvestopedia
investopedia.article
An article or a term's page on Investopedia: headline, byline, dates, section, headings and the full text.
- Id
investopedia.article- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/investopedia.article/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
urlrequired | string | The address of an article or a term's page, e.g. https://www.investopedia.com/terms/e/etf.asp.Limit: at least 10 characters, at most 500 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
url | string | The article's address. |
title | string | The headline. |
description | string or null | The article's summary, as the page gives it. |
authors | array of object | The byline: who wrote the article, in the order printed. |
name (in authors[]) | string | The name in the byline, as printed. |
url (in authors[]) | string or null | The author's page on investopedia.com. |
published_at | string (date-time) or null | When the article was first published, with the offset the page states. |
updated_at | string (date-time) or null | When the article was last updated. |
section | string or null | The section the article is filed in: the last step of the page's breadcrumb, e.g. ETFs. |
breadcrumb | array of string | The whole breadcrumb, widest first, e.g. Investing, ETFs. |
headings | array of string | The article's section headings, in order. |
text | string | The article's text: paragraphs, headings and list items in order, one a line, blank lines between blocks. |
word_count | integer | The number of words in text. |
image | string or null | The article's main picture, as the page names it for sharing. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/investopedia.article/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://www.investopedia.com/terms/e/etf.asp"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("investopedia.article", {
"url": "https://www.investopedia.com/terms/e/etf.asp",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("investopedia.article", {
url: "https://www.investopedia.com/terms/e/etf.asp",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "investopedia.article", map[string]any{"url": "https://www.investopedia.com/terms/e/etf.asp"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("investopedia.article", Map.of("url", "https://www.investopedia.com/terms/e/etf.asp"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run investopedia.article --input url=https://www.investopedia.com/terms/e/etf.aspInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"url": "https://www.investopedia.com/terms/e/etf.asp"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "investopedia.article",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"url": "https://www.investopedia.com/terms/e/etf.asp"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"url": "https://www.investopedia.com/terms/e/etf.asp",
"title": "Exchange-Traded Fund (ETF): What It Is and How to Invest",
"description": "Learn what an exchange-traded fund (ETF) is, how it works, its key benefits, risks, and simple steps to start investing in ETFs with confidence for beginners.",
"authors": [
{
"name": "James Chen",
"url": "https://www.investopedia.com/contributors/101529/"
}
],
"published_at": "2003-11-18T12:00:00-05:00",
"updated_at": "2026-05-06T08:34:33-04:00",
"section": "ETFs",
"breadcrumb": [
"Investing",
"ETFs"
],
"headings": [
"What Is an Exchange-Traded Fund (ETF)?",
"How ETFs Work",
"Types of ETFs"
],
"text": "What Is an Exchange-Traded Fund (ETF)?\n\nAn exchange-traded fund (ETF) is an investment fund that holds multiple underlying assets. It can be bought and sold on an exchange, much like an individual stock. ETFs can be structured to track … [truncated]",
"word_count": 1811,
"image": "https://www.investopedia.com/thmb/_uAQGkkLGdgz3ktVgvGcwDOi0VA=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/EFT_final-45a9ca8cf7e948608a3b8dae38b66393.png",
"fetched_at": "2026-11-19T18:10:59.721297Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
headings: 11 items, the first 3 shown. - Shortened:
text: 10,824 characters, the first 235 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Investopedia scrapers are in their own section there.