Retrieve recent posts that match a hashtag.
Retrieve recent posts that mention a social media profile.
npx @superfaceai/cli install social-media/posts-lookup
const { SuperfaceClient } = require('@superfaceai/one-sdk');
const sdk = new SuperfaceClient();
async function run() {
// Load the installed profile
const profile = await sdk.getProfile('social-media/posts-lookup');
// Use the profile
const result = await profile
.getUseCase('FindByHashtag')
.perform({
hashtag: 'apis'
});
return result.unwrap();
}
run();
Switching providers Learn how to use automatic failover or switch between providers manually.
Missing your favorite provider? Tell us which provider you'd like to use.