No description
Find a file
2025-11-17 18:32:37 +02:00
.github export video module 2024-09-15 06:39:49 +03:00
src export metaclient 2025-11-10 12:23:38 +01:00
.gitignore init 2024-09-15 04:52:46 +03:00
pexels.nimble fix nim version 2024-09-15 06:44:42 +03:00
README.md Update installation command in README.md 2025-11-17 18:32:37 +02:00


👑 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 pic.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.