Skip to content
//UK Bus Services Scraper example\\

Bus services serving Cardiff

Ten bus services from any operator that BODS lists for Cardiff and that mention Cardiff.

Updated November 12, 2026

What this example returns

This example returns up to 10 bus services.

The dataset’s “Bus services” view shows 11 columns: Service, Route, Operator, Operating area, From, To, Description, Timetable, Data set, Updated, and Source. See every output field.

What each setting does

The input this example runs UK Bus Services Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Max services maxItems

10

How many bus services (service numbers) to save. 0 = every service that matches.

Default: 20 → this example uses 10

Geographical areas areas

Cardiff

Council or county areas as the Bus Open Data Service names them, e.g. Oxfordshire, Cumbria, Bristol, Cardiff. Only data sets BODS lists for these areas are read; a data set can also hold services that run mostly outside the area (combine with a keyword to narrow it down).

Keywords keywords

Cardiff

Keep only services that mention one of these words in the service number, route name or description, origin, destination, via points, towns served, operator or operating area, e.g. Oxford, Airport or X5. Whole words, case ignored. Every data set in scope is still read, so a keyword on its own reads all of BODS; add…

.json
{
  "areas": [
    "Cardiff"
  ],
  "keywords": [
    "Cardiff"
  ],
  "maxItems": 10
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Bus servicefrom $0.0015One saved bus service (service number) with its route, operator, operating area and timetable link; stop lists included when that option is on.
  • Data set read$0.002One Bus Open Data Service timetable data set downloaded and read in full to collect its services.

Full pricing

When to use this example

From the UK Bus Services Scraper readme:

Known limit

Timetables (departure times) are not exported; use the timetableUrl link to view them.

Other ways to run UK Bus Services Scraper

All examples of UK Bus Services Scraper

About UK Bus Services Scraper

List UK bus services from the Department for Transport's Bus Open Data Service: service numbers with route names and descriptions, origin and destination, operator, operating area, registration code and a timetable link, optionally with ordered stop lists. Filter by operator (e.g. Stagecoach), area or keyword. No login needed.

Price:
from $1.50 / 1,000 results
Developer:
Roam & Roof
Categories:
Travel, Other

UK Bus Services Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.