{"info":{"_postman_id":"66ebc771-f4d6-4cab-bbdb-4cd00be55ab7","name":"Hashalytics","description":"<html><head></head><body><p>This collection includes API that can retrieve hashtag count on Instagram and display on the Airtable. User can use it to analysis how popular their products are by setting up customised hashtag on social media. Note: The authorisation key mentioned in this collection is dummy data only. User need to get a authorisation key from Airtable to use this collection. User can replace their authorisation key to the dummy authorisation key \"Bearer keyxxxxxxx\"</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14133821","collectionId":"66ebc771-f4d6-4cab-bbdb-4cd00be55ab7","publishedId":"TW6up9hJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-25T22:19:27.000Z"},"item":[{"name":"GET Retrieve Hashtag Count from Instagram","event":[{"listen":"test","script":{"id":"cd4152a1-3d1f-42a8-99ee-573966a51bd6","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"HashtagCount\", jsonData.graphql.hashtag.edge_hashtag_to_media.count);"],"type":"text/javascript"}}],"id":"182e5da8-cb14-40e1-a776-5276c9a42ae5","protocolProfileBehavior":{"disableBodyPruning":true,"disableCookies":true},"request":{"method":"GET","header":[],"url":"https://www.instagram.com/explore/tags/hoodies/?__a=1","description":"<p>This is the API to retrieve the count of a particular hashtag on Instagram. ProductName is a variable that user can be customised.</p>\n","urlObject":{"protocol":"https","path":["explore","tags","hoodies",""],"host":["www","instagram","com"],"query":[{"key":"__a","value":"1"}],"variable":[]}},"response":[],"_postman_id":"182e5da8-cb14-40e1-a776-5276c9a42ae5"},{"name":"GET Retrieve Airtable Records (Product Name is empty)","id":"8b070011-b32b-4624-aee1-625bd785b718","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer keyxxxxxxx","type":"text"}],"url":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics?maxRecords=100&view=Grid%20view&filterByFormula=%7BName%7D+%3D+''","description":"<p>Retrive empty records from Airtable so empty record can be removed later. The filter query needs to be included in the parametre to filter the empty record.</p>\n","urlObject":{"host":["https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"],"query":[{"key":"maxRecords","value":"100"},{"key":"view","value":"Grid%20view"},{"key":"filterByFormula","value":"%7BName%7D+%3D+''"}],"variable":[]}},"response":[],"_postman_id":"8b070011-b32b-4624-aee1-625bd785b718"},{"name":"GET Retrieve Airtable Records by ProductName","event":[{"listen":"test","script":{"id":"e1e807ce-4a45-4db0-aded-d264231675bb","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"RecordId\", jsonData.records[0].id);"],"type":"text/javascript"}}],"id":"a5a167d8-9efd-4522-87ad-39666459c9f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer keyxxxxxxx","type":"text"}],"url":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics?maxRecords=1&view=Grid%20view&filterByFormula=%7BName%7D+%3D+'hoodies'&=\n","description":"<p>Retrive empty records from Airtable so empty record can be removed later. The filter query will be the the Product Name in the Airtable.</p>\n","urlObject":{"host":["https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"],"query":[{"key":"maxRecords","value":"1"},{"key":"view","value":"Grid%20view"},{"key":"filterByFormula","value":"%7BName%7D+%3D+'hoodies'"},{"key":"","value":"\n"}],"variable":[]}},"response":[],"_postman_id":"a5a167d8-9efd-4522-87ad-39666459c9f5"},{"name":"POST Add Airtable Records","id":"5d3c2651-2860-46f3-8d7d-f627ac22601c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer keyxxxxxxx","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"records\": [\r\n    {\r\n      \"fields\": {\r\n        \"Name\": \"hoodies\",\r\n        \"Number of Inventory\": 10,\r\n        \"Hashtag Count\": 0\r\n      }\r\n    }\r\n  ]\r\n}"},"url":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics","description":"<p>This API is to insert data to the Airtable. Data will include the count of the hashtag from Instagram, product name and the inventory count.</p>\n","urlObject":{"host":["https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d3c2651-2860-46f3-8d7d-f627ac22601c"},{"name":"New Request","id":"c335c210-a82c-4b8d-9ca9-7dd9947ac019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer keyxxxxxxx","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"records\": [\r\n    {\r\n      \"id\": \"\",\r\n      \"fields\": {\r\n        \"Name\": \"hoodies\",\r\n        \"Number of Inventory\": 10,\r\n        \"Hashtag Count\": 0\r\n      }\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics","description":"<p>This API is to update data to the Airtable. Data will include the count of the hashtag from Instagram, product name and the inventory count. This is to prevent duplicate record inserting to the Airtable.</p>\n","urlObject":{"host":["https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"],"query":[],"variable":[]}},"response":[],"_postman_id":"c335c210-a82c-4b8d-9ca9-7dd9947ac019"},{"name":"DEL Remove Airtable Records","id":"4dffcf7d-2fa1-4c0b-8410-cb7385d2e69e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer keyxxxxxxx","type":"text"}],"url":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics?records[]=recqvOecN5Xcb7T9r","description":"<p>This API is to delete a particular records, can be one record or multiple records from the Airtable.</p>\n","urlObject":{"host":["https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"],"query":[{"key":"records[]","value":"recqvOecN5Xcb7T9r"}],"variable":[]}},"response":[],"_postman_id":"4dffcf7d-2fa1-4c0b-8410-cb7385d2e69e"}],"event":[{"listen":"prerequest","script":{"id":"9fd6f0ae-e91b-4896-92ca-3a0f563abcf2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7cfcf760-b55e-4e50-b04a-008faa5e37e8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"APIKey","value":"Bearer keyxxxxxxx"},{"key":"baseURL","value":"https://api.airtable.com/v0/appWmgrwCdV2cD77n/Hashalytics"},{"key":"ProductName","value":"hoodies"},{"key":"Inventory","value":"10"},{"key":"HashtagCount","value":"0"},{"key":"RecordId","value":""}]}