Discover/Gov API
live

Gov APIspatial.nsw.gov.au

Access NSW spatial data portal items, groups, data packs, news, and publications via a structured API. Search, paginate, and retrieve full metadata for GIS datasets.

This API takes change requests — .
Endpoint health
verified 7d ago
get_portal_groups
search_portal_items
list_all_portal_items
get_publications
get_portal_item_details
7/7 passing latest checkself-healing
Endpoints
7
Updated
28d ago

What is the Gov API?

This API covers 7 endpoints for querying the NSW Spatial Services Portal and website, returning structured metadata for spatial datasets, GIS data packs, portal groups, news articles, and publications. The search_portal_items endpoint accepts keyword queries and returns paginated results with fields including item id, type, owner, tags, snippet, created_at, and updated_at, letting you filter and browse the portal's public catalogue programmatically.

Try it
Maximum number of results to return.
Search keywords to filter portal items.
Start index for pagination (1-based).
api.parse.bot/scraper/d5914d14-4a06-4554-a6ea-86ab3b944fda/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/d5914d14-4a06-4554-a6ea-86ab3b944fda/search_portal_items?limit=5&query=elevation&start=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace spatial-nsw-gov-au-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: NSW Spatial Services SDK — discover spatial datasets, groups, and news."""
from parse_apis.nsw_spatial_services_api import NSWSpatial, PortalItem, ItemNotFound

client = NSWSpatial()

# Search for elevation-related spatial datasets (capped at 3 items total).
for item in client.portalitems.search(query="elevation", limit=3):
    print(item.title, item.type, item.owner)

# Drill into the first water-related item for full details.
item = client.portalitems.search(query="water", limit=1).first()
if item:
    detail = client.portalitems.get(id=item.id)
    print(detail.title, detail.snippet, detail.updated_at)

# List portal groups available for collaboration.
for group in client.groups.list(limit=3):
    print(group.title, group.access, group.snippet)

# Browse available data packs.
for pack in client.datapacks.list(limit=3):
    print(pack.name, pack.owner, pack.updated_at)

# Typed error handling: attempt to fetch a non-existent item.
try:
    client.portalitems.get(id="nonexistent_item_id_000")
except ItemNotFound as exc:
    print(f"Item not found: {exc}")

# Latest news from the NSW Spatial Services website.
for article in client.newsarticles.list(limit=3):
    print(article.title, article.date, article.url)

print("exercised: portalitems.search / portalitems.get / groups.list / datapacks.list / newsarticles.list")
All endpoints · 7 totalmissing one? ·

Search for items in the NSW Spatial Collaboration Portal by keyword. Returns paginated results sorted by modification date descending. Each result includes id, title, type, owner, tags, snippet, and timestamps. Pagination uses a 1-based start index; nextStart indicates the next page or -1 when exhausted.

Input
ParamTypeDescription
limitintegerMaximum number of results to return.
querystringSearch keywords to filter portal items.
startintegerStart index for pagination (1-based).
Response
{
  "type": "object",
  "fields": {
    "num": "integer number of results returned in this page",
    "start": "integer start index of current page",
    "total": "integer total count of matching items",
    "results": "array of portal item objects with id, title, type, owner, tags, snippet, created_at, updated_at, and other metadata",
    "nextStart": "integer start index for the next page, or -1 if no more results"
  },
  "sample": {
    "data": {
      "num": 5,
      "start": 1,
      "total": 167,
      "results": [
        {
          "id": "be70b7adc83a4e73bfa24f25835c4484",
          "tags": [
            "Cadastral Survey planning",
            "Cadastre",
            "Coordinates"
          ],
          "type": "Feature Service",
          "owner": "ss-sds",
          "title": "Survey Mark - NSW Positioning Theme - GDA2020 multiCRS",
          "access": "public",
          "snippet": "SurveyMarkGDA2020 - This service provides GDA2020 coordinates that support Multi Coordinate reference Systems.",
          "numViews": 10525,
          "created_at": "2021-10-25 22:42:52",
          "updated_at": "2026-06-11 03:19:06"
        }
      ],
      "nextStart": 6
    },
    "status": "success"
  }
}

About the Gov API

Portal Item Search and Detail

The search_portal_items endpoint accepts a query string plus limit and start parameters for keyword-driven, paginated access to the NSW Spatial Collaboration Portal. Results include id, title, type (e.g. Map Service, Feature Service, Web Mapping Application), owner, tags, snippet, and timestamps. To retrieve the full record for any item, pass its id to get_portal_item_details, which adds description (HTML), extent, and license fields not present in search results. For browsing without a query, list_all_portal_items returns the complete public catalogue sorted by modification date, using the same pagination contract: num, start, total, and nextStart (-1 signals the final page).

Data Packs and Groups

The get_data_packs endpoint filters the portal specifically for GIS processing packs, returning a data_packs array alongside a total count. Pagination uses limit and start. The get_portal_groups endpoint lists all public portal groups alphabetically, with each group record carrying id, title, owner, snippet, tags, access, created_at, and updated_at.

News and Publications

The get_news endpoint requires no inputs and returns a news array where each object includes title, date, url, and summary drawn from the NSW Spatial Services website. The get_publications endpoint similarly requires no inputs and returns a publications array with title, url, and description for each listed publication. Neither endpoint supports filtering or pagination — they return the full current listing in a single response.

Reliability & maintenanceVerified

The Gov API is a managed, monitored endpoint for spatial.nsw.gov.au — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when spatial.nsw.gov.au changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official spatial.nsw.gov.au API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Index all public NSW spatial datasets by type and owner for a GIS asset catalogue
  • Monitor the portal for recently modified items using updated_at from list_all_portal_items
  • Retrieve full HTML descriptions and license info for specific datasets via get_portal_item_details
  • Discover available GIS processing packs using get_data_packs and filter by total count
  • Build a directory of NSW spatial collaboration groups using get_portal_groups metadata
  • Aggregate current NSW spatial news headlines and summaries for a geospatial news feed
  • Surface relevant NSW spatial publications by title and URL in a research or government data portal
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 NSW Spatial Services provide an official developer API?+
Yes. NSW Spatial Services exposes public OGC-compliant web services (WMS, WFS, WMTS) through its Imagery, Elevation, and other data services, documented at https://portal.spatial.nsw.gov.au. The Parse API provides a structured, uniform interface over the portal catalogue and website content for cases where the native service endpoints are not what you need.
What does `get_portal_item_details` return that `search_portal_items` does not?+
The detail endpoint adds description (full HTML), extent (geographic bounding box), and license or access fields that are absent from the paginated search and list responses. Use it when you need the complete metadata record for a specific item identified by its id.
Can I filter portal items by type, owner, or date range?+
The search_portal_items endpoint currently accepts only a free-text query parameter alongside pagination controls. Filtering by item type, owner, or a specific created_at / updated_at date range is not directly supported. The API returns those fields in every result, so client-side filtering is possible. You can also fork the API on Parse and revise it to add server-side type or owner filters.
Do `get_news` and `get_publications` support pagination or date filtering?+
Neither endpoint supports pagination or filtering — each returns the full current listing in one response. If the NSW Spatial Services website expands its news archive significantly or you need date-range filtering, you can fork the API on Parse and revise it to add those parameters.
Does the API expose the actual spatial data files or geometries from datasets?+
No. All endpoints return metadata — titles, descriptions, tags, types, owners, timestamps, and URLs — rather than raw spatial data, geometries, or file downloads. Access to the underlying GIS data itself requires following the service URLs contained in item records. You can fork the API on Parse and revise it to add an endpoint that proxies a specific dataset's WFS or download link.
Page content last updated . Spec covers 7 endpoints from spatial.nsw.gov.au.
Related APIs in Maps GeoSee all →
realcommercial.com.au API
Search commercial property listings across Australia, view detailed property information, and stay updated with the latest real estate market news all from one platform. Find investment opportunities, compare properties, and read industry insights to make informed decisions in the commercial property market.
espa.gr API
Discover and browse EU funding programs available in Greece, view detailed information about each initiative, and stay updated with the latest news from the ESPA portal. Search across the database and explore program planning details to find opportunities relevant to your interests.
realestate.com.au API
Search and retrieve property listing data from realestate.com.au, including listings for sale and rent, detailed property information, and nearby schools for any location across Australia.
buy.nsw.gov.au API
Search and retrieve NSW Government tender opportunities and contract notices from buy.nsw, including detailed information about available opportunities, supplier hubs, and procurement categories. Filter opportunities by category and discover top procurement deals in real-time to stay informed about potential business contracts with the NSW Government.
domain.com.au API
Search and compare property listings for sale, rent, or sold properties across Australia, view detailed property information and agent profiles, and explore suburb insights to make informed real estate decisions. Access comprehensive data on agents, neighborhoods, and properties all in one place.
payloadspace.com API
Search and retrieve space industry news articles, company information, funding rounds, contract awards, and events from Payload Space's comprehensive database. Stay updated on latest developments across commercial space, military space, European space news, and industry events like webinars and podcasts.
images.nasa.gov API
images.nasa.gov API
serviceseeking.com.au API
Search and browse job postings and local service providers across Australia on ServiceSeeking.com.au. View detailed business profiles, ratings, pricing, and explore hundreds of service categories — from tradespeople to home services and beyond.