{"id":16560630,"url":"https://github.com/mathieu2301/temp-mail-api","last_synced_at":"2025-10-28T21:30:35.055Z","repository":{"id":53616703,"uuid":"275033462","full_name":"Mathieu2301/Temp-Mail-API","owner":"Mathieu2301","description":"NodeJS API for temp-mail.org","archived":false,"fork":false,"pushed_at":"2021-09-19T18:51:04.000Z","size":21,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T18:22:19.509Z","etag":null,"topics":["api","mails","temp","temp-mail"],"latest_commit_sha":null,"homepage":"","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/Mathieu2301.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}},"created_at":"2020-06-25T23:16:45.000Z","updated_at":"2023-07-06T14:29:51.000Z","dependencies_parsed_at":"2022-09-12T03:01:12.366Z","dependency_job_id":null,"html_url":"https://github.com/Mathieu2301/Temp-Mail-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTemp-Mail-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTemp-Mail-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTemp-Mail-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mathieu2301%2FTemp-Mail-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mathieu2301","download_url":"https://codeload.github.com/Mathieu2301/Temp-Mail-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238720441,"owners_count":19519351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","mails","temp","temp-mail"],"created_at":"2024-10-11T20:29:38.971Z","updated_at":"2025-10-28T21:30:34.712Z","avatar_url":"https://github.com/Mathieu2301.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Temp Mail API\n NodeJS API for temp-mail.org\n\n⚠\n`Temp-mail.org` devs remade their API on Oct 2020 so it uses a secured way to make requests.\nI will try to bypass it because it looks interesting.\nMy work is available in the `experiments.js` file.\n⚠\n\n___\n## Installation\n\n```\nnpm install temp-mail-api\n```\n\n## Examples (test.js)\n\n```javascript\nconst TM = require('temp-mail-api');\n\nconst email1 = new TM('temp-email'); // It will create an address like \"temp-email@xxxxxx.xxx\"\n\n// Waiting for the email to be ready (recommended)\nemail1.ready((email, error) =\u003e {\n  if (!error) {\n    console.log(`Email address is ${email}`);\n\n    // Getting email list\n    email1.getEmails((emails, error) =\u003e {\n      if (!error) {\n        console.log('Email list :', emails);\n      } else console.error(error);\n    });\n\n    // Fetching email list every 1 second and log if there is a new email\n    setInterval(() =\u003e {\n      email1.getEmails((emails, error, change) =\u003e {\n        if (!error) {\n          if (change) console.log('New mail !', emails);\n        } else console.error(error);\n      });\n    }, 1000);\n\n  } else console.error(error);\n});\n```\n\n___\n## Problems\n If you have errors in console or unwanted behavior, please create an issue [here](https://github.com/Mathieu2301/Temp-Mail-API/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Ftemp-mail-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieu2301%2Ftemp-mail-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieu2301%2Ftemp-mail-api/lists"}