30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

GeoDirectory Get Listing

geodirectory/get-listing fetches one listing by ID, including every custom field its listing type defines.

Address and coordinates, business hours, categories and tags, rating, and any site-defined fields.

At a glance

Abilitygeodirectory/get-listing
ToolsetGeoDirectory — toolset/geodirectory
GroupGeoDirectory › Listings
RequiresAcrossAI Pro, plus GeoDirectory active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

The listing type has to match. GeoDirectory routes by type, so asking for a listing under the wrong one returns a 404 rather than the listing — and on a multi-directory site that is easy to do. Omitting the type uses the site default, which may not be the right one.

The edit context is the other thing worth knowing. Fields marked for-admin-use are omitted from the default view context, so a field that exists and holds data can be absent from a read that looks complete.

Those fields are usually internal — a verification note, an owner’s account reference — and their absence is correct for a public read and wrong for an audit.

Images come back as objects, which is worth remembering before an update: they are written as strings, so a read cannot be fed straight back in.

Input

NameTypeRequiredWhat it is
idintegerYesListing post ID.
post_typestringNoListing type, for example gd_place. Defaults to the site default. See geodirectory/get-directory-overview for the valid values.
contextstringNoUse edit to include admin-only fields.

What comes back

NameTypeWhat it is
listingobjectThe listing with every field its type defines.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Show me everything about listing 812.

It resolves to one call:

{
  "ability": "geodirectory/get-listing",
  "parameters": {
    "id": 812,
    "context": "edit"
  }
}

Worth knowing

  • A mismatched listing type 404s rather than returning nothing.
  • Admin-only fields need context: edit.
  • Images read as objects and write as strings — a read does not round-trip.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading