# Instagram Recent posts

GET /v1/instagram/posts

pending_activation · $0.004 / call

## Parameters

- handle — Public account handle

- cursor — Use next_cursor from the previous page with the same input.

## curl

```
curl "https://datawevo.com/v1/instagram/posts?handle=nasa" -H "Authorization: Bearer $DATAWEVO_KEY"
```

## JavaScript

```
const response = await fetch("https://datawevo.com/v1/instagram/posts?handle=nasa", {
  headers: { Authorization: "Bearer " + process.env.DATAWEVO_KEY }
});
console.log(await response.json());
```

## Python

```
import os, requests

response = requests.get(
    "https://datawevo.com/v1/instagram/posts?handle=nasa",
    headers={"Authorization": "Bearer " + os.environ["DATAWEVO_KEY"]},
    timeout=25,
)
print(response.json())
```

## Illustrative response

```json
{
  "request_id": "req_example",
  "mode": "sandbox",
  "data": [
    {
      "type": "post",
      "platform": "instagram",
      "id": "sample_001",
      "text": "Sample observation",
      "likes": 12,
      "views": 12,
      "shortcode": "example"
    }
  ],
  "page": {
    "returned": 1,
    "next_cursor": null
  },
  "billing": {
    "currency": "USD",
    "units": 1,
    "unit": "call",
    "micro_usd": 4000
  },
  "elapsed_ms": 12
}
```
