Skip to content

openpeeps/pexels-nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸ‘‘ Nim library for the Pexels API

nimble install pexels

API reference
Github Actions Github Actions

😍 Key Features

  • Search Pexels for photos & videos
  • Direct to Object parser
  • Written in Nim language

First, create your API key: https://www.pexels.com/api/

Examples

Search for Photos

Search Pexels for any topic that you would like.

import pkg/pexels

let
  px: Pexels = newPexelsClient(apikey = "123abc")
  pics: PexelsPhotosResponse =
    waitFor px.search("cat", perPage = 5)
for pic in pics:
  echo picture.src.tiny

Search for Videos

import pkg/pexels
let
  px = newPexelsClient(apikey = "123abc")
  vids: PexelsVideosResponse =
    waitFor px.videos("nature")
for vid in vids:
  echo vid

❀ Contributions & Support

🎩 License

Pexels for Nim language | MIT license. Made by Humans from OpenPeeps.
Copyright Β© OpenPeeps & Contributors β€” All rights reserved.

About

Nim library for the Pexels API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages