# Apple Maps API (`listingsapi/apple-maps-api`) Actor

Create, update and monitor Apple Maps business listings through the Listings API.

- **URL**: https://apify.com/listingsapi/apple-maps-api.md
- **Developed by:** [Local Business Listings Submission API](https://apify.com/listingsapi) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Apple Maps API

Create, update and monitor Apple Maps business listings through the Listings API.

This Actor calls the Locations and listings endpoints of the [Listings API](https://www.listingsapi.com) v4. Requests are authenticated with the `Authorization: API <YOUR_API_KEY>` request header and go to `https://listingsapi.com/api/v4`.

### What this Actor does

- Creates and updates locations from one canonical record, which is what publishes to the publisher network
- Reads per publisher status and the live listing URL for each location
- Reads which publisher sites are included on your plan
- Finds duplicate listings detected for a location and flags or clears them
- Uploads photos for a location

Apple Maps supports listing sync only. The API publishes name, address, phone, hours, description, categories and website, and reads the publish state back. It does not publish posts, reply to reviews, pull analytics or claim listings on Apple Maps. Apple Maps listings are supported in 43 countries.

### Who this is for

- Enterprise brands keeping a large store list accurate across the publisher network
- Teams that need listing status and live URLs in a warehouse rather than a dashboard
- Anyone auditing citation coverage across locations on a schedule

### What you need

A Listings API account on the **Enterprise** plan, and an API key.

Apple Maps is part of the Enterprise plan. Launch and Growth do not include it, so a key on those tiers creates the location but never publishes it to Apple Maps. Enterprise pricing is custom. See [pricing](https://www.listingsapi.com/pricing) or contact support@listingsapi.com.

| Access level | Covers |
| --- | --- |
| Read | Every `GET` operation in the table below |
| Write | Every `POST` operation in the table below |

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiKey` | string | Yes | Your Listings API key. Stored as a secret. |
| `operation` | string | Yes | Which endpoint to call. See the operations table. |
| `pathParams` | object | No | Values for placeholders in the path, for example `{ "locationId": "123" }`. |
| `query` | object | No | Query string values such as `limit`, `after` or a status filter. |
| `body` | object | No | JSON request body for the `POST` operations. |
| `paginate` | boolean | No | Keep requesting pages while `pageInfo.hasNextPage` is true. Default `false`. |
| `maxItems` | integer | No | Stop after this many dataset items. `0` means no limit. |

### Operations

| Operation | Method and path | Returns |
| --- | --- | --- |
| `allLocations` | `GET /locations` | List all locations |
| `searchLocations` | `GET /locations/search` | Search locations |
| `createLocation` | `POST /locations` | Create a location |
| `updateLocation` | `POST /locations/update` | Update a location |
| `getLocationsByIds` | `GET /locations-by-ids` | Get locations by ID |
| `getLocationsByStoreCodes` | `GET /locations-by-store-codes` | Get locations by store code |
| `premiumListingsOfLocation` | `GET /locations/{locationId}/listings/premium` | Per publisher status and live links |
| `duplicateListingsOfLocation` | `GET /locations/{locationId}/listings/duplicates` | Duplicates detected for a location |
| `allDuplicateListings` | `GET /locations/listings/duplicates` | Duplicates across all locations |
| `markAsDuplicate` | `POST /locations/listings/mark-as-duplicate` | Flag a listing as a duplicate |
| `markAsNotDuplicate` | `POST /locations/listings/mark-as-not-duplicate` | Clear a duplicate flag |
| `planSites` | `GET /plan-sites` | List the publisher sites on your plan |
| `subCategories` | `GET /sub-categories` | List business subcategories and their IDs |
| `supportedCountries` | `GET /countries` | List supported countries and states |
| `addLocationPhotos` | `POST /locations/photos` | Upload photos for a location |

### Examples

Confirm Apple Maps is on your plan:

```json
{
  "apiKey": "<your key>",
  "operation": "planSites"
}
```

Create a location, which is what publishes to the network:

```json
{
  "apiKey": "<your key>",
  "operation": "createLocation",
  "body": {
    "input": {
      "name": "Northgate Coffee",
      "address1": "18 Northgate Street",
      "city": "Chester",
      "stateIso": "CHW",
      "countryIso": "GB",
      "zip": "CH1 2HT",
      "phone": "+441244123456",
      "subCategoryId": 1525,
      "website": "https://example.com/chester"
    }
  }
}
```

Read per publisher status and live URLs:

```json
{
  "apiKey": "<your key>",
  "operation": "premiumListingsOfLocation",
  "pathParams": {
    "locationId": "123"
  }
}
```

Audit duplicates across every location:

```json
{
  "apiKey": "<your key>",
  "operation": "allDuplicateListings",
  "query": {
    "limit": 50
  },
  "paginate": true
}
```

### Output

Each location becomes one dataset row with its per publisher status and live URL.

```json
{
  "locationId": "123",
  "name": "Northgate Coffee",
  "listings": [
    {
      "site": "Apple Maps",
      "status": "SYNCED",
      "url": "https://..."
    },
    {
      "site": "Google Maps",
      "status": "SYNCED",
      "url": "https://..."
    }
  ]
}
```

Exact fields follow the API response. Download the dataset as JSON, CSV, Excel or XML, or read it from the Apify API.

The run also writes a `SUMMARY` record to the key value store with the operation, the path called, pages requested and items pushed.

Listing status values are `AVAILABLE`, `IN_PROGRESS`, `PENDING_APPROVAL`, `SYNCED` or `COMPLETED`, `REQUIRING_ACTION`, `FAILED` and `CANNOT_SUBMIT`. A synced listing does not always carry a public URL, so treat a missing `url` on a `SYNCED` row as normal rather than as a failure.

### Running it on a schedule

Schedule `premiumListingsOfLocation` weekly across your locations and alert on any listing in `REQUIRING_ACTION`, `FAILED` or `CANNOT_SUBMIT`. Schedule `allDuplicateListings` monthly to catch duplicates before they split your reviews and rankings.

### Rate limits and pagination

Requests go out one at a time. The Actor reads `pageInfo.hasNextPage` before requesting the next page, waits out a `429` using `retry_after_seconds`, and retries `5xx` responses with an exponential backoff up to five attempts. Plan limits are 10 requests per minute on Launch and 50 on Growth. See [rate limits](https://listingsapi.com/docs/rate-limits).

### Errors

A non-success response stops the run and logs the status code, the URL and the response body including `correlation_id`. Codes are listed at [error codes](https://listingsapi.com/docs/error-codes).

Publisher rejections behave differently. A post can be accepted by the API and then rejected by the publisher for content reasons. That result is reported in the per-channel `state` field rather than as a failed run, so read the output rather than only the exit code.

### Cost

You pay Apify for the platform usage of the run. Listing sync to Apple Maps is billed by your Listings API Enterprise plan, which is custom priced. See [pricing](https://www.listingsapi.com/pricing).

### Related Actors

- [Local Business Listings Submission API](https://apify.com/listingsapi/local-business-listings-submission-api) for creating locations and syncing them across the publisher network
- [Local SEO Analytics API](https://apify.com/listingsapi/local-seo-analytics-api) for publisher performance and listing coverage
- [Create Google Listing API](https://apify.com/listingsapi/create-google-listing-api) for connecting Google and Facebook profiles to your locations
- [Local Business Reviews API](https://apify.com/listingsapi/local-business-reviews-api) for reading and replying to reviews

### Links

- Guides: [listingsapi.com/guides](https://listingsapi.com/guides)
- Full reference: [listingsapi.com/docs](https://listingsapi.com/docs)
- More info: [www.listingsapi.com](https://www.listingsapi.com)
- MCP server: [listingsapi.com/mcp](https://www.listingsapi.com/mcp)
- Support: support@listingsapi.com

# Actor input Schema

## `apiKey` (type: `string`):

Your Listings API key. Create one at https://www.listingsapi.com/pricing. Publishing to this network needs the Enterprise plan. Write operations need a key with Write access.

## `operation` (type: `string`):

Which endpoint to call.

## `pathParams` (type: `object`):

Values for placeholders in the endpoint path, for example { "locationId": "123" }.

## `query` (type: `object`):

Query string values such as limit, after or status filters.

## `body` (type: `object`):

JSON request body for the POST operations. Payload shapes are at https://listingsapi.com/docs.

## `paginate` (type: `boolean`):

Keep requesting pages while pageInfo.hasNextPage is true.

## `maxItems` (type: `integer`):

Stop after this many dataset items. Set 0 for no limit.

## Actor input object example

```json
{
  "operation": "premiumListingsOfLocation",
  "pathParams": {},
  "query": {},
  "body": {},
  "paginate": false,
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

Every post, bulk post, connected account or location returned by the operation you ran.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("listingsapi/apple-maps-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("listingsapi/apple-maps-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call listingsapi/apple-maps-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,listingsapi/apple-maps-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/04XkcSnWorJGLfzC4/builds/UKx6lrYz5AMs7hTHY/openapi.json
