Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Weibo Region City List

API 문서
https://api.sandbase.ai/v1/api/weibo/web-v2/city-list

Returns a directory of provinces and cities on Weibo. Supports toggling a normalized data structure via the normalized parameter.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 0개 · 선택 사항 1개

Playground

입력
Whether to return normalized structure (default True)
출력예시
응답outputs · 1.1 KB · 57줄
[
  {
    "data": {
      "provinces": [
        {
          "cities": [
            {
              "code": 0,
              "name": "城市/地区"
            }
          ],
          "code": 0,
          "name": "省/直辖市"
        },
        {
          "cities": [
            {
              "code": 1,
              "name": "合肥"
            },
            {
              "code": 2,
              "name": "芜湖"
            },
            {
              "code": 3,
              "name": "蚌埠"
            },
            "… 14 more items in the full response"
          ],
          "code": 34,
          "name": "安徽"
        },
        {
          "cities": [
            {
              "code": 1,
              "name": "东城区"
            },
            {
              "code": 2,
              "name": "西城区"
            },
            {
              "code": 3,
              "name": "崇文区"
            },
            "… 15 more items in the full response"
          ],
          "code": 11,
          "name": "北京"
        },
        "… 34 more items in the full response"
      ]
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Weibo Region City List API

Returns a list of provinces and the cities inside each one, as used on Weibo. Each entry has a numeric code and a Chinese name. The only input is the optional normalized boolean, so you can send an empty body.

Use cases

  • Fill a province and city dropdown in a tool that filters Weibo data by region.
  • Match region codes found in Weibo user data to province and city names.
  • Build a lookup table from region code values to Chinese place names.
  • Check that a city name is spelled the way Weibo spells it before you use it in a query.

Request

curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/city-list" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
normalizedbooleanNoWhether to return normalized structure (default True)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "provinces": [
    {
      "cities": [
        {
          "code": 0,
          "name": "城市/地区"
        }
      ],
      "code": 0,
      "name": "省/直辖市"
    }
  ]
}

Response fields

FieldMeaning
provinces[]One entry for each province or municipality. Each entry holds its own code and name and a list of cities.
provinces[].codeNumeric code of the province or municipality. For example, 34 is 安徽 and 11 is 北京.
provinces[].nameProvince or municipality name in Chinese.
provinces[].cities[]The cities or districts that belong to this province.
provinces[].cities[].codeNumeric code of the city or district. The value counts up from 1 inside each province, so the same code can appear under different provinces.
provinces[].cities[].nameCity or district name in Chinese, such as 合肥 or 东城区.

Notes

  • The first province entry has code 0 and the name 省/直辖市. Its only city has code 0 and the name 城市/地区. These look like placeholder labels for a dropdown, not real places.
  • City code values are only unique inside one province. Keep the province code together with the city code when you store a location.
  • The normalized parameter defaults to true. The request in this example sent {}, so it used the default.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Weibo$0.001 / 호출JSON
Weibo$0.001 / 호출JSON
Weibo$0.001 / 호출JSON
Weibo$0.001 / 호출JSON
Weibo$0.001 / 호출JSON
Weibo$0.001 / 호출JSON

가이드:Best Weibo API in 2026: Pricing Compared

질문

FAQ

Weibo Region City List API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/weibo/web-v2/city-list에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Weibo Region City List API 비용은 얼마인가요?

호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Weibo Region City List API는 어떤 매개변수를 받나요?

필수 매개변수는 없습니다. 선택: normalized (boolean). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Weibo Region City List API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Weibo 개발자 계정이나 API 키가 필요한가요?

아니요. Weibo Region City List은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Weibo API 액세스를 별도로 신청할 필요는 없습니다.