{"uid":"cap_sEkTOQgvhoY8fVJ7P_PDC","slug":"www-surplusintelligence-ai-8cd4b98d","name":"Twitter/X Full-Archive Tweet Counts (All Time) via Surplus Intelligence","description":"X/Twitter API v2 via Surplus Intelligence: Tweet counts all (1 unit)","url":"https://www.surplusintelligence.ai/x402/api/twitter/v2/tweets/counts/all","method":"GET","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":["query"],"properties":{"query":{"type":"string","description":"X/Twitter full-archive counts query."},"granularity":{"enum":["minute","hour","day"],"type":"string","description":"Count bucket granularity."}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{},"meta":{"type":"object"},"errors":{"type":"array"}},"additionalProperties":true}}}}},"responseSchema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["end","start","tweet_count"],"properties":{"end":{"type":"string"},"start":{"type":"string"},"tweet_count":{"type":"number"}}}},"meta":{"type":"object","required":["total_tweet_count"],"properties":{"total_tweet_count":{"type":"number"}}}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"query":"artificial intelligence","granularity":"day"}}},"response":{"data":[{"end":"2026-05-20T00:00:00.000Z","start":"2026-05-19T00:00:00.000Z","tweet_count":11164},{"end":"2026-05-21T00:00:00.000Z","start":"2026-05-20T00:00:00.000Z","tweet_count":10169},{"end":"2026-05-22T00:00:00.000Z","start":"2026-05-21T00:00:00.000Z","tweet_count":11034},{"end":"2026-05-23T00:00:00.000Z","start":"2026-05-22T00:00:00.000Z","tweet_count":8907},{"end":"2026-05-24T00:00:00.000Z","start":"2026-05-23T00:00:00.000Z","tweet_count":8966},{"end":"2026-05-25T00:00:00.000Z","start":"2026-05-24T00:00:00.000Z","tweet_count":7407},{"end":"2026-05-26T00:00:00.000Z","start":"2026-05-25T00:00:00.000Z","tweet_count":41836},{"end":"2026-05-27T00:00:00.000Z","start":"2026-05-26T00:00:00.000Z","tweet_count":22267},{"end":"2026-05-28T00:00:00.000Z","start":"2026-05-27T00:00:00.000Z","tweet_count":12798},{"end":"2026-05-29T00:00:00.000Z","start":"2026-05-28T00:00:00.000Z","tweet_count":9291},{"end":"2026-05-30T00:00:00.000Z","start":"2026-05-29T00:00:00.000Z","tweet_count":8850},{"end":"2026-05-31T00:00:00.000Z","start":"2026-05-30T00:00:00.000Z","tweet_count":8257},{"end":"2026-06-01T00:00:00.000Z","start":"2026-05-31T00:00:00.000Z","tweet_count":6575},{"end":"2026-06-02T00:00:00.000Z","start":"2026-06-01T00:00:00.000Z","tweet_count":3976},{"end":"2026-06-03T00:00:00.000Z","start":"2026-06-02T00:00:00.000Z","tweet_count":10953},{"end":"2026-06-04T00:00:00.000Z","start":"2026-06-03T00:00:00.000Z","tweet_count":10393},{"end":"2026-06-05T00:00:00.000Z","start":"2026-06-04T00:00:00.000Z","tweet_count":8729},{"end":"2026-06-06T00:00:00.000Z","start":"2026-06-05T00:00:00.000Z","tweet_count":21176},{"end":"2026-06-07T00:00:00.000Z","start":"2026-06-06T00:00:00.000Z","tweet_count":9338},{"end":"2026-06-08T00:00:00.000Z","start":"2026-06-07T00:00:00.000Z","tweet_count":6580},{"end":"2026-06-09T00:00:00.000Z","start":"2026-06-08T00:00:00.000Z","tweet_count":0},{"end":"2026-06-10T00:00:00.000Z","start":"2026-06-09T00:00:00.000Z","tweet_count":9926},{"end":"2026-06-11T00:00:00.000Z","start":"2026-06-10T00:00:00.000Z","tweet_count":8928},{"end":"2026-06-12T00:00:00.000Z","start":"2026-06-11T00:00:00.000Z","tweet_count":15956},{"end":"2026-06-13T00:00:00.000Z","start":"2026-06-12T00:00:00.000Z","tweet_count":15514},{"end":"2026-06-14T00:00:00.000Z","start":"2026-06-13T00:00:00.000Z","tweet_count":21214},{"end":"2026-06-15T00:00:00.000Z","start":"2026-06-14T00:00:00.000Z","tweet_count":19464},{"end":"2026-06-16T00:00:00.000Z","start":"2026-06-15T00:00:00.000Z","tweet_count":19816},{"end":"2026-06-17T00:00:00.000Z","start":"2026-06-16T00:00:00.000Z","tweet_count":7109},{"end":"2026-06-18T00:00:00.000Z","start":"2026-06-17T00:00:00.000Z","tweet_count":8016},{"end":"2026-06-18T04:53:38.000Z","start":"2026-06-18T00:00:00.000Z","tweet_count":1112}],"meta":{"total_tweet_count":365721}}},"exampleRequest":{"query":"artificial intelligence","granularity":"day"},"tags":["x402"],"displayCostAmount":"0.012800","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.012800/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0128","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0128","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4CTYfd1UJN9z9VPMKE4U8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0128","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical tweet count timeseries for any query across the full Twitter/X archive, bucketed by minute, hour, or day","exampleAgentPrompt":"How many tweets per day mentioned 'ChatGPT' across the full Twitter archive? Use a day-level granularity for the query 'ChatGPT'.","exampleUseCases":[{"title":"Track brand mentions across years","prompt":"Show me how many tweets mentioned our company name 'TechCorp' each month since we launched in 2015. I want to see if our social presence has grown over time."},{"title":"Analyze competitor activity over time","prompt":"Can you pull the hourly tweet counts for the hashtag #CloudComputing over the last year? I need to understand when our competitors are most active on social media."},{"title":"Measure event impact on social buzz","prompt":"How did tweet volume for 'AI conference 2024' change day by day during and after the event? I want to see when we got the most attention."}],"resultDescription":"Returns a time-series array of tweet count buckets matching the query, with each bucket containing a start/end timestamp and tweet count, plus metadata about the total count and pagination token. May also include error details if the query is malformed.","failureModes":["Invalid or unsupported query syntax returns 400-level error","Query exceeds character or complexity limits","Granularity value not in allowed enum (minute/hour/day)","Insufficient USDC balance or payment failure via x402 protocol","Rate limiting from upstream Twitter API","Missing required 'query' parameter returns validation error"],"whenToPreferThis":"Use this endpoint when you need historical tweet volume data spanning the entire Twitter archive (not just the last 7 days). Prefer this over the 'recent counts' endpoint when analyzing long-term trends, brand history, or event impact over months or years. Ideal for analytics dashboards, trend research, or competitive intelligence requiring full historical data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:53:21.788Z","isFirstParty":false}