티스토리는 주요기능이 포함된 OAuth 2.0 기반 open API를 제공합니다. 보안 프로토콜과 함께 REST방식을 지원합니다.
1. API기본 출력 형태 및 포멧
1. 기본 URL 포멧과 결과 출력 포멧 종류
json 출력시
https://www.tistory.com/apis/[KIND]/[ACTION]?access_token=[ACCESS_TOKEN]&output=json
xml 출력시
https://www.tistory.com/apis/[KIND]/[ACTION]?access_token=[ACCESS_TOKEN] (기본)
ex) 카테고리 리스트를 xml로 가져올 때
https://www.tistory.com/apis/category/list?access_token=abcdefghijklmnopqrstuvwxyz
ex) 글 리스트 2페이지를 json으로 가져올 때
https://www.tistory.com/apis/post/list?access_token=abcdefghijklmnopqrstuvwxyz&page=2&output=json
2. 사용할 수 있는 Open API 목록
1. 블로그 정보 시리즈(1건)
| 기능 | API URL | 비고 |
|---|---|---|
| 블로그 정보 API | https://www.tistory.com/apis/blog/info | - |
2. 게시글 시리즈(6건)
| 기능 | API URL | 비고 |
|---|---|---|
| 글쓰기 API | https://www.tistory.com/apis/post/write | 쓰기권한 필요 |
| 글수정 API | https://www.tistory.com/apis/post/modify | 쓰기권한 필요 |
| 글목록 API | https://www.tistory.com/apis/post/list | - |
| 글읽기 API | https://www.tistory.com/apis/post/read | - |
| 파일업로드 API | https://www.tistory.com/apis/post/attach | 쓰기 권한 필요 |
| 글삭제 API | https://www.tistory.com/apis/post/attach | 사전 협의 필요 |
3. 카테고리 시리즈(1건)
| 기능 | API URL | 비고 |
|---|---|---|
| 카테고리 목록 API | https://www.tistory.com/apis/category/list | - |
4. 댓글 시리즈(5건)
| 기능 | API URL | 비고 |
|---|---|---|
| 댓글목록 API | https://www.tistory.com/apis/comment/list | 쓰기 권한 필요 |
| 댓글쓰기 API | https://www.tistory.com/apis/comment/write | 쓰기 권한 필요 |
| 댓글수정 API | https://www.tistory.com/apis/comment/modify | 쓰기 권한 필요 |
| 최신 댓글 보기 API | https://www.tistory.com/apis/comment/newest | - |
| 댓글삭제 API | https://www.tistory.com/apis/comment/delete | 쓰기 권한 필요 |
5. 방명록 시리즈(4건)
| 기능 | API URL | 비고 |
|---|---|---|
| 방명록 쓰기 API | https://www.tistory.com/apis/guestbook/write | 쓰기 권한 필요 |
| 방명록 수정 API | https://www.tistory.com/apis/guestbook/modify | 쓰기 권한 필요 |
| 방명록 목록 API | https://www.tistory.com/apis/guestbook/list | - |
| 방명록 삭제 API | https://www.tistory.com/apis/guestbook/delete | 쓰기 권한 필요 |