Discover/sverigesmiljomal.se API
live

sverigesmiljomal.se APIsverigesmiljomal.se

Access Sweden's environmental quality objectives and indicators via API. Retrieve gravel production time-series, regional breakdowns, and indicator data for all 21 counties.

Endpoints
13
Updated
14d ago
Try it

No input parameters required.

api.parse.bot/scraper/4123503b-86ae-46e1-b6f0-7f0f653066d6/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/4123503b-86ae-46e1-b6f0-7f0f653066d6/get_national_gravel_production' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 13 totalclick to expand

Scrapes the national-level gravel production data from the Grusanvändning indicator page. Returns annual time-series of delivered quantities for Naturgrus, Krossberg, and Morän in millions of tonnes.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "title": "string, chart title",
    "xAxis": "array of category labels or null",
    "series": "array of objects with name and data (array of [year, value] pairs)",
    "subtitle": "string, geographic scope (e.g. 'Sverige')"
  },
  "sample": {
    "data": {
      "title": "Naturgrusanvändning - krossberg, morän och naturgrus",
      "xAxis": null,
      "series": [
        {
          "data": [
            [
              1994,
              28.6
            ],
            [
              2024,
              84.9
            ]
          ],
          "name": "Krossberg"
        },
        {
          "data": [
            [
              1994,
              3.2
            ],
            [
              2024,
              0.9
            ]
          ],
          "name": "Morän"
        },
        {
          "data": [
            [
              1994,
              43.8
            ],
            [
              2024,
              3.83
            ]
          ],
          "name": "Naturgrus"
        }
      ],
      "subtitle": "Sverige"
    },
    "status": "success"
  }
}

About the sverigesmiljomal.se API

This API exposes 13 endpoints covering Sweden's official environmental quality objectives (miljökvalitetsmål) and associated indicators from sverigesmiljomal.se. Endpoints like get_national_gravel_production return annual time-series data in millions of tonnes across material types (Naturgrus, Krossberg, Morän), while list_all_indicators enumerates every tracked environmental indicator with its goal association and slug for downstream lookups.

Environmental Goals and Indicators

The list_environmental_goals endpoint returns the names, URLs, and slugs of all Swedish environmental quality objectives found on the miljömålen index page. From there, list_all_indicators provides a full enumeration of every indicator with its goal_slug, indicator_slug, and page URL. You can narrow results by goal using list_indicators_for_goal, passing a goal_slug value such as grundvatten-av-god-kvalitet or begransad-klimatpaverkan. The get_groundwater_goal_overview endpoint targets the Good Quality Groundwater goal specifically, returning the goal name and a list of related indicators with their URLs.

Gravel Production and Usage Data

Several endpoints focus on the Grusanvändning (gravel use) indicator. get_national_gravel_production returns a national time-series with title, subtitle, xAxis categories, and a series array where each object contains a material name and an array of [year, value] pairs. For county-level data, get_regional_gravel_production accepts a county_slug (e.g. skane-lan, vasterbottens-lan) and returns the same structure scoped to that county. get_gravel_usage_by_application_national breaks down natural gravel extraction by application category (Betong, Väg, Fyllnad, Övrigt, etc.) over time. get_gravel_usage_by_region_snapshot returns a cross-county snapshot for the most recent year, while get_gravel_share_map_data provides per-county percentage shares keyed by Highcharts map codes such as se-st for Stockholm.

Arbitrary Indicator Data

get_indicator_detail and get_indicator_download_data are functionally equivalent: both accept an absolute indicator page URL and return all chart configurations found on that page as an array of objects, each with title, subtitle, xAxis, and series. This covers any indicator on the site, not just gravel. For county-level breakdowns, get_indicator_regional_detail takes a goal_slug, county_slug, and indicator_slug and returns the same chart structure — if the indicator does not support regional data, the response data array will be empty. The get_annual_followup endpoint retrieves the summary text from the fakta-och-statistik annual review page along with the source URL.

Common use cases
  • Track annual trends in natural gravel vs. crushed rock extraction across Swedish counties using get_regional_gravel_production.
  • Map natural gravel share by county using Highcharts map codes from get_gravel_share_map_data.
  • Build a dashboard of all Swedish environmental quality objectives by iterating over results from list_environmental_goals and list_all_indicators.
  • Pull time-series data for any environmental indicator by passing its page URL to get_indicator_detail.
  • Compare gravel usage by application type (concrete, road, fill, other) over time using get_gravel_usage_by_application_national.
  • Generate county-level reports on environmental indicator status using get_indicator_regional_detail with a specific county_slug.
  • Retrieve the latest annual environmental follow-up summary text programmatically via get_annual_followup.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does sverigesmiljomal.se have an official developer API?+
Sverigesmiljomal.se does not publish an official developer API or documented data endpoint for programmatic access. This Parse API provides structured access to the data on the site.
What does `get_indicator_regional_detail` return when a county-level breakdown is not available for an indicator?+
It returns an object with a data field that is an empty array. Not all indicators on sverigesmiljomal.se expose county-level chart data, so callers should check for an empty array before processing results.
Does the API return goal assessment status or definition text for environmental goals other than groundwater?+
Currently, only get_groundwater_goal_overview targets a specific goal overview page, and even that endpoint notes that definition and assessment_status may be empty depending on page rendering. The other goal overview pages are not individually addressed by dedicated endpoints. You can fork this API on Parse and revise it to add dedicated overview endpoints for other goals such as Begränsad klimatpåverkan or Ingen övergödning.
Does the API expose historical gravel data broken down by both county and application type simultaneously?+
get_gravel_usage_by_region_snapshot provides application-type breakdowns across all 21 counties but only for the most recent available year. get_regional_gravel_production provides multi-year time-series per county but not by application type. A combined county-by-application time-series is not currently covered. You can fork this API on Parse and revise it to add an endpoint combining both dimensions if the underlying indicator page exposes that data.
What county slugs are valid for endpoints like `get_regional_gravel_production`?+
County slugs follow the URL path conventions used by sverigesmiljomal.se, such as stockholms-lan, skane-lan, vasterbottens-lan, and equivalents for all 21 Swedish counties (län). The slug format matches the Swedish county name lowercased with spaces replaced by hyphens.
Page content last updated . Spec covers 13 endpoints from sverigesmiljomal.se.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.