Getting started
Exploring and using data
Exploring catalogs and datasets
Exploring a catalog of datasets
What's in a dataset
Filtering data within a dataset
An introduction to the Explore API
An introduction to the Automation API
Introduction to the WFS API
Downloading a dataset
Search your data with AI (vector search)
The Explore data with AI feature
Creating maps and charts
Creating advanced charts with the Charts tool
Overview of the Maps interface
Configure your map
Manage your maps
Reorder and group layers in a map
Creating multi-layer maps
Share your map
Navigating maps made with the Maps interface
Rename and save a map
Creating pages with the Code editor
How to limit who can see your visualizations
Archiving a page
Managing a page's security
Creating a page with the Code editor
Content pages: ideas, tips & resources
How to insert internal links on a page or create a table of contents
Sharing and embedding a content page
How to troubleshoot maps that are not loading correctly
Creating content with Studio
Creating content with Studio
Adding a page
Publishing a page
Editing the page layout
Configuring blocks
Previewing a page
Adding text
Adding a chart
Adding an image block to a Studio page
Adding a map block in Studio
Adding a choropleth map block in Studio
Adding a points of interest map block in Studio
Adding a key performance indicator (KPI)
Configuring page information
Using filters to enhance your pages
Refining data
Managing page access
How to edit the url of a Studio page
Embedding a Studio page in a CMS
Visualizations
Managing saved visualizations
Configuring the calendar visualization
The basics of dataset visualizations
Configuring the images visualization
Configuring the custom view
Configuring the table visualization
Configuring the map visualization
Understanding automatic clustering in maps
Configuring the analyze visualization
Publishing data
Publishing datasets
Creating a dataset
Creating a dataset from a local file
Creating a dataset with multiple files
Creating a dataset from a remote source (URL, API, FTP)
Creating a dataset using dedicated connectors
Creating a dataset with media files
Federating an Opendatasoft dataset
Publishing a dataset
Publishing data from a CSV file
Publishing data in JSON format
Supported file formats
Promote mobility data thanks to GTFS and other formats
What is updated when publishing a remote file?
Configuring datasets
Automated removal of records
Configuring dataset export
Checking dataset history
Configuring the tooltip
Dataset actions and statuses
Dataset limits
Defining a dataset schema
How Opendatasoft manages dates
How and where Opendatasoft handles timezones
How to find your workspace's IP address
Keeping data up to date
Processing data
Translating a dataset
How to configure an HTTP connection to the France Travail API
Deciding what license is best for your dataset
Types of source files
OpenStreetMap files
Shapefiles
JSON files
XML files
Spreadsheet files
RDF files
CSV files
MapInfo files
GeoJSON files
KML/KMZ files
GeoPackage
Connectors
Saving and sharing connections
Airtable connector
Amazon S3 connector
ArcGIS connector
Azure Blob storage connector
Database connectors
Dataset of datasets (workspace) connector
Eco Counter connector
Feed connector
Google BigQuery connector
Google Drive connector
How to find the Open Agenda API Key and the Open Agenda URL
JCDecaux connector
Netatmo connector
OpenAgenda connector
Realtime connector
Salesforce connector
SharePoint connector
U.S. Census connector
WFS connector
Databricks connector
Connecteur Waze
Harvesters
Harvesting a catalog
ArcGIS harvester
ArcGIS Hub Portals harvester
CKAN harvester
CSW harvester
FTP with meta CSV harvester
Opendatasoft Federation harvester
Quandl harvester
Socrata harvester
data.gouv.fr harvester
data.json harvester
Processors
What is a processor and how to use one
Add a field processor
Compute geo distance processor
Concatenate text processor
Convert degrees processor
Copy a field processor
Correct geo shape processor
Create geo point processor
Decode HTML entities processor
Decode a Google polyline processor
Deduplicate multivalued fields processor
Delete record processor
Expand JSON array processor
Expand multivalued field processor
Expression processor
Extract HTML processor
Extract URLs processor
Extract bit range processor
Extract from JSON processor
Extract text processor
File processor
GeoHash to GeoJSON processor
GeoJoin processor
Geocode with ArcGIS processor
Geocode with BAN processor (France)
Geocode with PDOK processor
Geocode with the Census Bureau processor (United States)
Geomasking processor
Get coordinates from a three-word address processor
IP address to geo Coordinates processor
JSON array to multivalued processor
Join datasets processor
Meta expression processor
Nominatim geocoder processor
Normalize Projection Reference processor
Normalize URL processor
Normalize Unicode values processor
Normalize date processor
Polygon filtering processor
Replace text processor
Replace via regular expression processor
Retrieve Administrative Divisions processor
Set timezone processor
Simplify Geo Shape processor
Skip records processor
Split text processor
Transform boolean columns to multivalued field processor
Transpose columns to rows processor
WKT and WKB to GeoJson processor
what3words processor
Data Collection Form
About the Data Collection Form feature
Data Collection Forms associated with your Opendatasoft workspace
Create and manage your data collection forms
Sharing and moderating your data collection forms
Dataset metadata
Analyzing how your data is used
Getting involved: Sharing, Reusing and Reacting
Discovering & submitting data reuses
Sharing through social networks
Commenting via Disqus
Submitting feedback
Following dataset updates
Sharing and embedding data visualizations
Monitoring usage
An overview of monitoring your workspaces
Analyzing user activity
Analyzing actions
Detail about specific fields in the ods-api-monitoring dataset
How to count a dataset's downloads over a specific period
Analyzing data usage
Analyzing a single dataset with its monitoring dashboard
Analyzing back office activity
Using the data lineage feature
Managing your users
Managing limits
Managing users
Managing users
Setting quotas for individual users
Managing access requests
Inviting users to the portal
Managing workspaces
Managing your portal
Configuring your portal
Configure catalog and dataset pages
Configuring a shared catalog
Sharing, reusing, communicating
Customizing your workspace's URL
Managing legal information
Connect Google Analytics (GA4)
Regional settings
Pictograms reference
Managing tracking
Best practices for search engine optimization (SEO)
Look & Feel
Branding your portal
Customizing portal themes
How to customize my portal according to the current language
Managing the dataset themes
Configuring data visualizations
Configuring the navigation
Adding IGN basemaps
Adding images and fonts
Plans and quotas
Managing security
Configuring your portal's overall security policies
A dataset's Security tab
Mapping your directory to groups in Opendatasoft (with SSO)
Single sign-on with OpenID Connect
Single sign-on with SAML
Parameters
- Home
- Exploring and using data
- Exploring catalogs and datasets
- Introduction to the WFS API
Introduction to the WFS API
An API, or Application Programming Interface, is a tool designed to enable different software systems to communicate with each other. If you want to use data stored somewhere online, the purpose of an API is to allow you to interact with that data in a way that the source understands. And if you want to share your data with others, an API allows you to define the type of access they have.
Opendatasoft provides several different APIs to interact with the platform, but the Opendatasoft WFS API gives you access to the public geographic data on the Opendatasoft platform.
What the WFS API allows you to do
To interact with the API, you perform a so-called API call. A call is when you visit the appropriate URL, with the request you're making specified in the URL. The API then retrieves that information and returns it to your browser.
By including one of the following commands in bold into the API call, the WFS API allows you to perform three main actions:
- GetCapabilities: Retrieves the metadata of the WFS service.
- DescribeFeatureType: Generates a description of the schema for the supported feature types by the service.
- GetFeature: Retrieves the data from a dataset and renders it using the GML representation.
See the section below for each for an example of the proper syntax to use.
GetCapabilities
GetCapabilities is one of the three main actions you can perform with the WFS API. This action lists the datasets within a domain and its associated features.
It has two required parameters:
- Service: "WFS"
- Request: "GetCapabilities"
The URL for this request is therefore: https://documentation-resources.opendatasoft.com/api/wfs?service=wfs&request=getcapabilities
The "FeatureTypeList" section shows the available datasets within the domain:
DescribeFeatureType
This action mainly allows you to describe the schema of a dataset based on its typename.
This action has four required parameters:
- Service: "WFS"
- Request: "DescribeFeatureType"
- Version: "2.0.0"
- Typename: "ods:gender-equality-in-europe"
The URL for this request is therefore: https://documentation-resources.opendatasoft.com/api/wfs?service=wfs&request=describefeaturetype&version=2.0.0&typename=ods:gender-equality-in-europe
As you can see in the image, the elements listed by this request are "country," "country_zip," "general_index," and so on. These correspond to the columns in the "ods:gender-equality-in-europe" dataset.
GetFeature
This operation primarily allows you to retrieve the data from a dataset based on its typename. Remember that in WFS, the "typename" is a dataset's identifier.
It has four required parameters:
- Service: "WFS"
- Request: "GetFeature"
- Version: "2.0.0"
- Typename: "ods:gender-equality-in-europe"
The URL for this request is therefore: https://documentation-resources.opendatasoft.com/api/wfs?service=wfs&request=getfeature&version=2.0.0&typename=ods:gender-equality-in-europe
So the elements returned by this request correspond to the data within the "ods:gender-equality-in-europe" dataset. Each row in the dataset corresponds to a member (<wfs:member>).
An example of using the WFS API from QGIS
A common usage is to generate an interesting visualization of our data using geographic visualization software such as QGIS, ArcGIS, MapInfo Professional, GRASS GIS, etc.
- Open the Data Source Manager, add an OpenStreetMap layer, then create a new WFS connection
- Add the URL to your domain followed by /api/wfs, use version 2.0.0
- Add the dataset as a layer
- Edit the properties to add a gradient and adjust its reference column
- Use, interpret, explore and share your visualization
Here, we have specified to the software the significant column general_index for the gradient, which represents the average rating given to a country. Thus, we have a better representation of gender inequalities in Europe compared to a tabular view.
What next?
Hopefully this page helps explain how the WFS API can be useful to you.
Using an API is perhaps not for everyone. However, with a little effort, the API can help you better understand and efficiently use your own data as well as other public data.
To assist you along the way, we invite you to dive into our documentation for the WFS API.