<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz" -->

---
title: Build a Polymarket research snapshot with two API calls
description: A small curl-and-jq pipeline combines a Polymarket Gamma API call for an active Fed decision market with a macro news API call from AlphAI to build a quick...
canonical: https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build a Polymarket research snapshot with two API calls | daily.dev
og:description: A small curl-and-jq pipeline combines a Polymarket Gamma API call for an active Fed decision market with a macro news API call from AlphAI to build a quick...
og:url: https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz
og:image: https://api.daily.dev/og/posts/Nsck5rynZ.png
og:image:alt: Build a Polymarket research snapshot with two API calls
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a Polymarket research snapshot with two API calls

**[AlphAI](https://daily.dev/sources/alphai)** · [@mikhailmakeev](https://daily.dev/mikhailmakeev) · 2 min read · 0 upvotes · 0 comments

## Summary

A small curl-and-jq pipeline combines a Polymarket Gamma API call for an active Fed decision market with a macro news API call from AlphAI to build a quick research snapshot. It highlights gotchas like empty resolutionSource fields, deduplicating repeated coverage of the same announcement, and treating relevance scores as not equivalent to outcome probabilities. A fuller Python version with a CPI/payrolls/FOMC calendar and saved JSON briefs is linked externally. The author runs AlphAI, which supplies the news data.

## Content

Two API calls put a Polymarket Fed event next to recent macro coverage. Here's a small version you can run with curl and jq. I run AlphAI, which supplies the news half.

First, keep the market rules alongside the prices:

```bash
curl -fsS \
  'https://gamma-api.polymarket.com/events/slug/fed-decision-in-october-20260617190323537' \
  | jq '{title, markets: [.markets[] | select(.active and (.closed | not)) |
    {question, description, resolutionSource, outcomes, outcomePrices}]}'
```

Then fetch a reading shortlist using your own `ALPHAI_API_KEY`:

```bash
curl -fsS \
  -H "Authorization: Bearer $ALPHAI_API_KEY" \
  'https://api.alphai.io/api/news/macro/?category=macro_economy&min_relevance=7&page_size=5' \
  | jq '.results[] | {title: .original.title,
    summary: .original.summary, source: .original.url,
    published: .original.time_published, received: .original.created_at}'
```

In the September 17 run, Gamma returned five markets for the October Fed decision. The structured `resolutionSource` was empty, but the description named the FOMC statement. An agent that reads only the convenience field would miss that.

The news call returns macro background, so check each item's connection to the meeting. Its relevance score isn't an outcome probability. Keep repeated coverage of the same announcement from becoming several pieces of evidence.

The news call costs one request on AlphAI's Free plan: one key, 20/min and 100/day, no card. Gamma takes no key. Use a current Fed event slug when October's closes.

The full Python version adds the CPI/payrolls/FOMC calendar and saves a timestamped JSON brief. Code tested live. Drafted with AI assistance. AlphAI is independent of Polymarket.

[Full Python walkthrough](https://dev.to/makeev/build-a-polymarket-research-brief-with-python-and-alphai-1hj6)

## Similar posts on daily.dev

- [Fetch and Process Live Market Quotes Using Financial APIs in Python](https://daily.dev/posts/fetch-and-process-live-market-quotes-using-financial-apis-in-python-jqcfznbeo) · Medium · 0 upvotes · 0 comments
- [How To Use Prediction Market Data Like Hedge Funds \(Complete Roadmap\)](https://daily.dev/posts/how-to-use-prediction-market-data-like-hedge-funds-complete-roadmap--x7oaaupxd) · Coins Bench · 0 upvotes · 0 comments
- [How to Build a Market Research Copilot with MCP and Python \[Full Handbook\]](https://daily.dev/posts/how-to-build-a-market-research-copilot-with-mcp-and-python-full-handbook--ctomai4kk) · freeCodeCamp · 2 upvotes · 0 comments
- [How to Build an LLM Market Copilot MVP with LangChain, APIs, and Streamlit](https://daily.dev/posts/how-to-build-an-llm-market-copilot-mvp-with-langchain-apis-and-streamlit-pgg2hjywf) · freeCodeCamp · 2 upvotes · 0 comments
- [How to Choose the Best Stock Market API for FinTech Projects and AI Agents](https://daily.dev/posts/how-to-choose-the-best-stock-market-api-for-fintech-projects-and-ai-agents-leqiusjir) · freeCodeCamp · 3 upvotes · 0 comments

---

Tags: [#bash](https://daily.dev/tags/bash), [#polymarket](https://daily.dev/tags/polymarket)

[View this post on daily.dev](https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz","headline":"Build a Polymarket research snapshot with two API calls","text":"A small curl-and-jq pipeline combines a Polymarket Gamma API call for an active Fed decision market with a macro news API call from AlphAI to build a quick research snapshot. It highlights gotchas like empty resolutionSource fields, deduplicating repeated coverage of the same announcement, and treating relevance scores as not equivalent to outcome probabilities. A fuller Python version with a CPI/payrolls/FOMC calendar and saved JSON briefs is linked externally. The author runs AlphAI, which supplies the news data.","url":"https://daily.dev/posts/build-a-polymarket-research-snapshot-with-two-api-calls-nsck5rynz","datePublished":"2026-09-17T11:12:19.418Z","dateModified":"2026-09-17T11:12:38.439Z","author":{"@type":"Person","name":"Mikhail Makeev","url":"https://daily.dev/mikhailmakeev","image":"https://lh3.googleusercontent.com/a/ACg8ocIjcvDU1gmJ9-KJDeTYqY2rMdl5QxcWYtLTGSXrj8ubF4nwar_w=s96-c","description":"Owner of alphai.io","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5200}},"image":"https://media.daily.dev/image/upload/s--EvuAy6-t--/f_auto/v1789643539/posts/Nsck5rynZ?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/alphai","name":"AlphAI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AlphAI","item":"https://daily.dev/squads/alphai"},{"@type":"ListItem","position":3,"name":"Build a Polymarket research snapshot with two API calls"}]}
```

