Names, not botany homework
Cherry tomatoes become Tomato. Genovese basil becomes Basil. Close spellings get suggestions. Duplicates are ignored.
By manowar online
PlantPair API is your best buddy when using companion planting techniques on your garden, farm, homestead... It helps you get the best advice on what plants mingle best, and which combinations you should avoid.
They name what is already planted. You show what can go next.
Cherry tomatoes become Tomato. Genovese basil becomes Basil. Close spellings get suggestions. Duplicates are ignored.
best_companions help every plant in the bed. possible_to_plant can share the space without helping all of them.
Send two or more plants. Get whether any of them should be kept apart from the others.
Same garden_bed body. Different answers.
Send garden_bed as an array of plant names. No User-Id. No account.
POST /v1/companions. Read best_companions and possible_to_plant. Add extensive=true when you want the full lists.
POST /v1/compatibles with two or more names. compatible is true or false.
Module gitlab.com/man-o-war/plantpairAPI-client. Pass the host your marketplace lists, the key that marketplace requires, then call Companions or Compatibles. Paths have no /v1; marketplaces strip that prefix.
go get gitlab.com/man-o-war/plantpairAPI-client
package main import ( "fmt" ppclient "gitlab.com/man-o-war/plantpairAPI-client/client" ) func main() { c, err := ppclient.New( ppclient.WithBaseURL("https://plantpair-api-by-manowar-online.p.rapidapi.com"), ppclient.WithRapidAPIKey("YOUR_RAPIDAPI_KEY"), ) if err != nil { fmt.Println(err.Error()) return } result, err := c.Companions([]string{"tomato", "basil"}, false) if err != nil { fmt.Println(err.Error()) return } fmt.Println(result.BestCompanions) }
WithRapidAPIKey (optional WithRapidAPIHost)WithZylaLabsKeyWithAPIMarketKeyContext-aware twins: HealthWithCtx, CompanionsWithCtx, CompatiblesWithCtx. Optional in-process cache covers companions and compatibles only; health always hits the network.
Go gopher by Renee French, CC BY 4.0.
POST /v1/companions
POST /v1/compatibles
Subscribe and use through your API Marketplace of choice! Instant keys, usage billing and OpenAPI on day one.
PlantPair does not keep accounts. You send names, you get JSON, we retain none of that request. There is no user record to delete, no data retention after the response, and we don't sell any of the data of our customers to anyone, ever. As a developer, you don't need to worry with us to be GDPR compliant for this API.
Read the contract