資料說明
- 透過Hash tag關鍵字簡易搜尋Instagram
- Instagram改版後API權限審核不易, 此API透過簡單的查詢顯示部分資料
- 回傳資料依關鍵字不同可能為0~27筆
- 此API同一關鍵字查詢後緩存一天, 超過一天才會重新擷取
Endpoint
GET http://api.opencube.tw/instagram
Request
# | 參數名稱 | 必填 | 說明 |
---|
1 | keyword | 是 |
Hash tag關鍵字
|
Response
# | 參數名稱 | 說明 |
---|
1 | more | 完整結果Instagram URL |
2 | keyword | 查詢關鍵字 |
| items[] | 結果集合 |
3 | code | 貼文編號 |
4 | url | 貼文網址 |
5 | time | 發佈時間 unix timestamp |
6 | comments | 評論數 |
7 | likes | Like數 |
8 | caption | 所有hash tag |
9 | owner | 發佈者ID |
10 | thumbnail | 縮圖URL |
11 | image | 原圖URL |
12 | image_width | 原圖寬度(px) |
13 | image_height | 原圖高度(px) |
14 | is_video | 是否為影片 true、false |
Response Example
{"data":{"more":"https://www.instagram.com/explore/tags/%E5%8F%B0%E7%81%A3","items":[{"code":"BIFFIn7hHWV","time":1469009308,"comments":60,"likes":2009,"caption":"Good evening❤Good morning...🌼🌸🌹\n疲れた😊🌷…。 夕陽は綺麗だけど 🌷🍀🌼💗皆さん今日もお疲れ様でした🚁🌅🎪🌷🌸😊🍀\n안녕하세요🌠\nBom dia! 🌄Boa tarde! 🍻Boa noite!🌌🌹\n#東京カメラ部 #写真好きな人と繋がりたい #team_jp_ #RECO_ig #カメラ女子#カメラ好きな人と繋がりたい#風景#aviation#kings_transports #pilotlife #飛行機倶楽部#crewlife#旅客機 #flight#tourism#analog #filmisnotdead#boeinglovers#spotting #instaviation#instagramaviation #airbus#aircraft#airport#самолет#空港 #instaaviation#icu_japan#доброеутро \n#台灣\nPhoto by suda kana","owner":{"id":"1906864924"},"thumbnail":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/c83.0.914.914/13706990_156578914750118_1982819520_n.jpg?ig_cache_key=MTI5ODQ2NjY1MDQyOTA5MzI2OQ%3D%3D.2.c","image":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/13706990_156578914750118_1982819520_n.jpg?ig_cache_key=MTI5ODQ2NjY1MDQyOTA5MzI2OQ%3D%3D.2","image_width":1080,"image_height":914,"is_video":false,"url":"https://www.instagram.com/p/BIFFIn7hHWV"},{"code":"BIEYobSjo6w","time":1468985976,"comments":12,"likes":2498,"caption":"☁️\n雲的總和輕快柔軟\n✁………………………………………\n#台灣 #日常 #攝癮詩 #VSCO #VSCOCAM #IGERS #TAIWAN #TAIPEI #DAILY #TBT #VSCOGOOD #INSTADAILY #INSTAGOOD #INSTAGALLERY #MINIMAL #ISEETAIWAN #IFORMOSA #HUNTGRAMTAIWAN #SEEMYCITY #FREEZFRAM #NIKON","owner":{"id":"1303029397"},"thumbnail":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/13707195_1755104998034537_51696810_n.jpg?ig_cache_key=MTI5ODI3MDkyMzc4NzI0MzE4NA%3D%3D.2","image":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/13707195_1755104998034537_51696810_n.jpg?ig_cache_key=MTI5ODI3MDkyMzc4NzI0MzE4NA%3D%3D.2","image_width":1080,"image_height":1080,"is_video":false,"url":"https://www.instagram.com/p/BIEYobSjo6w"},{"code":"BIFNy4ugWng","time":1469013849,"comments":3,"likes":1428,"caption":"【🇹🇼臺灣青女U19】\n\n臺灣青女21日將前往泰國,參加7月23日至31日的亞洲青年(U19)女排賽。\n\n在15個隊伍中,臺灣預賽和南韓、澳洲和菲律賓同分在D組。\n\n臺灣將於臺北時間7月23日17時首戰澳洲,24日19時對戰南韓,25日17時迎戰菲律賓。\n\n這才由總教練羅仲仁老師帶領青女隊員包括:陳昱潔、蔡沁瑤、陳佳蔓、廖瑩椿、黃蔓亞、邱雅慧、陳姿云、張嘉羚、黃瀞萱、劉桂伶、黃貞淯、王鈺涵,希望能有好的表現!\n\n今天臺灣女排以0:3輸給日本,明天中午12:00將對上北韓,大家一起為臺灣女排加油吧!! #排球 #台灣 #女排 #青女 #U19 #volleyball #taiwan #tailand #China #泰國 #中國","owner":{"id":"2298854959"},"thumbnail":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/13721050_921778617951513_1127500932_n.jpg?ig_cache_key=MTI5ODUwNDczOTA1NDUxMjYwOA%3D%3D.2","image":"https://scontent-sjc2-1.cdninstagram.com/t51.2885-15/e35/13721050_921778617951513_1127500932_n.jpg?ig_cache_key=MTI5ODUwNDczOTA1NDUxMjYwOA%3D%3D.2","image_width":1080,"image_height":1080,"is_video":false,"url":"https://www.instagram.com/p/BIFNy4ugWng"}]},"status":200}
錯誤代碼
status | 說明 |
---|
200 | 成功 |
400 | 發生錯誤 |
404 | Endpoint錯誤 |
500 | 系統錯誤 |