How to search tweets dynamically and embed them in a timeline



I am trying to search for tweets when a user enters an area name into my webpage and then display the latest tweets in an embedded timeline. I have used the ‘Twit’ package and can successfully search for tweets but I cannot seem to embed them. I tried using oEmbed but the JSON file doesn’t return the correct URL for the embed to work. Any advice or guidance please.


When you say

Can you be specific about the call you’re making to the API, and what is wrong with the response from the oEmbed endpoint?