API Hop

문서

API Hop 문서

Bing Search API 참조

Bing: 웹 검색 · Copilot 답변.

동시 실행 한도

AI와 Data는 각각 계정 전체의 동시 실행 슬롯을 공유합니다. 기본값은 AI 5 / Data 2이며 구독에 따라 달라집니다. 엔드포인트별 한도도 카테고리 전체 한도를 초과할 수 없습니다. 어느 한도든 도달하면 HTTP 429를 반환합니다. 비동기 작업은 실행이 끝날 때까지 슬롯을 차지합니다.

GET /v1/bing-search/search
기본 한도: 2
GET /v1/bing-search/copilot
기본 한도: 2

Bing: 웹 검색 · Copilot 답변.

인증 및 요금

기본 요금은 성공한 요청당 $0.0003(300 credits)입니다. API Hop API 키를 사용합니다. 접근은 활성 게이트웨이와 권한에 따라 결정됩니다. 성공한 요청 요금은 카탈로그와 계정을 확인하세요. 계정별 요금이 우선하며 성공한 빈 결과도 과금됩니다. 실패하면 예약 금액을 해제합니다. 제한 시간은 60초이며 자동 재시도와 페이지 처리가 없습니다. 정산 오류도 공급자 요청을 반복하지 않습니다.

http
Authorization: Bearer YOUR_API_KEY

쿼리만 허용하며 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부합니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. ID와 토큰은 최신 응답에서 복사하세요. 예시는 설명용입니다. 확인된 빈 결과나 사용 불가 결과를 포함하여 완료된 조회마다 별도 과금됩니다. XOR = 하나만, NOT = 제외, => = 필요.

GET https://api.apihop.ai/v1/bing-search/search

매개변수

필드유형제약예시
querystring검색어; query: REQUIRED; minLength: 1; maxLength: 8192; UTF-8 bytes: 8192coffee
zero_traceboolean응답 보관 안 함; zero_trace: optionalfalse
devicestring기기; device: optional; mobile, tablet, desktopmobile
safestring결과 필터 (safe); safe: optional; active, offactive
color_schemestring색상 테마 (color_scheme); color_scheme: optional; light, darklight
spinteger원본 검색 필터 (sp); sp: optional; -1-1
firstinteger결과 오프셋 (first); first: optional; min: 11
next_page_tokenstring최신 응답의 토큰 (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-
ccstring국가 필터 (cc); cc: optional; ar, au, at, be, br, ca, cl, dk, fi, fr, ... 36us
locationstring검색 위치; location: optional; minLength: 1; maxLength: 512-
mktstring지역 (mkt); mkt: optional; ^[A-Za-z]{2,3}-[A-Za-z]{2}$en-US
filtersstring결과 필터 (filters); filters: optional; minLength: 1; maxLength: 4096-
setlangstring언어 필터 (setlang); setlang: optionalen-US
coordinatesstringJSON 좌표 (latitude, longitude) (coordinates); 정확도: 100 m; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
tbsstring기간 (tbs); qdr:<d/w/m/y>[1..10000]; tbs: optionalqdr:d

검증

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • NOT (cc AND mkt); NOT (filters AND tbs); first > 1 => next_page_token; hourly qdr:h time filters are unsupported

예시

bash
curl --get "https://api.apihop.ai/v1/bing-search/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Bing: Copilot 답변

GET https://api.apihop.ai/v1/bing-search/copilot

매개변수

필드유형제약예시
querystring검색어; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192What is coffee?
countrystring국가 필터 (country); country: optional; ^[A-Za-z]{2}$-
languagestring언어; language: optional-
devicestring기기; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean응답 보관 안 함; zero_trace: optionaltrue

검증

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected

예시

bash
curl --get "https://api.apihop.ai/v1/bing-search/copilot" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=What is coffee?"

응답 및 오류

원본 JSON과 숫자 정밀도를 유지합니다. 예시는 성공한 빈 결과입니다. HTTP 400: 입력; 401: 인증; 402: 잔액; 403: 접근; 405: 메서드; 429: 제한; 5xx: 서비스. X-Request-Id를 보관하세요.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}