datalikers-com Media API
Instagram posts, reels, and carousels — lookup by PK, shortcode, or full URL.
Instagram posts, reels, and carousels — lookup by PK, shortcode, or full URL.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/datalikers-com:datalikers-com-media-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Cache Media API
description: 'RESTful API for Instagram and TikTok data. Access user profiles, posts, stories, highlights, comments, hashtags, locations, audio tracks (Instagram), and videos, comments, hashtags, playlists (TikTok).
All endpoints require an `access_key` query parameter for authentication (handled by the gateway).
**Rate limits** depend on your plan. Instagram responses are served from cache with automatic fallback to HikerAPI when available; TikTok responses are cache-only.'
termsOfService: https://datalikers.com/help/terms-of-service
license:
name: Pricing
url: https://datalikers.com/pricing
version: 2.10.1
tags:
- name: Media
description: Instagram posts, reels, and carousels — lookup by PK, shortcode, or full URL.
paths:
/v1/media/by/id:
get:
tags:
- Media
summary: Get media by ID
description: 'Retrieve an Instagram media object by its numeric PK.
Returns the full media object including media type (photo/video/carousel),
caption, like count, comment count, timestamps, image/video URLs, and
the owner user info.'
operationId: media_by_id_v1_media_by_id_get
security:
- APIKeyQuery: []
parameters:
- name: id
in: query
required: true
schema:
type: integer
description: Instagram media PK (numeric ID)
title: Id
description: Instagram media PK (numeric ID)
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Media By Id V1 Media By Id Get
'404':
description: Media not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/media/by/code:
get:
tags:
- Media
summary: Get media by shortcode
description: 'Retrieve an Instagram media object by its shortcode.
The shortcode is the alphanumeric string in the Instagram post URL:
`https://instagram.com/p/{CODE}/`'
operationId: media_by_code_v1_media_by_code_get
security:
- APIKeyQuery: []
parameters:
- name: code
in: query
required: true
schema:
type: string
description: Instagram media shortcode (e.g. 'CxR2k3hLp9Q')
title: Code
description: Instagram media shortcode (e.g. 'CxR2k3hLp9Q')
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Media By Code V1 Media By Code Get
'404':
description: Media not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/media/by/url:
get:
tags:
- Media
summary: Get media by URL
description: 'Retrieve an Instagram media object by its full URL.
Accepts URLs in formats: `instagram.com/p/{code}/`,
`instagram.com/reel/{code}/`, `instagram.com/tv/{code}/`.'
operationId: media_by_url_v1_media_by_url_get
security:
- APIKeyQuery: []
parameters:
- name: url
in: query
required: true
schema:
type: string
description: Full Instagram post URL (e.g. 'https://instagram.com/p/CxR2k3hLp9Q/')
title: Url
description: Full Instagram post URL (e.g. 'https://instagram.com/p/CxR2k3hLp9Q/')
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Media By Url V1 Media By Url Get
'404':
description: Media not found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
APIKeyQuery:
type: apiKey
in: query
name: access_key
externalDocs:
description: Get the access_key
url: https://datalikers.com/tokens