# Nextdoor 目录与社区发现 API (nextdoor.directory)

- Canonical page: [https://everyinfra.com/nextdoor-api/directory](https://everyinfra.com/nextdoor-api/directory?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "nextdoor", "action": "directory", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 25, 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=nextdoor&action=directory

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 公开的 Nextdoor 城市、社区、商家或目录页面完整 URL。profile 整理该页面的区域资料，directory 整理其公开目录条目；不是个人档案查询，也不读取登录后的私密动态。社区或商家页面可能只提供标题、简介和图片等有限资料。 |
| limit | integer (1–50) | no | 25 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| kind | 条目类别。 |
| description | 简介或描述，通常比 text 短。 |
| member_count | 社区成员数。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| area | 区域名称。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 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": "nextdoor",
  "action": "directory",
  "params": {
    "url": "https://nextdoor.com/city/san-francisco--ca/"
  }
}'
```

```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": "nextdoor",
        "action": "directory",
        "params": {
            "url": "https://nextdoor.com/city/san-francisco--ca/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 53. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "nextdoor",
  "action": "directory",
  "results": [
    {
      "name": "400 Alemany Blvd",
      "url": "https://nextdoor.com/neighborhood/400alemanyblvd--san-francisco--ca/",
      "kind": "neighborhood",
      "area": "San Francisco",
      "platform": "nextdoor"
    },
    {
      "name": "4800 3rd Street",
      "url": "https://nextdoor.com/neighborhood/4800thirdstreet--san-francisco--ca/",
      "kind": "neighborhood",
      "area": "San Francisco",
      "platform": "nextdoor"
    }
  ],
  "count": 53,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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