{"id":18504198,"url":"https://github.com/dineshreddypaidi/instagram-api","last_synced_at":"2026-05-04T12:36:59.881Z","repository":{"id":260238797,"uuid":"880738705","full_name":"dineshreddypaidi/instagram-api","owner":"dineshreddypaidi","description":"api for instgram like application","archived":false,"fork":false,"pushed_at":"2024-11-06T05:49:56.000Z","size":1044,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T17:43:43.237Z","etag":null,"topics":["deployment","django","django-rest-framework","djangorestframework","instagram","instagram-api","postgresql","railway","rest-api","restful-webservices"],"latest_commit_sha":null,"homepage":"https://instagram-api.up.railway.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dineshreddypaidi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-30T09:10:41.000Z","updated_at":"2024-11-06T05:50:00.000Z","dependencies_parsed_at":"2025-05-14T08:11:24.347Z","dependency_job_id":"f11e00a6-e68c-46db-b5b7-b1489e74e262","html_url":"https://github.com/dineshreddypaidi/instagram-api","commit_stats":null,"previous_names":["dineshreddypaidi/instagram-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dineshreddypaidi/instagram-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineshreddypaidi%2Finstagram-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineshreddypaidi%2Finstagram-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineshreddypaidi%2Finstagram-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineshreddypaidi%2Finstagram-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dineshreddypaidi","download_url":"https://codeload.github.com/dineshreddypaidi/instagram-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dineshreddypaidi%2Finstagram-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32607963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","django","django-rest-framework","djangorestframework","instagram","instagram-api","postgresql","railway","rest-api","restful-webservices"],"created_at":"2024-11-06T14:03:28.656Z","updated_at":"2026-05-04T12:36:59.813Z","avatar_url":"https://github.com/dineshreddypaidi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagram-Like API Documentation\n\n## Authentication\n\nAll endpoints require authentication except for the **Register** and **Login** endpoints. After logging in, the user will receive a token, which must be included in the header of subsequent requests as follows:\n\n```\nAuthorization: Token {user_key}\n```\n\n## Base URL\n\n```\nhttps://instagram-api.up.railway.app\n```\n\n## Endpoints\n\n### 1. User Endpoints\n\n#### a. Get Logged-In User\n\n- **URL:** `/user`\n- **Method:** `GET`\n- **Authentication:** Required\n- **Description:** Retrieve the details of the logged-in user.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"id\": \"user_id\",\n      \"username\": \"user_name\",\n      \"email\": \"user_email\",\n      ...\n  }\n  ```\n- **401 Unauthorized**\n  ```json\n  {\n      \"error\": \"Authentication credentials were not provided.\"\n  }\n  ```\n\n#### b. Register User\n\n- **URL:** `/user/register`\n- **Method:** `POST`\n- **Authentication:** Not required\n- **Description:** Register a new user.\n\n**Request Body:**\n\n```json\n{\n    \"username\": \"new_user\",\n    \"email\": \"user_email\",\n    \"password\": \"user_password\"\n}\n```\n\n**Response:**\n\n- **201 Created**\n  ```json\n  {\n      \"message\": \"User registered successfully.\"\n  }\n  ```\n- **400 Bad Request**\n  ```json\n  {\n      \"error\": \"Username already exists.\"\n  }\n  ```\n\n#### c. Login User\n\n- **URL:** `/user/login`\n- **Method:** `POST`\n- **Authentication:** Not required\n- **Description:** Log in a user and return an authentication token.\n\n**Request Body:**\n\n```json\n{\n    \"username\": \"existing_user\",\n    \"password\": \"user_password\"\n}\n```\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"token\": \"user_token\"\n  }\n  ```\n- **401 Unauthorized**\n  ```json\n  {\n      \"error\": \"Invalid credentials.\"\n  }\n  ```\n\n#### d. Logout User\n\n- **URL:** `/user/logout`\n- **Method:** `POST`\n- **Authentication:** Required\n- **Description:** Log out the logged-in user.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"message\": \"User logged out successfully.\"\n  }\n  ```\n\n### 2. Follower Endpoints\n\n#### a. User Followers\n\n- **URL:** `/user/follower`\n- **Method:** `GET`, `POST`, `DELETE`\n- **Authentication:** Required\n- **Description:** Manage user followers.\n\n**Response:**\n\n- **200 OK** (GET)\n  ```json\n  {\n      \"followers\": [\"follower1\", \"follower2\", ...]\n  }\n  ```\n- **201 Created** (POST)\n  ```json\n  {\n      \"message\": \"Successfully followed.\"\n  }\n  ```\n- **204 No Content** (DELETE)\n  ```json\n  {\n      \"message\": \"Successfully unfollowed.\"\n  }\n  ```\n\n#### b. User Following\n\n- **URL:** `/user/following`\n- **Method:** `GET`, `DELETE`\n- **Authentication:** Required\n- **Description:** Retrieve and manage users being followed.\n\n**Response:**\n\n- **200 OK** (GET)\n  ```json\n  {\n      \"following\": [\"user1\", \"user2\", ...]\n  }\n  ```\n- **204 No Content** (DELETE)\n  ```json\n  {\n      \"message\": \"Successfully unfollowed.\"\n  }\n  ```\n\n### 3. Post Endpoints\n\n#### a. User Post\n\n- **URL:** `/user/post`\n- **Method:** `GET`, `POST`\n- **Authentication:** Required\n- **Description:** Retrieve or create user posts.\n\n**Response:**\n\n- **200 OK** (GET)\n  ```json\n  {\n      \"posts\": [\n          {\n              \"post_id\": \"1\",\n              \"caption\": \"First post!\",\n              \"likes\": 10,\n              ...\n          },\n          ...\n      ]\n  }\n  ```\n- **201 Created** (POST)\n  ```json\n  {\n      \"message\": \"Post created successfully.\"\n  }\n  ```\n\n#### b. Post Like\n\n- **URL:** `/post/like/\u003cstr:post_id\u003e`\n- **Method:** `GET`, `POST`, `DELETE`\n- **Authentication:** Required\n- **Description:** Manage likes on a post.\n\n**Response:**\n\n- **200 OK** (GET)\n  ```json\n  {\n      \"likes\": 15\n  }\n  ```\n- **201 Created** (POST)\n  ```json\n  {\n      \"message\": \"Post liked.\"\n  }\n  ```\n- **204 No Content** (DELETE)\n  ```json\n  {\n      \"message\": \"Like removed.\"\n  }\n  ```\n\n#### c. Post Comment\n\n- **URL:** `/post/comment/\u003cstr:post_id\u003e`\n- **Method:** `GET`, `POST`, `PUT`, `DELETE`\n- **Authentication:** Required\n- **Description:** Manage comments on a post.\n\n**Response:**\n\n- **200 OK** (GET)\n  ```json\n  {\n      \"comments\": [\n          {\n              \"comment_id\": \"1\",\n              \"content\": \"Nice post!\",\n              ...\n          },\n          ...\n      ]\n  }\n  ```\n- **201 Created** (POST)\n  ```json\n  {\n      \"message\": \"Comment added.\"\n  }\n  ```\n- **204 No Content** (PUT)\n  ```json\n  {\n      \"message\": \"Comment updated.\"\n  }\n  ```\n- **204 No Content** (DELETE)\n  ```json\n  {\n      \"message\": \"Comment deleted.\"\n  }\n  ```\n\n### 4. User Profile Endpoints\n\n#### a. User Following\n\n- **URL:** `/user/\u003cstr:username\u003e/following`\n- **Method:** `GET`\n- **Authentication:** Required\n- **Description:** Get the list of users that the specified user is following.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"following\": [\"user1\", \"user2\", ...]\n  }\n  ```\n\n#### b. User Followers\n\n- **URL:** `/user/\u003cstr:username\u003e/followers`\n- **Method:** `GET`\n- **Authentication:** Required\n- **Description:** Get the list of followers for the specified user.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"followers\": [\"follower1\", \"follower2\", ...]\n  }\n  ```\n\n#### c. User Profile\n\n- **URL:** `/user/u/\u003cstr:username\u003e`\n- **Method:** `GET`\n- **Authentication:** Required\n- **Description:** Get the profile of the specified user.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"id\": \"user_id\",\n      \"username\": \"user_name\",\n      \"email\": \"user_email\",\n      ...\n  }\n  ```\n\n#### d. User Posts\n\n- **URL:** `/user/u/\u003cstr:username\u003e/post`\n- **Method:** `GET`\n- **Authentication:** Required\n- **Description:** Get all posts made by the specified user.\n\n**Response:**\n\n- **200 OK**\n  ```json\n  {\n      \"posts\": [\n          {\n              \"post_id\": \"1\",\n              \"caption\": \"User's first post!\",\n              ...\n          },\n          ...\n      ]\n  }\n  ```\n\n### Error Codes\n\n- **400 Bad Request:** The request could not be understood or was missing required parameters.\n- **401 Unauthorized:** Authentication failed or user does not have permissions for the desired action.\n- **404 Not Found:** The requested resource could not be found.\n- **500 Internal Server Error:** An error occurred on the server.\n\n## Notes\n\n- Responses are returned in JSON format.\n- All response codes will be included as per standard HTTP status codes.\n- Example requests and responses are based on common scenarios and may vary based on actual data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineshreddypaidi%2Finstagram-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdineshreddypaidi%2Finstagram-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdineshreddypaidi%2Finstagram-api/lists"}