{"id":20962974,"url":"https://github.com/doesdev/target-api","last_synced_at":"2025-07-21T23:33:22.124Z","repository":{"id":57376465,"uuid":"65114095","full_name":"doesdev/target-api","owner":"doesdev","description":"Very limited abstraction over Target APIs","archived":false,"fork":false,"pushed_at":"2017-07-26T23:14:53.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T06:48:58.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/doesdev.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":"2016-08-07T03:41:16.000Z","updated_at":"2016-08-07T03:42:57.000Z","dependencies_parsed_at":"2022-09-12T20:23:42.945Z","dependency_job_id":null,"html_url":"https://github.com/doesdev/target-api","commit_stats":null,"previous_names":["musocrat/target-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/doesdev/target-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ftarget-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ftarget-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ftarget-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ftarget-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doesdev","download_url":"https://codeload.github.com/doesdev/target-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doesdev%2Ftarget-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266403101,"owners_count":23923404,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T02:39:40.670Z","updated_at":"2025-07-21T23:33:22.104Z","avatar_url":"https://github.com/doesdev.png","language":"JavaScript","readme":"# target-api   [![npm version](https://badge.fury.io/js/target-api.svg)](http://badge.fury.io/js/target-api)   [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\nA very limited abstraction over Target APIs. Currently only supports 2 API methods [`stores`, `search`].\n\n### Requires Target API key(s) [`stores` uses API v2, `search` uses API v1]\nI have no idea where you get those from as they don't appear to have open API access.\n\nThat being said the v2 API is used by the website's store locator and v1 is used by the mobile app.\n\n## install\n`npm i target-api`\n\n## programmatic usage\n\nProvide API key (required)\n```javascript\nconst targetApi = require('target-api')\n\n// get array of stores\nconst storesOpts = {key: 'someV2ApiKey', nearby: 33803, range: 50, limit: 50}\ntargetApi.stores(storesOpts, (err, data) =\u003e console.log(err || data))\n\n// get product search results\nconst searchOpts = {key: 'someV1ApiKey', store: 1299, query: '4k tv'}\ntargetApi.search(searchOpts, (err, data) =\u003e console.log(err || data))\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Ftarget-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoesdev%2Ftarget-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoesdev%2Ftarget-api/lists"}