# Nextdoor 主页或对象详情 API (nextdoor.profile)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 公开的 Nextdoor 城市、社区、商家或目录页面完整 URL。profile 整理该页面的区域资料，directory 整理其公开目录条目；不是个人档案查询，也不读取登录后的私密动态。社区或商家页面可能只提供标题、简介和图片等有限资料。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| page_type | 页面类型（社区/商家/城市等）。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| tagline | 社区或商家的一句话简介。 |
| state | 州。 |
| country_code | 国家代码。 |
| lat | 纬度。 |
| lng | 经度。 |
| residents_count | 该区域居民数。 |
| average_age | 居民平均年龄。 |
| average_income | 居民平均收入。 |
| homeowner_pct | 自有住房比例，百分数。 |
| affordability_score | 生活成本可负担度评分，Nextdoor 自有模型。 |
| friendliness_score | 社区友好度评分，来自居民打分。 |
| neighborhood_count | 包含的街区数量。 |
| business_directory_count | 商家目录收录数。 |
| local_group_count | 本地小组数量。 |
| classifieds_count | 二手交易帖数量。 |
| events_count | 活动数量。 |
| safety_post_count | 安全类帖子数。这类帖多寡是判断治安体感的间接信号。 |
| trending_post_count | 热门帖数量。 |
| photo_video_post_count | 图片视频帖数量。 |
| faq_count | 常见问题数量。 |
| faqs | 常见问题列表。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| access_status | 访问权限状态（公开/需验证地址）。 |
| 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": "profile",
  "params": {
    "url": "<公开 Nextdoor 城市、社区或商家完整 URL>"
  }
}'
```

```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": "profile",
        "params": {
            "url": "<公开 Nextdoor 城市、社区或商家完整 URL>",
        },
    },
    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": "nextdoor",
  "action": "profile",
  "results": {
    "name": …,
    "page_type": …,
    "url": …,
    "description": …,
    "tagline": …,
    "state": …,
    "country_code": …,
    "lat": …,
    "lng": …,
    "residents_count": …,
    "average_age": …,
    "average_income": …,
    "homeowner_pct": …,
    "affordability_score": …,
    "friendliness_score": …,
    "neighborhood_count": …,
    "business_directory_count": …,
    "local_group_count": …,
    "classifieds_count": …,
    "events_count": …,
    "safety_post_count": …,
    "trending_post_count": …,
    "photo_video_post_count": …,
    "faq_count": …,
    "faqs": …,
    "image_url": …,
    "access_status": …,
    "platform": …
  },
  "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
