Skip to content

Instantly share code, notes, and snippets.

@acidtone
Last active October 25, 2023 12:23
Show Gist options
  • Save acidtone/673dfc5c11ce06e9e8cd6ce33609eb3c to your computer and use it in GitHub Desktop.
Save acidtone/673dfc5c11ce06e9e8cd6ce33609eb3c to your computer and use it in GitHub Desktop.
REST APIs: Endpoint examples

REST APIs: Practice endpoints

Some examples from this list of Public APIs.

Beginner

These APIs return pretty simple data (usually a single object with a few properties).

Intermediate

These APIs generally return data that often have nested data types (arrays within arrays, objects within objects, etc).

  • Pokéapi

    • A list of Pokemon

      GET https://pokeapi.co/api/v2/pokemon/
      
    • The Ditto pokemon

      GET https://pokeapi.co/api/v2/pokemon/ditto
      
  • Dungeons & Dragons 5e API

    • A list of all endpoints for this API

      GET https://www.dnd5eapi.co/api/
      
    • A list of all races in D&D 5e

      GET https://www.dnd5eapi.co/api/races
      
    • Information for the Dragonborn race

      GET https://www.dnd5eapi.co/api/races/elf
      

Advanced

These APIs generally require multiple requests and storage of data. See documentation for examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment