Homecook

FREE
By mytweetmark
Updated 4 months ago
Data
6.7/10
Popularity Score
215ms
Latency
100%
Success Rate

Homecook API Documentation

The local food and farmers' market REST API. Search by food items, get details on a farmers' market or on a local business. This is our contribution to the local food and farmers' market developer community. From this data, we can build many applications.

View API Details
GETSearch Local Market
GETSearch
GETSearch Business
GETSearch Local Farmer Markets
GETSearch Product by Item
GETSearch Product by User
GETSerch Local Farmer Market by UserID
GETSearch Local Market

Search for local farmers' market by id.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
marketIdSTRING
REQUIRED
Code Snippet
unirest.get("https://mytweetmark-homecook.p.rapidapi.com/market?marketId=22")
.header("X-RapidAPI-Host", "mytweetmark-homecook.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://mytweetmark-homecook.p.rapidapi.com/market
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://mytweetmark-homecook.p.rapidapi.com/market?marketId=22")
.header("X-RapidAPI-Host", "mytweetmark-homecook.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication