# DuckDuckGo Maps Search API (duckduckgo_maps.search)

- Canonical page: https://everyinfra.com/en/duckduckgo-maps-api/search
- Endpoint: POST /api/v1/social with {"platform": "duckduckgo_maps", "action": "search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 50 per call
- 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=duckduckgo_maps&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | What to look for on the map, a place name or category such as `coffee` or `museum`. |
| latitude | not declared | yes | not declared | The latitude of the map center, from -90 to 90. Required; results are the places in about one screen around it. |
| longitude | not declared | yes | not declared | The longitude of the map center, from -180 to 180. Required. |
| limit | integer (1–50) | no | 20 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | platform-native meaning |
| name | Name of the object itself, for account, product and business capabilities. |
| apple_maps_id | Numeric Apple Maps ID of the place; pass it in `place_ids` to Apple Maps `places` for full details. |
| yelp_id | The place's Yelp business alias; present for places listed on Yelp, mostly in the US. |
| category | Category name in the platform's own taxonomy, not normalized across platforms. |
| address | Full address, passed through as is. |
| city | City name in the platform's language, not normalized. |
| country_code | platform-native meaning |
| timezone | platform-native meaning |
| lat | platform-native meaning |
| lng | platform-native meaning |
| phone | Contact phone number, passed through without format normalization. |
| website | External website entered by the account or business. |
| url | Link to the record on the platform. |
| menu_url | platform-native meaning |
| rating | Yelp rating, 1-5. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| review_count | Number of reviews, for product and business capabilities. null means not disclosed, not 0. |
| price | Price level written with $ signs ($ to $$$$); absent when none is listed. |
| open_state | platform-native meaning |
| opening_hours | Weekly hours keyed by weekday (monday to sunday) as start - end text; days without hours are left out. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| top_reviews | A few review excerpts with rating, text and date (YYYY-MM-DD), without reviewer details. |
| 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": "duckduckgo_maps",
  "action": "search",
  "params": {
    "keyword": "coffee",
    "latitude": 40.7128,
    "longitude": -74.006
  }
}'
```

```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": "duckduckgo_maps",
        "action": "search",
        "params": {
            "keyword": "coffee",
            "latitude": 40.7128,
            "longitude": -74.006,
        },
    },
    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": "duckduckgo_maps",
  "action": "search",
  "results": [
    {
      "rank": …,
      "name": …,
      "apple_maps_id": …,
      "yelp_id": …,
      "category": …,
      "address": …,
      "city": …,
      "country_code": …,
      "timezone": …,
      "lat": …,
      "lng": …,
      "phone": …,
      "website": …,
      "url": …,
      "menu_url": …,
      "rating": …,
      "rating_scale": …,
      "review_count": …,
      "price": …,
      "open_state": …,
      "opening_hours": …,
      "image_url": …,
      "top_reviews": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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