Inspiration The widespread dissemination of misinformation and "fake news" online creates a significant challenge for individuals trying to stay informed. Social media and news feeds can be overwhelming, making it difficult to discern credible information from false narratives. We were inspired to create a tool that would use the power of modern APIs to provide users with a more reliable and contextualized view of current events. What it does This tool offers a real-time news feed to help users assess information credibility. It gathers news from the News API. Then, it analyzes the news for context and potential misinformation using OpenAI and Gemini APIs. The tool cross-references the news with real-time social media sentiment and geolocation data from Twitter. The result is a personalized feed that shows current events and provides context to help users identify potential fake news. How it was built Several APIs were integrated to build this tool. The News API was used to get live headlines and articles. The text of these articles was passed to OpenAI and Gemini to perform natural language processing tasks. These tasks included summarization, sentiment analysis, and flagging of suspicious language or claims. The Twitter API was integrated to add a real-time, ground-level perspective. Geolocation was used to show what people are saying about a topic in a specific area. All API calls were organized and presented to the user through a clean interface. There was no need to train a model, as the existing intelligence of these services was used. Challenges encountered One of the main challenges was managing the large amount of data and API calls. Efficient asynchronous requests were implemented to avoid rate limits. This ensured a fast and responsive user experience. Synthesizing information from different sources into a clear format was another challenge. For example, a tweet from a specific location might contradict a headline from a major news outlet. Presenting this discrepancy in a meaningful way was a significant design challenge. Accomplishments A functional and insightful tool was created without a custom-trained machine learning model. By integrating existing APIs, a solution with fake news detection capabilities was quickly built. A dynamic user interface was successfully created. This interface combines data from different sources into a single, comprehensive view. What was learned The project demonstrated the power and flexibility of modern APIs. It showed that it is not always necessary to build a solution from the ground up. Leveraging services like OpenAI, Gemini, and News API can accelerate development and lead to innovative solutions. Valuable experience in data synthesis and real-time data processing was also gained. Future plans for fake news detection The next step for this project is to implement a user feedback system. This would allow users to flag potential fake news, which could refine the system's accuracy. Exploring the integration of more APIs, such as fact-checking databases, is also planned. The goal is to develop a platform that detects fake news and educates users on how to identify it.
Log in or sign up for Devpost to join the conversation.