API - GetExtracts

Use the following query string arguments:

  • titlecontains
  • authorcontains
  • isbn
  • publicationdategreaterthan
  • publicationdatelessthan
  • readingtimegreaterthan
  • readingtimelessthan
  • isfeatured
  • illustratorcontains
  • imprintcontains
  • isbn10
  • biccodelist (as a comma separated list)
  • bisaccodelist (as a comma separated list)

Examples

  1. Get extracts with a title containing "sword" and a reading time of less then 10 minutes.

    https://extracts.panmacmillan.com/getextracts?titlecontains=sword&readingtimelessthan=10

  2. Get a specific extract by supplying an ISBN or ISBN10 number.

    https://extracts.panmacmillan.com/getextracts?isbn=9781447246947

    https://extracts.panmacmillan.com/getextracts?isbn10=1447246942

  3. Get featured extracts that were published after 1st Janurary 2016.

    https://extracts.panmacmillan.com/getextracts?isfeatured=true&publicationdategreaterthan=2016-01-01T00:00:00Z

  4. Get extracts containing "John" in the author field.

    https://extracts.panmacmillan.com/getextracts?authorcontains=john

  5. Get extracts that contain "Julie" in the the author field and "Reed" in the illustrator field.

    https://extracts.panmacmillan.com/getextracts?authorcontains=julie&illustratorcontains=reed

  6. Get featured extracts that have BIC codes of "FA" and "FF". BIC codes must be in the form of a comma separated list eg. "fa,ff".

    https://extracts.panmacmillan.com/getextracts?isfeatured=true&biccodelist=ff,fa

  7. Get extracts with an imprint display name of 'Pan', Bic codes of 'FF' and 'FH' and BISAC codes of 'FIC019000' and 'FIC025000'.

    https://extracts.panmacmillan.com/getextracts?imprintcontains=pan&biccodelist=ff,fh&bisaccodelist=fic019000,fic025000