# Railway Technology — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Stay informed on railway industry developments by accessing the latest news, searching articles by sector or theme, and researching infrastructure projects and company profiles. Get detailed information on specific news articles, project details, and company backgrounds all in one place.

**Category:** News & Media | **Website:** [railway-technology.com/](https://railway-technology.com/) | **Docs:** [parse.bot/marketplace/4887b08a-143c-4653-9842-9ec9ba075d85/railway-technology-com-api](https://parse.bot/marketplace/4887b08a-143c-4653-9842-9ec9ba075d85/railway-technology-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_company_profile

Fetch the profile of a railway company by its URL. Returns the company name, about text, and website link. About and website fields may be null if not available on the company's profile page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the company profile page on railway-technology.com (e.g. 'https://www.railway-technology.com/contractors/public-address/2n-netspeaker-1/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_company_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_latest_news

Retrieve the latest news articles from the railway-technology.com news feed. Returns paginated results with article titles, URLs, summaries, and dates. Each page returns up to ~38 articles. Summaries and dates may be null for some articles depending on page structure.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_latest_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_news_article

Fetch full details of a specific news article by its URL. Returns the article title, body text, author, publication date, and URL. The body includes the full article text with inline credits and captions. Author and date are extracted from article metadata and may be null if the page structure differs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the news article on railway-technology.com (e.g. 'https://www.railway-technology.com/news/vinspeed-siemens-mobility-vietnam-rail-project/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_news_article \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_news_by_sector

Retrieve news articles filtered by a specific sector slug. Returns paginated results for the given sector. Summaries and dates may be null for some articles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `sector_slug` | string | Yes | Sector slug identifying the railway sector. Verified working values: 'high-speed-railways', 'rolling-stock', 'operations'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_news_by_sector \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","sector_slug":"<string>"}'
```

### get_news_by_theme

Retrieve news articles filtered by a specific theme slug. Resolves simple slugs to full theme paths automatically by checking the site's theme index. Returns paginated results. Summaries and dates may be null.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `theme_slug` | string | Yes | Theme slug (e.g. 'artificial-intelligence', 'cloud', 'cybersecurity', 'robotics', 'internet-of-things') or full theme path (e.g. 'technology/artificial-intelligence', 'macro/esg/environment'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_news_by_theme \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","theme_slug":"<string>"}'
```

### get_project_details

Fetch full details for a specific railway project by its URL. Returns the project name and description text. The description includes all body text from the project page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the project page on railway-technology.com (e.g. 'https://www.railway-technology.com/projects/30th-street-station-redevelopment-philadelphia-pennsylvania/'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/get_project_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### list_companies

List railway industry companies from the company A-Z directory. Returns company names and profile URLs in alphabetical order.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sort` | string | No | Sort order. Currently only 'alphabetical' is supported. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/list_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sort":"<string>"}'
```

### list_projects

List global railway infrastructure projects. Supports optional region filtering via the site's AJAX endpoint. Returns project names and URLs in alphabetical order. Without a region filter, returns the full A-Z directory.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `region` | string | No | Filter by region slug (e.g. 'europe'). Other values are passed to the upstream filter without validation. |
| `sort` | string | No | Sort order passed to the site's filter. Currently only 'alphabetical' is supported. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/list_projects \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region":"<string>","sort":"<string>"}'
```

### search_news

Search news articles, projects, and companies by keyword. Returns matching results with titles, URLs, summaries, and dates. Results include articles, company profiles, and project pages that match the query. Dates may be null.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword or phrase. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-railway-technology-com-api-4887b08a/search_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
