Vetric
Access Vetric APIs with the Skyfire SDK to get data from Twitter, Facebook, LinkedIn, and Instagram.
-
Step 1: Install the Skyfire SDK
npm install @skyfire-xyz/skyfire-sdk
pip install skyfire-sdk
-
Step 2: Initialize the SDK
import { SkyfireClient } from '@skyfire-xyz/skyfire-sdk' const skyfire = new SkyfireClient({ apiKey: 'YOUR_API_KEY' })
import skyfire_sdk configuration = skyfire_sdk.Configuration( host = "https://api.skyfire.xyz" ) configuration.api_key['ApiKeyAuth'] = "YOUR_API_KEY"
-
Step 3: Call any of the Vetric APIs supported by the SDK
// search facebook for upcoming events async function vetricEventSearch(eventQuery: string, size: number): Promise<any>{ let res = await skyfire.vetric.facebookEventSearch(eventQuery, size) // use facebookEventSearchWithHttpInfo() for response headers included in the response return res }
# search facebook for upcoming events with skyfire_sdk.ApiClient(configuration) as api_client: api_instance = skyfire_sdk.VetricApi(api_client) api_response = api_instance.facebook_event_search('concerts', 3) # use facebook_event_search_with_http_info() for response headers included in the response
Additional Vetric Services
Facebook Marketplace search
// search Facebook Marketplace for items
async function vetricMarketplaceSearch(itemQuery: string, size: number): Promise<any>{
let res = await skyfire.vetric.facebookMarketplaceSearch(itemQuery, size)
// use facebookMarketplaceSeachWithHttpInfo() for response headers included in the response
return res
}
# search Facebook Marketplace for items
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.facebook_marketplace_search('bike', 3)
# use facebook_marketplace_search() for response headers included in the response
Facebook People Search
// seach Facebook for people
async function vetricFacebookPeopleSearch(personQuery: string): Promise<any>{
let res = await skyfire.vetric.facebookPeopleSearch(personQuery)
// use facebookPeopleSearchWithHttpInfo() for response headers included in the response
return res
}
# search Facebook for people
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.facebook_people_search('bill gates')
# use facebook_people_search_with_http_info() for response headers included in the response
Instagram People Search
// search Instagram for people
async function vetricInstagramPeopleSearch(personQuery: string): Promise<any>{
let res = await skyfire.vetric.instagramPeopleSearch(personQuery)
// use instagramPeopleSearchWithHttpInfo() for response headers included in the response
return res
}
# search Instagram for people
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.instagram_people_search('bill gates')
# use instagram_people_search_with_http_info() for response headers included in the response
LinkedIn Employee Search
// get a company's employees given their linkedIn identifier
async function vetricLinkedInCompanyEmployeeSearch(companyQuery: string): Promise<any>{
let res = await skyfire.vetric.linkedInCompanyPeopleSearch(companyQuery)
// use linkedInCompanyPeopleSearchWithHttpInfo() for response headers included in the response
return res
}
# get a company's employees given their linkedIn identifier
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.linked_in_company_people_search('tryskyfire')
# use linked_in_company_people_search_with_http_info() for response headers included in the response
LinkedIn Job Search
// get job postings for a company given their linkedIn identifier
async function vetricLinkedInJobSearch(companyQuery: string): Promise<any>{
let res = await skyfire.vetric.linkedInJobSearch(companyQuery)
// use linkedInJobSearchWithHttpInfo() for response headers included in the response
return res
}
# get job postings for a company given their linkedIn identifier
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.linked_in_job_search('cisco')
# use linked_in_job_search_with_http_info() for response headers included in the response
LinkedIn People Search
// search for people on linkedIn
async function vetricLinkedInPeopleSearch(personQuery: string): Promise<any>{
let res = await skyfire.vetric.linkedInPeopleSearch(personQuery)
// use linkedInPeopleSearchWithHttpInfo() for response headers included in the response
return res
}
# search for people on linkedIn
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.linked_in_people_search('bill gates')
# use linked_in_people_search_with_http_info() for response headers included in the response
Twitter Top Tweets
// get top tweets about a given topic
async function vetricGetTwitterTopTweets(topicQuery: string): Promise<any>{
let res = await skyfire.vetric.twitterTop(topicQuery)
// use twitterTopWithHttpInfo() for response headers included in the response
return res
}
# get top tweets about a given topic
with skyfire_sdk.ApiClient(configuration) as api_client:
api_instance = skyfire_sdk.VetricApi(api_client)
api_response = api_instance.twitter_top('soccer')
# use twitter_top_with_http_info() for response headers included in the response
Updated about 1 month ago