# Apple Maps Search suggestions API (apple_maps.search_suggest)

- Canonical page: [https://everyinfra.com/en/apple-maps-api/search_suggest](https://everyinfra.com/en/apple-maps-api/search_suggest?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "apple_maps", "action": "search_suggest", "params": {...}}
- Price: $0.001 per call ($1 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=apple_maps&action=search_suggest

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | What a user has typed into the Apple Maps search box for `search_suggest`; a partial word such as `pizz` or `starbu` works. |
| latitude | not declared | no | not declared | Latitude from -90 to 90 for `search_suggest`. Given together with `longitude`, suggestions are for places near that point; without both, the platform uses its own default location. |
| longitude | not declared | no | not declared | Longitude from -180 to 180 for `search_suggest`, given together with `latitude`. Passing only one of the two is rejected before any charge. |
| limit | integer (1–) | no | not declared | Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without `limit`, whatever the value. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | The suggested text; for a `place` row it is the place name. |
| type | Kind of suggestion: `query` is a suggested search term, `place` is a suggested place and also carries `place_id`, `apple_place_id`, `name`, `address`, `lat`, `lng` and `country_code`. |
| rank | Position of the suggestion within this group, from 1, in the platform's order. |
| place_id | Numeric Apple Maps place ID (the auid), the same kind of ID that `places` accepts in `place_ids`. |
| apple_place_id | Apple Maps' other place ID (a hexadecimal value starting with I, such as IB8413D9DB465BF7E); it is also the value after place-id= in `url`. |
| name | Name of the object itself, for account, product and business capabilities. |
| address | Full address, passed through as is. |
| lat | Latitude. |
| lng | Longitude. |
| country_code | Two-letter country code. |
| collected_at | When this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "apple_maps",
  "action": "search_suggest",
  "params": {
    "keyword": "coffee"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "apple_maps",
        "action": "search_suggest",
        "params": {
            "keyword": "coffee",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "apple_maps",
  "action": "search_suggest",
  "results": [
    {
      "keyword": …,
      "type": …,
      "rank": …,
      "place_id": …,
      "apple_place_id": …,
      "name": …,
      "address": …,
      "lat": …,
      "lng": …,
      "country_code": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=apple_maps
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
