POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Get what the Apple Maps search box suggests for a partly typed keyword, usually 15 or fewer in the platform's order. Each row is a suggested search term or a suggested place; place rows carry place_id for apple_maps.places, plus name, address and coordinates. Add latitude and longitude for suggestions near a point. No pagination.

Send POST https://api.everyinfra.com/api/v1/social with platform set to apple_maps and action set to search_suggest. Price $1 per 1,000 requests ($0.001 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Apple Maps Search suggestions endpoint (apple_maps/search_suggest).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to apple_maps and action to search_suggest, and put the parameters inside params.
- Required parameters:
  - keyword: What a user has typed into the Apple Maps search box for search_suggest; a partial word such as pizz or starbu works.
- Optional parameters:
  - latitude: 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: Longitude from -180 to 180 for search_suggest, given together with latitude. Passing only one of the two is rejected before any charge.
  - limit: 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.
- Returns a list of records. Main fields of each record: keyword (The suggested text), type (Kind of suggestion: query is a suggeste…), rank (Position of the suggestion within this…), place_id (Numeric Apple Maps place ID (the auid),…), apple_place_id (Apple Maps' other place ID (a hexadecim…), name, address, lat (Latitude), lng (Longitude), country_code (Two-letter country code), collected_at (When this record was collected (ISO 860…).
- Example request body:
{
  "platform": "apple_maps",
  "action": "search_suggest",
  "params": {
    "keyword": "coffee"
  }
}
- Price: $1 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesapple_mapsPlatform identifier, fixed value.
actionbodystringYessearch_suggestCapability identifier, fixed value.
keywordbody.paramsstringYes-What a user has typed into the Apple Maps search box for search_suggest; a partial word such as pizz or starbu works.
latitudebody.paramsnumberNo-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.
longitudebody.paramsnumberNo-Longitude from -180 to 180 for search_suggest, given together with latitude. Passing only one of the two is rejected before any charge.
limitbody.paramsinteger (1–)No-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.

Code samples

#
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"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "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": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
keywordThe suggested text; for a place row it is the place name.
typeKind 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.
rankPosition of the suggestion within this group, from 1, in the platform's order.
place_idNumeric Apple Maps place ID (the auid), the same kind of ID that places accepts in place_ids.
apple_place_idApple Maps' other place ID (a hexadecimal value starting with I, such as IB8413D9DB465BF7E); it is also the value after place-id= in url.
nameName of the object itself, for account, product and business capabilities.
addressFull address, passed through as is.
latLatitude.
lngLongitude.
country_codeTwo-letter country code.
collected_atWhen this record was collected (ISO 8601, UTC).
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Google Analytics needs consent. Privacy