DNIT Brazil Highway Traffic Scraper avatar

DNIT Brazil Highway Traffic Scraper

Pricing

from $7.50 / 1,000 results

Go to Apify Store
DNIT Brazil Highway Traffic Scraper

DNIT Brazil Highway Traffic Scraper

Tap into DNIT open data for Brazilian federal highways and pull road_id, km, latitude, longitude, vehicle_count, traffic_type, date, and region. Filter by UF state. Great for logistics planning, infrastructure analysis, and mobility studies across the BR highway grid.

Pricing

from $7.50 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Share

ParseForge Banner

πŸ›£οΈ DNIT Brazil Highway Traffic Scraper

πŸš€ Export Brazilian federal highway traffic counts and infrastructure data from the official DNIT open-data API in seconds.

πŸ•’ Last updated: 2026-05-29 Β· πŸ“Š 10 fields per record Β· DNIT dados-abertos API Β· National coverage Β· BR-roads, PNCT, SNV

The DNIT Brazil Highway Traffic Scraper turns the DNIT dados-abertos API into a clean dataset of traffic counts, counting station locations, the federal highway grid (PNV) and stretch metadata (SNV).

🎯 Target AudienceπŸ’‘ Primary Use Cases
πŸ“Š AnalystsBuild clean datasets from the source
🏒 Business teamsPlug official data into internal tools
πŸ€– ML engineersTraining data ready for pandas and BigQuery
πŸ“° JournalistsVerify numbers in seconds
πŸŽ“ ResearchersReproducible historical pulls
πŸ‘©β€πŸ’» DevelopersSkip writing a client library

πŸ“‹ What the DNIT Brazil Highway Traffic Scraper does

  • Calls the public DNIT open-data endpoint.
  • Parses the response and flattens each record into a clean row.
  • Casts numeric fields and normalizes timestamps for downstream tools.
  • Surfaces upstream errors as a clean error record instead of crashing.
  • Exports as CSV, Excel, JSON, JSONL, XML, RSS, or HTML.

πŸ’‘ Why it matters: the source is public but its format is not analyst friendly. This actor returns a flat, tool-ready dataset.

🎬 Full Demo

🚧 Coming soon.

βš™οΈ Input

FieldTypeRequiredDescription
resourceenumNoWhich DNIT resource to pull.
regionstringNoUF state filter (SP, RJ, MG).
maxItemsintegerNoFree 10, paid up to 1,000,000.

Example 1:

{ "resource": "pnct/postos", "maxItems": 50 }

Example 2:

{ "resource": "pnct/postos", "region": "SP", "maxItems": 100 }

⚠️ Good to Know: the upstream source enforces its own rate limits. Heavy pulls should be spread across runs.

πŸ“Š Output

Each record is a flat object. error is always last.

FieldTypeDescription
πŸ›£οΈ road_idstringHighway or station identifier
πŸ“ kmnumberKilometer marker
🌍 latitudenumberLatitude
🌍 longitudenumberLongitude
πŸš— vehicle_countnumberVehicle count or VMD
🚦 traffic_typestringTraffic classification
πŸ“… datestringReference date
πŸ—ΊοΈ regionstringBrazilian UF
πŸ•’ scrapedAtstringWhen this row was fetched
❌ errorstringSet if upstream returned an error

Sample record:

{
"road_id": "BR-101",
"km": 322.5,
"latitude": -23.45,
"longitude": -45.12,
"vehicle_count": 18420,
"traffic_type": "MISTO",
"date": "2026-04-15",
"region": "SP",
"scrapedAt": "2026-05-29T10:00:00.000Z",
"error": null
}

✨ Why choose this Actor

| πŸ†“ | Calls the fully public DNIT API, no key. | | 🧹 | Normalizes Portuguese field names into clean snake_case. | | πŸ”’ | Coordinates and counts cast to numbers. | | πŸ—ΊοΈ | UF state filter built in. | | πŸ›Ÿ | Errors surfaced as clean records. | | πŸ’Ύ | Push to dataset, instant download. |

πŸ“ˆ How it compares to alternatives

ApproachSetup timeClean keysNumeric castingError handling
Roll your own fetch30 min plus❌❌❌
Manual downloadhours❌❌❌
This Actor5 sec, no installβœ…βœ…βœ…

πŸš€ How to use

  1. Click Try for free.
  2. Fill in the input fields (defaults work for a first run).
  3. Click Start. Your dataset is ready in seconds.

πŸ’Ό Business use cases

πŸ“Š Analytics dashboards. Pipe to a BI tool, refresh on a schedule.

πŸ’Ό Internal data products. Mirror the source into your own warehouse.

πŸ“° Newsroom fact-checking. Verify any number before publishing.

πŸ€– ML feature engineering. Use the clean dataset as model input.

πŸ”Œ Automating DNIT Brazil Highway Traffic Scraper

  • Make and Zapier: trigger on a schedule, push to Airtable or Slack.
  • Cron schedule: native Apify scheduler.
  • Webhooks: receive a POST when a run finishes.
  • Pipe to BigQuery, Snowflake, Postgres: native Apify integrations.

🌟 Beyond business use cases

πŸŽ“ Education. Bring real public data into classrooms.

πŸ§ͺ Personal research. Track indicators or markets over time.

🀝 Non-profit and open data. Build public dashboards.

🧰 Tinkering. Prototype quickly with structured data.

πŸ€– Ask an AI assistant about this scraper

Paste this README into ChatGPT or Claude and ask it to map your workflow to the actor inputs. The schema, examples and field list above contain everything an LLM needs to design a working pipeline.

❓ Frequently Asked Questions

❓ Do I need an API key? No, the source is fully public.

❓ Is there a rate limit? The upstream enforces a soft limit. Avoid hammering.

❓ Can I schedule runs? Yes, via Apify scheduler, Make, Zapier or cron.

❓ Are values cast to numbers? Yes where applicable.

❓ How are errors handled? Pushed as a single record with error populated.

❓ Is this scraping or API? Public API or feed.

❓ Will the schema change? Core fields are stable.

❓ Can I filter the results? Yes, see the input schema above.

❓ What if the upstream changes? We update the actor.

❓ What format can I download? CSV, Excel, JSON, JSONL, XML, RSS, HTML straight from the Apify dataset UI.

πŸ”Œ Integrate with any app

Apify ships native integrations with Make, Zapier, Slack, Discord, Google Drive, Google Sheets, Gmail, Airbyte, Keboola, Telegram, GitHub, and any REST API or webhook endpoint.

ActorWhat it does
ParseForge Alpha Vantage ScraperGlobal market data and FX.
ParseForge OurAirports ScraperGlobal airport database.
ParseForge NBA Stats ScraperPlayer and team stats.
ParseForge CurseForge Mods ScraperPublic mod metadata.

πŸ’‘ Pro Tip: browse the complete ParseForge collection for 900+ production-grade scrapers across business intelligence, real estate, e-commerce, sports, finance, and public records.


Disclaimer: This actor scrapes only publicly available data. ParseForge is not affiliated with, endorsed by, or sponsored by any of the third-party services referenced. Users are responsible for complying with the target site's terms of service and applicable law. Create a free account w/ $5 credit.