070 7893 3508

현재 콘텐츠 : 22,451,551건
전문상업용 고품질 이미지 라이브러리

Fotolia API 이용 가이드

API Key

Fotolia 데이터베이스를 연결하기 위해서는 먼저 Fotolia API 키가 필요합니다. API 키는 회원 로그인 후 “도구상자” 에서 API 신청서를 작성함으로써 간단히 받을 수 있습니다. Fotolia API 키 종류는 다음의 3가지 입니다 : 파트너 API, 개발 API, 비지니스 API 각각의 API 기능은 아래 표를 참조하시기 바랍니다. 1개 이상의 API 키를 동시에 이용할 수 있습니다.

API 이용 약관

API 이용 약관은 API 이용 제반에 관한 내용을 규정하고 있습니다. API를 이용하기 전 API 이용 약관을 확인하시기 바랍니다.

인코딩

Fotolia API 내 모든 데이터는 UTF-8 형식으로 인코딩 되어 있어야 합니다.
UTF-8 인코딩 자세히 알아보기

Deprecated XML-RPC API

If you already implemented our API using the deprecated XML-RPC server, you can still access its documentation. We strongly encourage you to update it to use the new REST API as it won't be updated anymore

인증

몇몇 API 메소드는 인증 과정이 필요합니다 (아래 표 참조). 인증 과정은 비지니스 API 및 개발 API 에서만 필요하며, Fotolia 로그인을 통한 본인 확인 절차와 동일합니다. 로그인 ID 와 비밀번호는 API를 통해 보안화된 방식으로 전송되며, 로그인이 성공적으로 이루어지면 세션 ID가 할당됩니다. 이 세션 ID 는 각각의 API 메소드 이용 시 필요합니다. 인증 과정에 대한 보다 자세한 내용은 여기를 참조하시기 바랍니다.

API 호출 지원량

Fotolia를 통해 지원되는 API 호출은 500/시간, 혹은 10,000/일으로 제한되어 있습니다. 기본 지원량 이상의 호출량이 예상되는 경우에는 서비스 지원으로 문의하시기 바랍니다.

API 메소드

API 메소드는 API를 통해 다양한 기능을 설정할 수 있도록 해줍니다. 각각의 API 에 따른 기능 확인을 위해서는 다음의 표를 참조하세요.

API 메소드 파트너 API 비지니스 API 개발 API 리셀러 API 인증 내용(기능)
검색
getSearchResults Authorized Authorized Authorized Authorized no 최대 검색 기능
getCategories1 Authorized Authorized Authorized Authorized no 주제카테고리
getCategories2 Authorized Authorized Authorized Authorized no 컨셉카테고리
getTags Authorized Authorized Authorized Authorized no 태그 클라우드
getGalleries Authorized Authorized Authorized Authorized no 공개갤러리
getSeasonalGalleries Authorized Authorized Authorized Authorized no 공개갤러리
getCountries Authorized Authorized Authorized Authorized no 국가 리스트t
미디어
getMediaData Authorized Authorized Authorized Authorized no 미디어에 관한 모든 정보
getBulkMediaData Authorized Authorized Authorized Authorized no 하나 이상의 미디어에 대한 모든 정보를 반환
getMediaGalleries Authorized Authorized Authorized Authorized no 미디어 관련 갤러리
getMedia Prohibited Authorized Prohibited Authorized yes 다운로드 링크(미디어구입)
getMediaComp Authorized Authorized Authorized Authorized no 샘플 이미지 URL
사용자
loginUser Authorized Authorized Authorized Authorized no 사용자 로그인(인증 필요)
refreshToken Authorized Authorized Authorized Authorized no Renew authentication token
userSignUp Authorized Authorized Authorized Authorized no Create a new Fotolia user
userEditProfile Authorized Authorized Authorized Authorized yes Update the profile of a Fotolia's member
getUserData Authorized Authorized Authorized Authorized yes 로그인중인 사용자 정보
getSalesData Authorized Authorized Authorized Authorized yes 사용자 매출 데이터 추출
getUserStats Authorized Authorized Authorized Authorized yes 로그인중인 사용자 계정 통계
getUserGalleries Authorized Authorized Authorized Authorized yes 로그인중인 사용자 갤러리
getUserGalleryMedias Authorized Authorized Authorized Authorized yes 로그인중인 사용자 라이트박스/갤러리
deleteUserGallery Authorized Authorized Authorized Authorized yes 로그인중인 사용자 갤러리 삭제
createUserGallery Authorized Authorized Authorized Authorized yes 로그인중인 사용자 새 갤러리 생성
addToUserGallery Authorized Authorized Authorized Authorized yes 로그인중인 사용자 갤러리 콘텐츠 추가
removeFromUserGallery Authorized Authorized Authorized Authorized yes 로그인중인 사용자 갤러리 콘텐츠 삭제
user.moveUpMediaInUserGallery Authorized Authorized Authorized Authorized yes move up a media in an user galleryr
user.moveDownMediaInUserGallery Authorized Authorized Authorized Authorized yes move down a media in an user gallery
user.moveMediaToTopInUserGallery Authorized Authorized Authorized Authorized yes move a media to top position in an user gallery
getUserAdvancedStats Authorized Authorized Authorized Authorized yes 로그인중인 사용자 계정 상세 통계
getLastOnlineContents Authorized Authorized Authorized Authorized Oui Return last online files of the current user
getUploadFolders Authorized Authorized Authorized Authorized Oui Return the upload folders list of the authenticated contributor
getUploadFolderFileIds Authorized Authorized Authorized Authorized yes return file IDs inside an upload folder
uploadIdCard Authorized Authorized Authorized Authorized Yes Upload a new contributor ID card
upload Authorized Authorized Authorized Authorized Yes Upload a new file into user's account
getLastUploadedMedia Authorized Authorized Authorized Authorized Yes List the uploads made the last 7 days
쇼핑카트
shoppingcart.getList Prohibited Authorized Prohibited Authorized yes 쇼핑카트
shoppingcart.add Prohibited Authorized Prohibited Authorized yes 사용자 쇼핑카트에 미디어 추가
shoppingcart.update Prohibited Authorized Prohibited Authorized yes 사용자 쇼핑카트 내 미디어 업데이트
shoppingcart.remove Prohibited Authorized Prohibited Authorized yes 사용자 쇼핑카트 미디어 삭제
shoppingcart.transferToLightbox Prohibited Authorized Prohibited Authorized yes 사용자 쇼핑카트 미디어 삭제 - 라이트박스에 추가
shoppingcart.clear Prohibited Authorized Prohibited Authorized yes 사용자 쇼핑카트 비우기
기타
getData Authorized Authorized Authorized Authorized no Fotolia 일반 정보
test Authorized Authorized Authorized Authorized no "Success"
리셀러 API
user.subaccount.getIds Prohibited Prohibited Prohibited Authorized no 이용가능한 모든 서브계정 ID 배열
user.subaccount.create Prohibited Prohibited Prohibited Authorized no 리셀러 서브계정 생성
user.subaccount.delete Prohibited Prohibited Prohibited Authorized no 리셀러 서브계정 삭제
user.subaccount.edit Prohibited Prohibited Prohibited Authorized no 리셀러 서브계정 데이터 업데이트
user.subaccount.get Prohibited Prohibited Prohibited Authorized no 리셀러 서브계정 상세 정보 확인
user.subaccount.getPurchasedContents Prohibited Prohibited Prohibited Authorized no 서브계정에 의한 구매내역 확인
media.getLicense Prohibited Prohibited Prohibited Authorized no 개별 거래에 대한 리셀러-구매자 라이센스

Query Format

HTTP

The Fotolia API is a REST API, available via standard HTTP calls, using the method GET for read-only methods, the method POST for methods that modify data or log the user in, and the standard query string to pass arguments.
More information about REST.

To use the REST API, each request must be sent using your API key as the HTTP username, and either an empty string (for public methods) or a session token (for methods that require authentication) as the HTTP password.

Base URL

The base URL for the REST API is: http://api.fotolia.com/Rest/1/

Return format

The data returned by the REST API is formatted in JSON, a format that can be parsed with most modern programming languages.
More information about JSON.

Query Example

In this example, we call the method main/test with the API key 'exampleApiKey' as the HTTP username, and an empty HTTP password since the method is public. The authorization header thus uses the base64 encoded string 'exampleApiKey:'.

GET /Rest/1/main/test HTTP/1.0
Host: api.fotolia.com
Authorization: Basic ZXhhbXBsZUFwaUtleTo=

Methods that are called using GET may also be called directly by URL, so URL in this example would be: http://exampleApiKey:@api.fotolia.com/Rest/1/main/test

Response Example

{
    "test":"Success"
}

API Kits

You can use a kit in order to help simplify API use. A list of kits available is listed below. Please contact us to have your kit listed.

PHP, Java and Python

사업자명 : Fotolia LLC | 대표자 : Oleg Tschetzoff | 주소 : 41 East 11th Street, 11th Floor, New York, NY 10003 USA | 전화번호 : 070 7893 3508 | 이메일 : support-kr@fotolia.com