9fin 1.1 News: reading an article and the companies in it
APIs used in this notebook
| API | Version | Endpoints |
|---|---|---|
| News & Content v2 | 0.3.41 | GET /v2/news/headlinesGET /v2/news/{uuid} |
| Entity | 0.5.7 | GET /v0/entity/{nf_id} |
The core read path on the News API: list headlines, fetch one article in full, and resolve the companies it names to identifiers.
What an article is
An article is one piece of our journalism or one third party headline with deep links, identified by a uuid. Two parts matter.
The content. content.body is the article itself, delivered as markdown rather than HTML, with content.format telling you so.
The entities. Every article arrives with the companies it names already resolved to identifiers, in an entities block: one main company, and any number of additional ones. You never have to find a company name in the text, which is what makes the join to the rest of the platform reliable.
Around it sits the metadata: when it was published, which regions and industry it covers, and the content tags that say what kind of piece it is. Notebook 1.2 is about those tags.
%run "9fin 0.1 Authentication - getting a token.ipynb"
import pandas as pd
from IPython.display import Markdown
pd.set_option("display.max_colwidth", 120)
The two endpoints
The News API has two, and you use them in order. GET /v2/news/headlines returns a page of
article metadata with no bodies; GET /v2/news/{uuid} returns one article in full. List, choose,
then read.
Start with the list. Three items of our own journalism:
headlines = api_get("/v2/news/headlines", source_type="9fin", limit=3)
pd.DataFrame([{"uuid": h["uuid"], "published": h["published_at"][:10], "title": h["title"][:54]}
for h in headlines["items"]])
Sample output, captured October 2026. Static snapshot, not live data.
| uuid | published | title |
|---|---|---|
| 07671e16-13b9-4c5e-b592-ebcde3739fe9 | 2026-10-29 | Hengs Technology closes TWD 1.05bn loan (9fin) |
| bbab24c9-6e97-462f-ae56-eeeddc19f5b4 | 2026-10-28 | UK autumn budget holds debt markets steady, but keeps |
| 4468e639-e717-4580-9d8a-c4b5ca81766a | 2026-10-29 | European IG Morning Coffee — 29 October 2026 (9fin) |
Every row carries the uuid that the second endpoint takes, which is the whole relationship between them. A headline carries no body: one call gets you a page of metadata, and you spend a call per article only on the ones you choose to read. Notebook 1.2 is about the filters that shape this list.
Fetching one article
GET /v2/news/{uuid} returns a single item: any uuid from the list above, or one you already
hold. The rest of this notebook follows one fixed article rather than the top of the feed, so the output below is stable.
article = api_get("/v2/news/7c1b8e61-04cb-4df2-b38c-1496d15b8547")
list(article)
Twelve fields. The metadata ones first:
{k: article[k] for k in ["uuid", "title", "published_at", "updated_at", "url"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'uuid': '7c1b8e61-04cb-4df2-b38c-1496d15b8547',
'title': 'Parliament committee urges government to block Thames Water creditor takeover (9fin)',
'published_at': '2026-09-18T16:32:00',
'updated_at': '2026-09-18T16:32:52.980851',
'url': 'https://9fin.com/news/7c1b8e61-04cb-4df2-b38c-1496d15b8547'}
published_at and updated_at are not the same thing. We amend articles after publication, sometimes long after, and the headlines feed is ordered by updated_at. Notebook 1.3 turns that into a way of keeping a watchlist current.
Reading the body
content.format is mkd, so the body renders as markdown directly.
article["content"]["format"], len(article["content"]["body"])
Sample output, captured October 2026. Static snapshot, not live data.
('mkd', 6432)
Markdown(article["content"]["body"][:600] + " ...")
Sample output, captured October 2026. Static snapshot, not live data.
This story has been amended since publication to add details on Thames Water filing an application with the UK High Court this week in the second paragraph.
A Parliamentary committee recommended today (18 September) that the UK government reject the Thames Water senior creditor consortium's takeover proposal of the utility and instead explore alternatives including special administration or fresh legislation.
In the meantime Thames Water is proceeding with its current rescue plan. This week, the company appli ...
The companies it names
This is the part that connects the article to everything else. main is the company the piece is about; additional holds the others it mentions.
article["entities"]
Sample output, captured October 2026. Static snapshot, not live data.
{'main': {'nf_id': 'nf_ent_8125eba6b46943be8fd712aa37df521d',
'name': 'Thames Water Utilities Limited',
'country_code': 'GB'},
'additional': [{'nf_id': 'nf_ent_f19856da233a4892b79a2634c9aeebb9',
'name': 'Thames Water (Kemble) Finance'}]}
Flattened into the list you would actually work with:
named = [e for e in [article["entities"]["main"], *article["entities"]["additional"]] if e]
pd.DataFrame(named)
Sample output, captured October 2026. Static snapshot, not live data.
| nf_id | name | country_code |
|---|---|---|
| nf_ent_8125eba6b46943be8fd712aa37df521d | Thames Water Utilities Limited | GB |
| nf_ent_f19856da233a4892b79a2634c9aeebb9 | Thames Water (Kemble) Finance | NaN |
Resolving a company in full
Those nf_id values are exactly what the Entity API takes. One call each and you have the full company record, as covered in notebook 0.2.
company = api_get(f"/v0/entity/{named[0]['nf_id']}")
{k: company[k] for k in ["street_name", "country_ref_name", "industry_1", "industry_2", "website"]}
Sample output, captured October 2026. Static snapshot, not live data.
{'street_name': 'Thames Water Utilities Limited',
'country_ref_name': 'United Kingdom',
'industry_1': 'Utilities',
'industry_2': 'Water Utilities',
'website': 'https://www.thameswater.co.uk/'}
Nothing was matched on the string "Thames Water". The article carried the identifier, and the Entity API answered on it.
The rest of the metadata
This is what you filter on when you move from one article to a feed.
{"source": article["source"], "regions": article["regions"], "industry": article["industry"],
"tags": [t["tag_name"] for t in article["content_tags"]]}
Sample output, captured October 2026. Static snapshot, not live data.
{'source': {'type': '9fin'},
'regions': ['Europe'],
'industry': {'name': 'Water Utilities'},
'tags': ['9fin-Editorial', '9fin-Secondary', '9fin-Distressed']}
The read path
| Call | Gives you |
|---|---|
GET /v2/news/headlines | a page of article metadata, no bodies; where uuids come from |
GET /v2/news/{uuid} | one article: metadata, markdown body, and the companies it names |
GET /v0/entity/{nf_id} | the full record for any of those companies |
Articles hand you identifiers, so you never match on names. And updated_at is distinct from published_at, which is the basis of polling.
Next: notebook 1.2 explains the content tags and how to turn them into a feed. Notebook 1.3 keeps that feed current. Notebook 2.2 carries on past the company to the individual bond a story is about.