# Social

Recent public posts.

```text
"sources": ["social"]
```

The `social` source is recent public posts. It is kept current: results are usually from the last few days, often the last few hours, and every one carries its date, its author and how many people reacted.

## Good for

- What is being said right now about an event, a release or a place.
- First-hand reports before any article exists.
- Finding the people who post about a subject.

## Not the place for

- Anything you need to be true. A post is one person speaking.
- History. This source holds recent posts, not an archive.

## What a result carries

Every result has the same fields whatever the source; the [Search reference](https://millionshort.com/docs/search/parameters#a-result) lists them. What differs is which of them are filled in:

| Field | In this source |
|---|---|
| `published_date` | Set on every result. |
| `page_type`, `topic` | `null`. |
| `popularity` | Varies from result to result and is often `long-tail` or `unknown`. It is not a useful filter on this source. |
| `signals` (with `explain`) | `null` values. |
| `extra` | `kind` (`post`), `author`, `likes`, `replies`, and `links_to` when the post carries a link. |

The `extra` keys are what this source returns today. Treat every one of them as optional: read it if it is there.

## Example queries

- `solar eclipse`
- `marathon training`
- `open source release`

Ten recent posts, with strict SafeSearch:

```bash
curl https://api.millionshort.com/v1/search \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "solar eclipse",
    "sources": ["social"],
    "num_results": 10,
    "safe_search": "strict"
  }'
```

```python
import os

from millionshort import MillionShort

client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])

r = client.search(
    "solar eclipse",
    sources=["social"],
    num_results=10,
    safe_search="strict",
)
for hit in r.results:
    print(hit["published_date"], hit["extra"].get("author"), hit["snippet"][:80])
print(r.usage.credits, "credit(s)")
```

```ts
import { MillionShort } from 'millionshort';

const client = new MillionShort({ apiKey: process.env.MILLIONSHORT_API_KEY });

const r = await client.search('solar eclipse', {
  sources: ['social'],
  numResults: 10,
  safeSearch: 'strict',
});
for (const hit of r.results) {
  console.log(hit.published_date, hit.extra.author, hit.snippet.slice(0, 80));
}
console.log(r.usage?.credits, 'credit(s)');
```

The same call as a tool of the MCP server:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search",
    "arguments": {
      "query": "solar eclipse",
      "sources": [
        "social"
      ],
      "num_results": 10,
      "safe_search": "strict"
    }
  }
}
```

## Combine it with

`news` to confirm what the posts claim, `hn` for the technical crowd. One call can ask up to five sources and returns one merged list; each result says which source it came from in `source`. See [Mixture of Experts](https://millionshort.com/docs/search/mixture-of-experts).

## Cost and limits

A search of this source costs 1 credit, like every source, and covers the first 10 results of the call. It is one of the **heavy** sources: each plan has a lower per-minute limit for searches that include it. [Credits and limits](https://millionshort.com/docs/credits-and-limits) has the numbers.

With [Monitor](https://millionshort.com/docs/monitor/parameters), a query monitor can watch this source, with a shortest interval of 15 minutes (5 on Scale and above).
