{"openapi":"3.2.0","info":{"title":"Instagram Media API","description":"Extract clean, typed direct media URLs for any public Instagram Reel, Video, Carousel, or Photo.","version":"1.0.0"},"servers":[{"url":"https://itsrose-instagram.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Media"}],"x-agent-commerce":{"catalog_url":"https://itsrose-instagram.jojapi.net/_jojapi/agent/plans","discovery_url":"https://itsrose-instagram.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/itsrose-instagram-api","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/v1/media":{"get":{"operationId":"get_v1_media","summary":"Get Instagram Media","description":"Extract direct media links from an Instagram URL. 1 lookup per successful request. Failed requests bill 0.","tags":["Media"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"title":"Success indicator","description":"Indicates that the response represents a successful operation."},"code":{"type":"number","title":"Response code","description":"The numeric code representing the success status."},"message":{"type":"string","title":"Response message","description":"A human-readable message providing additional information."},"data":{"type":"object","properties":{"media_list":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The direct URL to the media file."},"is_video":{"type":"boolean","description":"Indicates whether the media is a video."}},"required":["url","is_video"],"additionalProperties":false},"description":"List of media items."}},"required":["media_list"],"additionalProperties":false},"errors":{"type":"string","nullable":true,"enum":[null],"title":"No errors on success responses","description":"The errors field is always null for success responses."},"meta":{"default":{},"title":"Metadata","description":"Additional metadata related to the response. **Do not** rely on this field for any critical information, as it may be omitted or changed without notice.","type":"object","additionalProperties":{}}},"required":["ok","code","message","data","errors","meta"],"additionalProperties":false}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."},"4XX":{"description":"Client Error","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[false],"title":"Failure indicator","description":"Indicates that the response represents a failed operation."},"code":{"type":"number","title":"Response code","description":"The numeric code representing the failure status."},"message":{"type":"string","title":"Response message","description":"A human-readable message providing additional information."},"data":{"type":"string","nullable":true,"enum":[null],"title":"No data on failure responses","description":"The data field is always null for failure responses."},"errors":{"default":{},"title":"Error details","description":"The errors field contains details about the failure. It is optional and may be omitted if no additional error information is provided.","type":"object","additionalProperties":{}},"meta":{"default":{},"title":"Metadata","description":"Additional metadata related to the response. **Do not** rely on this field for any critical information, as it may be omitted or changed without notice.","type":"object","additionalProperties":{}}},"required":["ok","code","message","data","errors","meta"],"additionalProperties":false,"description":"Representing a failed response.","title":"Failure Response Schema"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[false],"title":"Failure indicator","description":"Indicates that the response represents a failed operation."},"code":{"type":"number","title":"Response code","description":"The numeric code representing the failure status."},"message":{"type":"string","title":"Response message","description":"A human-readable message providing additional information."},"data":{"type":"string","nullable":true,"enum":[null],"title":"No data on failure responses","description":"The data field is always null for failure responses."},"errors":{"default":{},"title":"Error details","description":"The errors field contains details about the failure. It is optional and may be omitted if no additional error information is provided.","type":"object","additionalProperties":{}},"meta":{"default":{},"title":"Metadata","description":"Additional metadata related to the response. **Do not** rely on this field for any critical information, as it may be omitted or changed without notice.","type":"object","additionalProperties":{}}},"required":["ok","code","message","data","errors","meta"],"additionalProperties":false,"description":"Representing a failed response.","title":"Failure Response Schema"}}}}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Instagram URL"}}]}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}