DeepSearch Guide
  • 딥서치 가이드
  • DeepSearch API
    • DeepSearch Data Platform
    • API 사용 방법
    • 데이터
      • 시장데이터
      • 개요데이터
      • 문서데이터
      • 재무데이터
        • 분기재무제표 쿼리
    • 기본적인 데이터 조회 방법
    • 쿼리를 통한 데이터 조회
      • 딥서치 쿼리 설명 및 응용
      • 기업검색
        • 데이터 기반 기업 검색
        • 문서 기반 기업 검색(뉴스, 증권사리포트, IR, 특허)
        • 주주 기반 기업 검색
        • 산업 기반 기업 검색
        • 사업 기반 기업 검색
        • 주소 기반 기업 검색
        • 기업명 기반 기업 검색
        • 외부감사여부 기반 기업 검색
        • 폐업여부 기반 기업 검색
        • 상장여부 기반 기업 검색
      • 조회된 데이터를 연산
      • FAQ 및 에러모음
    • API 함수를 통한 데이터 조회
      • 국내기업
        • 기업 검색
          • FindEntity
          • GetEntitySummary
          • FindEntityByName
          • FindEntityByShareholderName
          • FindEntityByIndustryID
          • FindEntityByBusinessArea
          • FindEntityByAddress
          • FindEntityInDocuments
          • FindAssociatedEntity
          • SearchFinancialStatementsAuditOpinion
        • 기업 정보 조회
          • GetCompanySummary
          • GetCompanyHistory
          • GetCompanyBusinessGoal
          • GetCompanyBusinessSummary
          • GetCompanyRelatedFirms
          • GetCompanyProductsSales
          • GetCompanyDebts
          • GetCompanyDividends
          • GetCompanyShareholders
          • GetCompanyEmployees
          • GetCompanyExecutives
          • GetCompanyBranches
          • GetFinancialStatementsAuditOpinion
        • 재무제표 조회
          • GetFinancialStatements
          • GetAvailableFinancialStatements
        • 공시 정보 조회
          • GetDartCapitalChange
          • GetDartDividends
          • GetDartShareRepurchase
          • GetDartMajorityShareholders
          • GetDartMajorityShareholderChange
          • GetDartMinorityShareholders
          • GetDartExecutives
          • GetDartEmployees
          • GetDartIndividualDirectorCompensation
          • GetDartOverallDirectorCompensation
          • GetDartTopIndividualCompensation
          • GetDartInvestmentInOthers
        • 컨센서스 정보 조회
          • GetConsensusInstitutionList
          • GetConsensusAnalystList
          • SearchAnalystReports
          • SearchTargetPrices
          • SearchFirmFundamentalsForecasts
        • 이슈 기업 목록 조회
          • GetCompanyShareholderChanges
          • GetTargetPriceConsensusChange
          • GetFundamentalsConsensusChange
        • 주가 정보 조회
          • GetStockSymbols
          • GetStockPrices
          • GetMarketIndexSymbols
          • GetMarketIndexes
        • 채권 정보 조회
          • GetBondClassificationCodeList
          • GetBondIssuerList
          • GetBondIssuerListFromIndustry
          • GetBondIssuerSummaryInfo
          • GetBondClassSummaryInfo
          • GetBondSummaryInfoPerIndustry
          • GetLatestBondIssues
          • SearchBondIssuerByName
          • GetBondIssuanceHistory
          • GetBondRepaymentSchedule
          • GetBondYields
          • GetBondYieldsForIndustry
          • GetAverageBondYieldTimeSeries
          • GetInterpolatedBondYields
          • GetRiskFreeYields
          • GetBondYieldPrincipalComponents
          • ConvertBondIssuerCodeToNICESymbol
          • ConvertNICESymbolToBondIssuerCode
      • 해외기업
        • 기업 정보 조회
          • 기업 목록 조회
          • 기업 개요 조회
          • 기업 재무 데이터 조회
        • 주가 정보 조회
          • 주가 정보 조회
      • 산업
        • 산업 정보 조회
          • GetAggregateIndustryInfo
          • GetAggregateIndustryConsensus
          • GetMarketSummaryInfoByIndustry
        • 기업 주제 조회
          • GetConditionalTagMetadata
          • FindEntityByTag
          • GetEntityTags
        • 기업 집단 정보 조회
          • FindConglomerateByName
          • FindConglomerateByID
          • GetConglomerateMembers
          • GetConglomerateFinancialStatements
      • 인물
        • 기업 임원 검색
          • FindPersonBio
          • FindPeopleByName
          • FindPeopleByBirthday
        • 주식 부자 목록 추출
          • FindRichestShareholders
      • 문서
        • 문서 검색
          • DocumentSearch
            • 문서 심화검색
          • DocumentTrends
          • DocumentAggregation
          • GetSentimentScore
        • 토픽 검색
          • SearchTrendingTopics
          • GetTrendingTopic
          • SearchHistoricalTopics
          • GetHistoricalTopic
        • 유사 단어 추출
          • SimilarKeywords
      • 이벤트
        • 주식 포트폴리오 성과 분석
          • ComputePortfolioReturns
          • AnalyzePortfolioReturns
        • 주식 시장 이벤트 분석
          • ComputeEventDayStockReturns
          • ComputeStockReturnCorrelationWith
          • GetIndustryReturnsOnEventDates
          • GetCumulativeIndustryReturns
        • 채권 시장 이벤트 분석
          • GetBondYieldChangesPerIssuer
          • GetBondYieldChangesPerClassification
          • GetBondYieldChangesPerIndustry
      • 경제 지표
        • 경제 지표 검색
          • FindEntity
        • 한국은행 데이터 조회
          • QueryBankOfKoreaSeriesInfo
          • QueryBankOfKoreaSeriesInfoSimple
          • QueryBankOfKoreaSeriesData
          • QueryBankOfKoreaSeriesDataSimple
        • 미연방은행 (FRED) 데이터 조회
          • QueryFredSeriesInfo
          • QueryFredSeriesData
          • GetFredCategoryOfDataSeries
          • GetFredDataSeriesListUnderCategory
        • IMF 데이터 조회
          • GetImfSeriesInfo
          • GetImfSeriesValues
          • GetImfDataflowAnnotations
          • GetImfIndicatorListOfSameCountry
          • GetImfCountryListOfSameIndicator
        • OECD 데이터 조회
          • GetOecdSeriesInfo
          • GetOecdSeriesValues
          • GetOecdDatasetAnnotations
          • GetOecdRelatedIndicatorList
        • World Bank 데이터 조회
          • QueryWorldBankSeriesInfo
          • QueryWorldBankSeriesData
          • GetWorldBankCountryListOfIndicator
          • GetWorldBankIndicatorListOfSameSource
        • 통계청 데이터 조회
          • QueryKosisTableInfo
          • GetKosisAvailableSampleDates
          • GetKosisTableCategoryItemFreqList
          • QueryKosisCrossSectionData
          • QueryKosisTimeSeriesData
        • 딥서치 자체 수집 데이터 조회
          • QueryDeepSearchOwnSeriesInfo
          • QueryDeepSearchOwnSeriesValues
          • QueryDeepSearchOwnDataSeriesListOfSameCategory
    • 결과 레이아웃
      • Input
      • Result:DataFrame
      • Result:SingleValue
      • Result:DocumentSearchResult
      • Result:DocumentTrendsResult
      • Result:TrendingTopicsSearchResult
      • Result:TrendingTopicResult
      • Result:HistoricalTopicsSearchResult(검색)
      • Result:HistoricalTopicsSearchResult(상세)
      • Result:PortfolioReturns
      • Result:PortfolioAnalysis
    • 챗딥서치
      • 문서 QA
      • 딥서치 Function Call
    • 토픽 인사이트
      • Insight
      • Question
      • Answer
  • HELP CENTER
    • 자주 묻는 질문
      • 가입 및 회원 정보
      • 플랜 및 결제/환불
      • 데이터
      • 기업 발굴하기
    • 공지 사항
      • '딥서치 마이노트' 런칭 안내
      • '딥서치 신규 엑셀 애드인' 런칭 안내
      • '경제지표' 메뉴 일시 중단
      • '밸류에이션 자동화 서비스' 업데이트
      • 딥서치 홈 화면 개편 안내
Powered by GitBook
On this page
  • Function specification
  • Parameters
  • Result Layout
  • 활용 예시

Was this helpful?

  1. DeepSearch API
  2. API 함수를 통한 데이터 조회
  3. 문서
  4. 문서 검색

DocumentAggregation

문서를 기반으로 다양한 조건으로 집계하여 처리한다.

PreviousDocumentTrendsNextGetSentimentScore

Last updated 2 years ago

Was this helpful?

Function specification

DocumentAggregation(category, section, query, groupby, 
date_from=None, date_to=None, min_count=0)

Parameters

Parameter

Type

Description

category

string or list of string

국내뉴스:news

증권사 보고서: research

공시,IR : company

특허 : patent

section

string or list of string

Category가 news일 경우

정치: politics

경제: economy

사회: society

문화: culture

세계: world

기술/IT: tech

연예: entertainment

사설: opinion

Category가 research일 경우

시장 전망: market

투자전략: strategy

기업 보고서: company

산업 보고서: industry

경제 보고서: economy

채권 보고서: bond

Category 가 company 인 경우

IR : ir

공시 : disclosure

Category 가 patent 인 경우

특허 : patent

query

string

검색 쿼리

groupby

string

어떤 조건으로 집계할 것인지 여부. 개별 문서의 결과 항목들을 기준으로 집계가 가능하다. 예를 들어, named_entities.entities.company.symbol:100 로 지정하면, 문서를 named_entities 의 심볼을 기준으로 최대 100개까지 집계한다는 의미이다.

date_from

string

검색 시작 시점 (YYYYMMDD)

date_to

string

검색 종료 시점(YYYYMMDD)

min_count

int

최소 결과 개수 ( 기본값 : 0 )

Result Layout

활용 예시

DocumentAggregation 을 이용한 특정 주제와 관련된 기업 리스트 추출

  • DocumentAggregation("news", None, "키워드", "named_entities.entities.company.name:100", date_from=2020-01-01)

예시 ) 코로나
뉴스 문서를 기반으로, 코로나가 언급된 기업 리스트를 100 추출

> DocumentAggregation("news", None, "코로나", "named_entities.entities.company.name:100", date_from=2020-01-01)

...
key	count
더불어민주당	57,206
페이스북코리아	28,729
연합뉴스	27,555
삼성전자	25,733
현대자동차	24,515
한국은행	16,667
네이버	15,271
LG전자	13,823
대한항공	12,623
디지털타임스	10,461
한국방송공사	10,315
케이티	9,590
SBS	9,248
롯데쇼핑	9,136
기아자동차	9,036
SK	8,812
롯데지주	8,506
이데일리	8,306
애플코리아	8,047
...

DocumentAggregation 을 이용한 ESG 이슈가 발생한 기업 리스트 추출

  • DocumentAggregation("news", "economy", "ESG검색조건", "securities.name:100", date_from=2020-01-01)

예시 ) ESG 활용 1
뉴스 문서를 기반으로, 환경(E) & 긍정(1)으로 분류 기업 리스트를 100 추출

> DocumentAggregation(”news”,“economy”,"esg.category.name:환경 and esg.polarity.name:긍정","securities.name:100",date_from=2020-01-01)

...
key	count
POSCO	115
SK	106
롯데케미칼	90
SK이노베이션	70
현대제철	61
삼성전자	60
현대차	56
LG화학	52
대한항공	36
한국조선해양	35
한국전력	34
한화솔루션	32
DB	29
GS건설	28
두산중공업	28
풀무원	28
LG전자	27
SK케미칼	25
한국가스공사	25
...

예시 ) ESG 활용 2
뉴스 문서를 기반으로, 사회(S) & 부정(-1)으로 분류 기업 리스트를 100 추출


> DocumentAggregation(”news”,“economy”,"esg.category.label:S and esg.polarity.name:부정","securities.name:100",date_from=2020-01-01)

...
key	count
CJ대한통운	284
HDC현대산업개발	117
삼성전자	73
한국전력	53
SK	51
HDC	43
POSCO	37
삼성생명	36
현대차	31
CJ	26
NAVER	24
한화솔루션	24
일동제약	23
대한항공	22
현대중공업	21
KT	17
DB	16
오스템임플란트	15
SK텔레콤	14
...

DocumentAggregation 을 이용한 특정 주제에 대한 워드 클라우드 표시

  • DocumentAggregation("topic-news",%20None,%20"키워드",groupby="keywords.keyword:100",%20date_from=2010-01-01)

예시) 삼성전자
토픽 문서를 기반으로, 삼성전자와 관련된 키워드 100개 추출

> DocumentAggregation("topic-news",%20None,%20"삼성전자",groupby="keywords.keyword:100",%20date_from=2010-01-01)

결과 : 
key: [
"삼성전자",
"출시",
"스마트폰",
"공개",
"확대",
"1위",
"글로벌",
"올해",
"가능",
"국내",
"애플",
"강화",
"LG전자",
"세계",
"미국",
"제품",
"시장",
"시작",
"본격",
"코스피",
"최고",
"최대",
"예상",
"전망",
"돌파",
"외국인",
"규모",
"반도체",
..
]

Result:DataFrame