{"uid":"cap_RWhPMMS6dbYO8OkuSfES9","slug":"gdelt-entity-graph-api-4778eb28","name":"GDELT Entity Graph API","description":"AI-friendly JSON API for global news intelligence. Built on GDELT (free public source), optimized for AI agents — clean responses, 5 use-case endpoints, parallel-aggregated entity graphs, no rate limits, no API keys. Pay-per-query in USDC on Base mainnet via x402.","url":"https://gdelt-x402-api.planbdj.workers.dev/news/entity-graph","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["entity"],"properties":{"entity":{"type":"string","description":"Person, organization, or location name"},"timespan":{"type":"string","description":"Time window (default 7d)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["entity","timespan","sentiment_trend","top_locations","top_sources"],"properties":{"entity":{"type":"string"},"timespan":{"type":"string"},"top_sources":{"type":"array","items":{"type":"object","required":["domain","mention_count"],"properties":{"domain":{"type":"string"},"mention_count":{"type":"integer"}}}},"top_locations":{"type":"array","items":{"type":"object","required":["name","lat","lng","mention_count"],"properties":{"lat":{"type":"number"},"lng":{"type":"number"},"name":{"type":"string"},"country_code":{"type":"string"},"mention_count":{"type":"integer"}}}},"sentiment_trend":{"type":"array","items":{"type":"object","required":["date","avg_tone"],"properties":{"date":{"type":"string"},"avg_tone":{"type":"number"}}}}}}}}}},"responseSchema":{"type":"json","example":{"entity":"Elon Musk","timespan":"7d","top_sources":[{"domain":"ft.com","mention_count":12}],"top_locations":[{"lat":37.09,"lng":-95.71,"name":"United States","country_code":"","mention_count":30}],"sentiment_trend":[{"date":"2026-04-30T00:00:00","avg_tone":-1.5}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U0Wv3z0e62MQUY5Bh53NA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an entity-centric news intelligence graph including top sources, geo-locations, and sentiment trend for a named entity over a given timespan, powered by the GDELT dataset.","exampleAgentPrompt":"Pull the GDELT entity graph for 'Elon Musk' over the last 7 days — I want to see which news outlets are covering him most, where in the world the coverage is concentrated, and how the sentiment has trended day by day.","exampleUseCases":[{"title":"Competitive brand media monitoring","prompt":"Give me the GDELT entity graph for 'Nvidia' over the past 30 days — I want the top news sources covering them, the geographic spread of mentions, and whether sentiment has been improving or declining lately."},{"title":"Geopolitical figure sentiment tracking","prompt":"Pull the news intelligence graph for 'Xi Jinping' over the last 14 days and show me which outlets are driving the most coverage, which countries dominate the mentions, and what the day-by-day sentiment trend looks like."},{"title":"Crisis event media analysis","prompt":"Run the entity graph for 'Hamas' over the past 7 days — I need to know which news domains are publishing most, what the geographic distribution of coverage looks like, and how global media tone has shifted over that period."}],"resultDescription":"A JSON object containing: the queried entity name and timespan, an array of top news source domains with their mention counts, an array of top geographic locations (with latitude, longitude, country name, and mention count), and a sentiment trend array with daily average tone scores (negative = negative sentiment).","failureModes":["Entity not found or very low coverage — may return empty arrays for sources, locations, or sentiment","Invalid timespan format — API may reject or return an error","GDELT data lag — coverage may be delayed by up to 24 hours for very recent events","Ambiguous entity names (e.g. 'Apple' could be fruit or company) may return mixed results","Payment failure on Base mainnet — x402 transaction not confirmed, request blocked"],"whenToPreferThis":"Choose this endpoint when you need a structured, multi-dimensional intelligence snapshot of how a specific named entity is being covered across global news — including which outlets cover it most, where geographically the coverage is concentrated, and how sentiment is trending over time. It is ideal for brand monitoring, competitive intelligence, geopolitical research, and journalistic investigation. Prefer it over raw news search APIs when you want aggregated, pre-computed entity graphs rather than individual article retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:37:48.422Z","isFirstParty":false}