API Direct
Endpoints
Instagram Posts

Instagram Posts

GET /v1/instagram/posts

Search Instagram posts by hashtag. Returns post URL, author username, publication date, and caption snippet for each result. Supports fetching multiple pages of results in a single API call.

Cost
$0.006 per page
Free tier
50 requests/month

Parameters

query *
Hashtag to search (max 500 characters)
pages
Number of pages to fetch, 1-10 (default: 1)
sort_by
Sort order: most_recent or relevance (default: most_recent)

Example Request

curl "https://api.apidirect.io/v1/instagram/posts?query=technology&pages=2" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "title": "@instagramuser on Instagram",
      "url": "https://instagram.com/p/...",
      "date": "2024-01-15 14:30:00",
      "author": "instagramuser",
      "source": "Instagram",
      "snippet": "Post caption here..."
    }
  ],
  "pages": 2,
  "count": 24
}

Your Usage

Free tier this month
Loading...
Recent Activity