DNIT Brazil Highway Traffic Scraper
Pricing
from $7.50 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Share

π£οΈ 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 |
|---|---|
| π Analysts | Build clean datasets from the source |
| π’ Business teams | Plug official data into internal tools |
| π€ ML engineers | Training data ready for pandas and BigQuery |
| π° Journalists | Verify numbers in seconds |
| π Researchers | Reproducible historical pulls |
| π©βπ» Developers | Skip 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
errorrecord 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
| Field | Type | Required | Description |
|---|---|---|---|
resource | enum | No | Which DNIT resource to pull. |
region | string | No | UF state filter (SP, RJ, MG). |
maxItems | integer | No | Free 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.
| Field | Type | Description |
|---|---|---|
π£οΈ road_id | string | Highway or station identifier |
π km | number | Kilometer marker |
π latitude | number | Latitude |
π longitude | number | Longitude |
π vehicle_count | number | Vehicle count or VMD |
π¦ traffic_type | string | Traffic classification |
π
date | string | Reference date |
πΊοΈ region | string | Brazilian UF |
π scrapedAt | string | When this row was fetched |
β error | string | Set 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
| Approach | Setup time | Clean keys | Numeric casting | Error handling |
|---|---|---|---|---|
| Roll your own fetch | 30 min plus | β | β | β |
| Manual download | hours | β | β | β |
| This Actor | 5 sec, no install | β | β | β |
π How to use
- Click Try for free.
- Fill in the input fields (defaults work for a first run).
- 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.
π Recommended Actors
| Actor | What it does |
|---|---|
| ParseForge Alpha Vantage Scraper | Global market data and FX. |
| ParseForge OurAirports Scraper | Global airport database. |
| ParseForge NBA Stats Scraper | Player and team stats. |
| ParseForge CurseForge Mods Scraper | Public 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.