# Count tweets matching a query — last 7 days

Provider: X (Twitter)
Final price: $0.005/call
Success rate: 100%

Get Posts Counts Recent

## Parameters

- query (string, required)
- end_time (string, optional)
- since_id (string, optional)
- until_id (string, optional)
- next_token (string, optional)
- start_time (string, optional)
- granularity (string, optional)
- pagination_token (string, optional)
- search_count.fields (string, optional)

## Example

```curl
curl -X GET 'https://toolswitch.dev/v1/tools/x.x.get-posts-counts-recent' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"
```

[View on Toolswitch](https://toolswitch.dev/en/tools/x.x.get-posts-counts-recent)
